diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClusterVersionsOperations.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClusterVersionsOperations.cs new file mode 100644 index 000000000000..74f22734e8c7 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClusterVersionsOperations.cs @@ -0,0 +1,421 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + 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; + + /// + /// ClusterVersionsOperations operations. + /// + internal partial class ClusterVersionsOperations : IServiceOperations, IClusterVersionsOperations + { + /// + /// Initializes a new instance of the ClusterVersionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ClusterVersionsOperations(ServiceFabricManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ServiceFabricManagementClient + /// + public ServiceFabricManagementClient Client { get; private set; } + + /// + /// List cluster code versions by location + /// + /// + /// The location for the cluster code versions, this is different from cluster + /// location + /// + /// + /// Cluster operating system, the default means all. Possible values include: + /// 'Default', 'Windows', 'Linux' + /// + /// + /// 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(string location, string environment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (environment == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "environment"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("environment", environment); + 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.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions").ToString(); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{environment}", System.Uri.EscapeDataString(environment)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List cluster code versions by location + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClusterVersionsOperationsExtensions.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClusterVersionsOperationsExtensions.cs new file mode 100644 index 000000000000..ddd408acfbeb --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClusterVersionsOperationsExtensions.cs @@ -0,0 +1,99 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ClusterVersionsOperations. + /// + public static partial class ClusterVersionsOperationsExtensions + { + /// + /// List cluster code versions by location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The location for the cluster code versions, this is different from cluster + /// location + /// + /// + /// Cluster operating system, the default means all. Possible values include: + /// 'Default', 'Windows', 'Linux' + /// + public static IPage List(this IClusterVersionsOperations operations, string location, string environment) + { + return operations.ListAsync(location, environment).GetAwaiter().GetResult(); + } + + /// + /// List cluster code versions by location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The location for the cluster code versions, this is different from cluster + /// location + /// + /// + /// Cluster operating system, the default means all. Possible values include: + /// 'Default', 'Windows', 'Linux' + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IClusterVersionsOperations operations, string location, string environment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, environment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List cluster code versions by location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IClusterVersionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List cluster code versions by location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IClusterVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClustersOperations.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClustersOperations.cs new file mode 100644 index 000000000000..d5450c005270 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClustersOperations.cs @@ -0,0 +1,1588 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + 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; + + /// + /// ClustersOperations operations. + /// + internal partial class ClustersOperations : IServiceOperations, IClustersOperations + { + /// + /// Initializes a new instance of the ClustersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ClustersOperations(ServiceFabricManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ServiceFabricManagementClient + /// + public ServiceFabricManagementClient Client { get; private set; } + + /// + /// Update cluster configuration + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name which + /// used to update the cluster configuration + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, clusterUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _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 ErrorModelException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorModel _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; + } + + /// + /// Create cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster clusterResource, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, clusterName, clusterResource, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _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("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new ErrorModelException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorModel _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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List cluster resource by resource group + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List cluster resource + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // 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.ServiceFabric/clusters").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Update cluster configuration + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name which + /// used to update the cluster configuration + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (clusterUpdateParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterUpdateParameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("clusterUpdateParameters", clusterUpdateParameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _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("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(clusterUpdateParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(clusterUpdateParameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorModelException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorModel _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; + } + + /// + /// Create cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster clusterResource, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (clusterResource == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterResource"); + } + if (clusterResource != null) + { + clusterResource.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("clusterResource", clusterResource); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _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("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(clusterResource != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(clusterResource, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorModelException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorModel _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; + } + + /// + /// List cluster resource by resource group + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List cluster resource + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClustersOperationsExtensions.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClustersOperationsExtensions.cs new file mode 100644 index 000000000000..d075249d8a45 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ClustersOperationsExtensions.cs @@ -0,0 +1,416 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ClustersOperations. + /// + public static partial class ClustersOperationsExtensions + { + /// + /// Update cluster configuration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name which + /// used to update the cluster configuration + /// + public static Cluster Update(this IClustersOperations operations, string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters) + { + return operations.UpdateAsync(resourceGroupName, clusterName, clusterUpdateParameters).GetAwaiter().GetResult(); + } + + /// + /// Update cluster configuration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name which + /// used to update the cluster configuration + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, clusterUpdateParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + public static Cluster Get(this IClustersOperations operations, string resourceGroupName, string clusterName) + { + return operations.GetAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Get cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + public static Cluster Create(this IClustersOperations operations, string resourceGroupName, string clusterName, Cluster clusterResource) + { + return operations.CreateAsync(resourceGroupName, clusterName, clusterResource).GetAwaiter().GetResult(); + } + + /// + /// Create cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, Cluster clusterResource, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, clusterName, clusterResource, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + public static void Delete(this IClustersOperations operations, string resourceGroupName, string clusterName) + { + operations.DeleteAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Delete cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List cluster resource by resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + public static IPage ListByResourceGroup(this IClustersOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// List cluster resource by resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IClustersOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List cluster resource + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IClustersOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// List cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IClustersOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update cluster configuration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name which + /// used to update the cluster configuration + /// + public static Cluster BeginUpdate(this IClustersOperations operations, string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters) + { + return operations.BeginUpdateAsync(resourceGroupName, clusterName, clusterUpdateParameters).GetAwaiter().GetResult(); + } + + /// + /// Update cluster configuration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name which + /// used to update the cluster configuration + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, clusterUpdateParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + public static Cluster BeginCreate(this IClustersOperations operations, string resourceGroupName, string clusterName, Cluster clusterResource) + { + return operations.BeginCreateAsync(resourceGroupName, clusterName, clusterResource).GetAwaiter().GetResult(); + } + + /// + /// Create cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the resource belongs or get created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, Cluster clusterResource, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, clusterName, clusterResource, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List cluster resource by resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IClustersOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List cluster resource by resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IClustersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IClustersOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List cluster resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IClustersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IClusterVersionsOperations.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IClusterVersionsOperations.cs new file mode 100644 index 000000000000..a6b485462597 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IClusterVersionsOperations.cs @@ -0,0 +1,72 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ClusterVersionsOperations operations. + /// + public partial interface IClusterVersionsOperations + { + /// + /// List cluster code versions by location + /// + /// + /// The location for the cluster code versions, this is different from + /// cluster location + /// + /// + /// Cluster operating system, the default means all. Possible values + /// include: 'Default', 'Windows', 'Linux' + /// + /// + /// 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(string location, string environment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List cluster code versions by location + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IClustersOperations.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IClustersOperations.cs new file mode 100644 index 000000000000..b5bad3a739ad --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IClustersOperations.cs @@ -0,0 +1,276 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ClustersOperations operations. + /// + public partial interface IClustersOperations + { + /// + /// Update cluster configuration + /// + /// + /// The name of the resource group to which the resource belongs or get + /// created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name + /// which used to update the cluster configuration + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get + /// created + /// + /// + /// The name of the cluster resource + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get + /// created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster clusterResource, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get + /// created + /// + /// + /// The name of the cluster resource + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List cluster resource by resource group + /// + /// + /// The name of the resource group to which the resource belongs or get + /// created + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List cluster resource + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update cluster configuration + /// + /// + /// The name of the resource group to which the resource belongs or get + /// created + /// + /// + /// The name of the cluster resource + /// + /// + /// The parameters which contains the property value and property name + /// which used to update the cluster configuration + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdateParameters clusterUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create cluster resource + /// + /// + /// The name of the resource group to which the resource belongs or get + /// created + /// + /// + /// The name of the cluster resource + /// + /// + /// Put Request + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster clusterResource, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List cluster resource by resource group + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List cluster resource + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IOperations.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IOperations.cs new file mode 100644 index 000000000000..9160f6a4d255 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IOperations.cs @@ -0,0 +1,64 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// 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)); + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IServiceFabricManagementClient.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IServiceFabricManagementClient.cs new file mode 100644 index 000000000000..84afed505f60 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/IServiceFabricManagementClient.cs @@ -0,0 +1,82 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// + public partial interface IServiceFabricManagementClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The customer subscription identifier + /// + string SubscriptionId { get; set; } + + /// + /// The version of the ServiceFabric resouce provider api + /// + string ApiVersion { get; } + + /// + /// Gets or sets the preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running + /// Operations. Default value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IClustersOperations. + /// + IClustersOperations Clusters { get; } + + /// + /// Gets the IClusterVersionsOperations. + /// + IClusterVersionsOperations ClusterVersions { get; } + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ApplicationDeltaHealthPolicy.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ApplicationDeltaHealthPolicy.cs new file mode 100644 index 000000000000..edab554b9a5b --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ApplicationDeltaHealthPolicy.cs @@ -0,0 +1,85 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Application health policy + /// + public partial class ApplicationDeltaHealthPolicy + { + /// + /// Initializes a new instance of the ApplicationDeltaHealthPolicy + /// class. + /// + public ApplicationDeltaHealthPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationDeltaHealthPolicy + /// class. + /// + /// Delta health + /// policy for default services + /// Health policy for + /// additional service + public ApplicationDeltaHealthPolicy(ServiceTypeDeltaHealthPolicy defaultServiceTypeDeltaHealthPolicy = default(ServiceTypeDeltaHealthPolicy), IDictionary serivceTypeDeltaHealthPolicies = default(IDictionary)) + { + DefaultServiceTypeDeltaHealthPolicy = defaultServiceTypeDeltaHealthPolicy; + SerivceTypeDeltaHealthPolicies = serivceTypeDeltaHealthPolicies; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets delta health policy for default services + /// + [JsonProperty(PropertyName = "defaultServiceTypeDeltaHealthPolicy")] + public ServiceTypeDeltaHealthPolicy DefaultServiceTypeDeltaHealthPolicy { get; set; } + + /// + /// Gets or sets health policy for additional service + /// + [JsonProperty(PropertyName = "serivceTypeDeltaHealthPolicies")] + public IDictionary SerivceTypeDeltaHealthPolicies { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DefaultServiceTypeDeltaHealthPolicy != null) + { + DefaultServiceTypeDeltaHealthPolicy.Validate(); + } + if (SerivceTypeDeltaHealthPolicies != null) + { + foreach (var valueElement in SerivceTypeDeltaHealthPolicies.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ApplicationHealthPolicy.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ApplicationHealthPolicy.cs new file mode 100644 index 000000000000..276d35880b5d --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ApplicationHealthPolicy.cs @@ -0,0 +1,87 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines a health policy used to evaluate the health of an application + /// or one of its children entities. + /// + public partial class ApplicationHealthPolicy + { + /// + /// Initializes a new instance of the ApplicationHealthPolicy class. + /// + public ApplicationHealthPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationHealthPolicy class. + /// + /// the health policy used + /// by default to evaluate the health of a service type. + /// Defines a + /// ServiceTypeHealthPolicy per service type name,the key is the name + /// of the application + public ApplicationHealthPolicy(ServiceTypeHealthPolicy defaultServiceTypeHealthPolicy = default(ServiceTypeHealthPolicy), IDictionary serivceTypeHealthPolicies = default(IDictionary)) + { + DefaultServiceTypeHealthPolicy = defaultServiceTypeHealthPolicy; + SerivceTypeHealthPolicies = serivceTypeHealthPolicies; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the health policy used by default to evaluate the + /// health of a service type. + /// + [JsonProperty(PropertyName = "defaultServiceTypeHealthPolicy")] + public ServiceTypeHealthPolicy DefaultServiceTypeHealthPolicy { get; set; } + + /// + /// Gets or sets Defines a ServiceTypeHealthPolicy per service type + /// name,the key is the name of the application + /// + [JsonProperty(PropertyName = "serivceTypeHealthPolicies")] + public IDictionary SerivceTypeHealthPolicies { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DefaultServiceTypeHealthPolicy != null) + { + DefaultServiceTypeHealthPolicy.Validate(); + } + if (SerivceTypeHealthPolicies != null) + { + foreach (var valueElement in SerivceTypeHealthPolicies.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/AvailableOperationDisplay.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/AvailableOperationDisplay.cs new file mode 100644 index 000000000000..54adc96ff19b --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/AvailableOperationDisplay.cs @@ -0,0 +1,72 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Operation supported by ServiceFabric resource provider + /// + public partial class AvailableOperationDisplay + { + /// + /// Initializes a new instance of the AvailableOperationDisplay class. + /// + public AvailableOperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AvailableOperationDisplay class. + /// + /// Provider name + /// Resource name + /// Operation name + /// Operation description + public AvailableOperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets provider name + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets resource name + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets operation name + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets operation description + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/AzureActiveDirectory.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/AzureActiveDirectory.cs new file mode 100644 index 000000000000..1713e52ec6b5 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/AzureActiveDirectory.cs @@ -0,0 +1,66 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The settings to enable AAD authentication on the cluster + /// + public partial class AzureActiveDirectory + { + /// + /// Initializes a new instance of the AzureActiveDirectory class. + /// + public AzureActiveDirectory() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureActiveDirectory class. + /// + /// Azure active directory tenant id + /// Azure active directory cluster + /// application id + /// Azure active directory client + /// application id + public AzureActiveDirectory(string tenantId = default(string), string clusterApplication = default(string), string clientApplication = default(string)) + { + TenantId = tenantId; + ClusterApplication = clusterApplication; + ClientApplication = clientApplication; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets azure active directory tenant id + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets azure active directory cluster application id + /// + [JsonProperty(PropertyName = "clusterApplication")] + public string ClusterApplication { get; set; } + + /// + /// Gets or sets azure active directory client application id + /// + [JsonProperty(PropertyName = "clientApplication")] + public string ClientApplication { get; set; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/CertificateDescription.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/CertificateDescription.cs new file mode 100644 index 000000000000..b72502b9c79c --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/CertificateDescription.cs @@ -0,0 +1,85 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Certificate details + /// + public partial class CertificateDescription + { + /// + /// Initializes a new instance of the CertificateDescription class. + /// + public CertificateDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CertificateDescription class. + /// + /// Thumbprint of the primary + /// certificate + /// Thumbprint of the secondary + /// certificate + /// The local certificate store location. + /// Possible values include: 'AddressBook', 'AuthRoot', + /// 'CertificateAuthority', 'Disallowed', 'My', 'Root', + /// 'TrustedPeople', 'TrustedPublisher' + public CertificateDescription(string thumbprint, string thumbprintSecondary = default(string), string x509StoreName = default(string)) + { + Thumbprint = thumbprint; + ThumbprintSecondary = thumbprintSecondary; + X509StoreName = x509StoreName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets thumbprint of the primary certificate + /// + [JsonProperty(PropertyName = "thumbprint")] + public string Thumbprint { get; set; } + + /// + /// Gets or sets thumbprint of the secondary certificate + /// + [JsonProperty(PropertyName = "thumbprintSecondary")] + public string ThumbprintSecondary { get; set; } + + /// + /// Gets or sets the local certificate store location. Possible values + /// include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', + /// 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' + /// + [JsonProperty(PropertyName = "x509StoreName")] + public string X509StoreName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Thumbprint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Thumbprint"); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClientCertificateCommonName.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClientCertificateCommonName.cs new file mode 100644 index 000000000000..3e9b2a115610 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClientCertificateCommonName.cs @@ -0,0 +1,85 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Client certificate details using common name + /// + public partial class ClientCertificateCommonName + { + /// + /// Initializes a new instance of the ClientCertificateCommonName + /// class. + /// + public ClientCertificateCommonName() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClientCertificateCommonName + /// class. + /// + /// Is this certificate used for admin access + /// from the client, if false , it is used or query only access + /// Certificate common name to be + /// granted access; be carefull using wild card common names + /// Certificate issuer + /// thumbprint + public ClientCertificateCommonName(bool isAdmin, string certificateCommonName, string certificateIssuerThumbprint = default(string)) + { + IsAdmin = isAdmin; + CertificateCommonName = certificateCommonName; + CertificateIssuerThumbprint = certificateIssuerThumbprint; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets is this certificate used for admin access from the + /// client, if false , it is used or query only access + /// + [JsonProperty(PropertyName = "isAdmin")] + public bool IsAdmin { get; set; } + + /// + /// Gets or sets certificate common name to be granted access; be + /// carefull using wild card common names + /// + [JsonProperty(PropertyName = "certificateCommonName")] + public string CertificateCommonName { get; set; } + + /// + /// Gets or sets certificate issuer thumbprint + /// + [JsonProperty(PropertyName = "certificateIssuerThumbprint")] + public string CertificateIssuerThumbprint { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (CertificateCommonName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "CertificateCommonName"); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClientCertificateThumbprint.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClientCertificateThumbprint.cs new file mode 100644 index 000000000000..41247b850678 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClientCertificateThumbprint.cs @@ -0,0 +1,74 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Client certificate details using thumbprint + /// + public partial class ClientCertificateThumbprint + { + /// + /// Initializes a new instance of the ClientCertificateThumbprint + /// class. + /// + public ClientCertificateThumbprint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClientCertificateThumbprint + /// class. + /// + /// Is this certificate used for admin access + /// from the client, if false, it is used or query only access + /// Certificate thumbprint + public ClientCertificateThumbprint(bool isAdmin, string certificateThumbprint) + { + IsAdmin = isAdmin; + CertificateThumbprint = certificateThumbprint; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets is this certificate used for admin access from the + /// client, if false, it is used or query only access + /// + [JsonProperty(PropertyName = "isAdmin")] + public bool IsAdmin { get; set; } + + /// + /// Gets or sets certificate thumbprint + /// + [JsonProperty(PropertyName = "certificateThumbprint")] + public string CertificateThumbprint { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (CertificateThumbprint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "CertificateThumbprint"); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Cluster.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Cluster.cs new file mode 100644 index 000000000000..e2fd78907ba5 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Cluster.cs @@ -0,0 +1,323 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The cluster resource + /// + [Rest.Serialization.JsonTransformation] + public partial class Cluster : Resource + { + /// + /// Initializes a new instance of the Cluster class. + /// + public Cluster() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Cluster class. + /// + /// Resource location. + /// The http management endpoint of + /// the cluster + /// The list of nodetypes that make up the + /// cluster + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// The available cluster code + /// version which the cluster can upgrade to, note that you must choose + /// upgradeMode to manual to upgrade to + /// The unique identifier for the cluster + /// resource + /// The state for the cluster. Possible + /// values include: 'WaitingForNodes', 'Deploying', 'BaselineUpgrade', + /// 'UpdatingUserConfiguration', 'UpdatingUserCertificate', + /// 'UpdatingInfrastructure', 'EnforcingClusterVersion', + /// 'UpgradeServiceUnreachable', 'AutoScale', 'Ready' + /// The endpoint for the cluster + /// connecting to servicefabric resource provider + /// The ServiceFabric code version + /// running in your cluster + /// This primay certificate will be used as + /// cluster node to node security, SSL certificate for cluster + /// management endpoint and default admin client + /// Cluster reliability level indicates + /// replica set size of system service. Possible values include: + /// 'Bronze', 'Silver', 'Gold', 'Platinum' + /// Cluster upgrade mode indicates if fabric + /// upgrade is initiated automatically by the system or not. Possible + /// values include: 'Automatic', 'Manual' + /// The client thumbprint + /// details ,it is used for client access for cluster operation + /// List of client + /// certificates to whitelist based on common names + /// List of custom fabric settings to + /// configure the cluster. + /// The server certificate used + /// by reverse proxy + /// The settings to enable AAD + /// authentication on the cluster + /// The provisioning state of the + /// cluster resource. Possible values include: 'Updating', 'Succeeded', + /// 'Failed', 'Canceled' + /// The name of VM image VMSS has been configured + /// with. Generic names such as Windows or Linux can be used. + /// The storage + /// diagnostics account configuration details + /// The policy to use when upgrading + /// the cluster. + public Cluster(string location, string managementEndpoint, IList nodeTypes, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IList availableClusterVersions = default(IList), string clusterId = default(string), string clusterState = default(string), string clusterEndpoint = default(string), string clusterCodeVersion = default(string), CertificateDescription certificate = default(CertificateDescription), string reliabilityLevel = default(string), string upgradeMode = default(string), IList clientCertificateThumbprints = default(IList), IList clientCertificateCommonNames = default(IList), IList fabricSettings = default(IList), CertificateDescription reverseProxyCertificate = default(CertificateDescription), AzureActiveDirectory azureActiveDirectory = default(AzureActiveDirectory), string provisioningState = default(string), string vmImage = default(string), DiagnosticsStorageAccountConfig diagnosticsStorageAccountConfig = default(DiagnosticsStorageAccountConfig), ClusterUpgradePolicy upgradeDescription = default(ClusterUpgradePolicy)) + : base(location, id, name, type, tags) + { + AvailableClusterVersions = availableClusterVersions; + ClusterId = clusterId; + ClusterState = clusterState; + ClusterEndpoint = clusterEndpoint; + ClusterCodeVersion = clusterCodeVersion; + Certificate = certificate; + ReliabilityLevel = reliabilityLevel; + UpgradeMode = upgradeMode; + ClientCertificateThumbprints = clientCertificateThumbprints; + ClientCertificateCommonNames = clientCertificateCommonNames; + FabricSettings = fabricSettings; + ReverseProxyCertificate = reverseProxyCertificate; + ManagementEndpoint = managementEndpoint; + NodeTypes = nodeTypes; + AzureActiveDirectory = azureActiveDirectory; + ProvisioningState = provisioningState; + VmImage = vmImage; + DiagnosticsStorageAccountConfig = diagnosticsStorageAccountConfig; + UpgradeDescription = upgradeDescription; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the available cluster code version which the cluster can + /// upgrade to, note that you must choose upgradeMode to manual to + /// upgrade to + /// + [JsonProperty(PropertyName = "properties.availableClusterVersions")] + public IList AvailableClusterVersions { get; private set; } + + /// + /// Gets the unique identifier for the cluster resource + /// + [JsonProperty(PropertyName = "properties.clusterId")] + public string ClusterId { get; private set; } + + /// + /// Gets the state for the cluster. Possible values include: + /// 'WaitingForNodes', 'Deploying', 'BaselineUpgrade', + /// 'UpdatingUserConfiguration', 'UpdatingUserCertificate', + /// 'UpdatingInfrastructure', 'EnforcingClusterVersion', + /// 'UpgradeServiceUnreachable', 'AutoScale', 'Ready' + /// + [JsonProperty(PropertyName = "properties.clusterState")] + public string ClusterState { get; private set; } + + /// + /// Gets the endpoint for the cluster connecting to servicefabric + /// resource provider + /// + [JsonProperty(PropertyName = "properties.clusterEndpoint")] + public string ClusterEndpoint { get; private set; } + + /// + /// Gets or sets the ServiceFabric code version running in your cluster + /// + [JsonProperty(PropertyName = "properties.clusterCodeVersion")] + public string ClusterCodeVersion { get; set; } + + /// + /// Gets or sets this primay certificate will be used as cluster node + /// to node security, SSL certificate for cluster management endpoint + /// and default admin client + /// + [JsonProperty(PropertyName = "properties.certificate")] + public CertificateDescription Certificate { get; set; } + + /// + /// Gets or sets cluster reliability level indicates replica set size + /// of system service. Possible values include: 'Bronze', 'Silver', + /// 'Gold', 'Platinum' + /// + [JsonProperty(PropertyName = "properties.reliabilityLevel")] + public string ReliabilityLevel { get; set; } + + /// + /// Gets or sets cluster upgrade mode indicates if fabric upgrade is + /// initiated automatically by the system or not. Possible values + /// include: 'Automatic', 'Manual' + /// + [JsonProperty(PropertyName = "properties.upgradeMode")] + public string UpgradeMode { get; set; } + + /// + /// Gets or sets the client thumbprint details ,it is used for client + /// access for cluster operation + /// + [JsonProperty(PropertyName = "properties.clientCertificateThumbprints")] + public IList ClientCertificateThumbprints { get; set; } + + /// + /// Gets or sets List of client certificates to whitelist based on + /// common names + /// + [JsonProperty(PropertyName = "properties.clientCertificateCommonNames")] + public IList ClientCertificateCommonNames { get; set; } + + /// + /// Gets or sets list of custom fabric settings to configure the + /// cluster. + /// + [JsonProperty(PropertyName = "properties.fabricSettings")] + public IList FabricSettings { get; set; } + + /// + /// Gets or sets the server certificate used by reverse proxy + /// + [JsonProperty(PropertyName = "properties.reverseProxyCertificate")] + public CertificateDescription ReverseProxyCertificate { get; set; } + + /// + /// Gets or sets the http management endpoint of the cluster + /// + [JsonProperty(PropertyName = "properties.managementEndpoint")] + public string ManagementEndpoint { get; set; } + + /// + /// Gets or sets the list of nodetypes that make up the cluster + /// + [JsonProperty(PropertyName = "properties.nodeTypes")] + public IList NodeTypes { get; set; } + + /// + /// Gets or sets the settings to enable AAD authentication on the + /// cluster + /// + [JsonProperty(PropertyName = "properties.azureActiveDirectory")] + public AzureActiveDirectory AzureActiveDirectory { get; set; } + + /// + /// Gets the provisioning state of the cluster resource. Possible + /// values include: 'Updating', 'Succeeded', 'Failed', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets the name of VM image VMSS has been configured with. + /// Generic names such as Windows or Linux can be used. + /// + [JsonProperty(PropertyName = "properties.vmImage")] + public string VmImage { get; set; } + + /// + /// Gets or sets the storage diagnostics account configuration details + /// + [JsonProperty(PropertyName = "properties.diagnosticsStorageAccountConfig")] + public DiagnosticsStorageAccountConfig DiagnosticsStorageAccountConfig { get; set; } + + /// + /// Gets or sets the policy to use when upgrading the cluster. + /// + [JsonProperty(PropertyName = "properties.upgradeDescription")] + public ClusterUpgradePolicy UpgradeDescription { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (ManagementEndpoint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ManagementEndpoint"); + } + if (NodeTypes == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "NodeTypes"); + } + if (Certificate != null) + { + Certificate.Validate(); + } + if (ClientCertificateThumbprints != null) + { + foreach (var element in ClientCertificateThumbprints) + { + if (element != null) + { + element.Validate(); + } + } + } + if (ClientCertificateCommonNames != null) + { + foreach (var element1 in ClientCertificateCommonNames) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + if (FabricSettings != null) + { + foreach (var element2 in FabricSettings) + { + if (element2 != null) + { + element2.Validate(); + } + } + } + if (ReverseProxyCertificate != null) + { + ReverseProxyCertificate.Validate(); + } + if (NodeTypes != null) + { + foreach (var element3 in NodeTypes) + { + if (element3 != null) + { + element3.Validate(); + } + } + } + if (DiagnosticsStorageAccountConfig != null) + { + DiagnosticsStorageAccountConfig.Validate(); + } + if (UpgradeDescription != null) + { + UpgradeDescription.Validate(); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterCodeVersionsResult.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterCodeVersionsResult.cs new file mode 100644 index 000000000000..618298152db7 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterCodeVersionsResult.cs @@ -0,0 +1,95 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The result of the ServiceFabric runtime versions + /// + [Rest.Serialization.JsonTransformation] + public partial class ClusterCodeVersionsResult + { + /// + /// Initializes a new instance of the ClusterCodeVersionsResult class. + /// + public ClusterCodeVersionsResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterCodeVersionsResult class. + /// + /// The identification of the result + /// The name of the result + /// The result resource type + /// The ServiceFabric runtime version of the + /// cluster + /// The date of expiry of support of the + /// version + /// Cluster operating system. Possible values + /// include: 'Windows', 'Linux' + public ClusterCodeVersionsResult(string id = default(string), string name = default(string), string type = default(string), string codeVersion = default(string), string supportExpiryUtc = default(string), string environment = default(string)) + { + Id = id; + Name = name; + Type = type; + CodeVersion = codeVersion; + SupportExpiryUtc = supportExpiryUtc; + Environment = environment; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identification of the result + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the name of the result + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the result resource type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the ServiceFabric runtime version of the cluster + /// + [JsonProperty(PropertyName = "properties.codeVersion")] + public string CodeVersion { get; set; } + + /// + /// Gets or sets the date of expiry of support of the version + /// + [JsonProperty(PropertyName = "properties.supportExpiryUtc")] + public string SupportExpiryUtc { get; set; } + + /// + /// Gets or sets cluster operating system. Possible values include: + /// 'Windows', 'Linux' + /// + [JsonProperty(PropertyName = "properties.environment")] + public string Environment { get; set; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterHealthPolicy.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterHealthPolicy.cs new file mode 100644 index 000000000000..1f2f9b5f6eb8 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterHealthPolicy.cs @@ -0,0 +1,117 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines a health policy used to evaluate the health of the cluster or + /// of a cluster node. + /// + public partial class ClusterHealthPolicy + { + /// + /// Initializes a new instance of the ClusterHealthPolicy class. + /// + public ClusterHealthPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterHealthPolicy class. + /// + /// The maximum allowed + /// percentage of unhealthy nodes before reporting an error. For + /// example, to allow 10% of nodes to be unhealthy, this value would be + /// 10. + /// The maximum allowed + /// percentage of unhealthy applications before reporting an error. For + /// example, to allow 10% of applications to be unhealthy, this value + /// would be 10. + /// Defines a map with max + /// percentage unhealthy applications for specific application + /// types,key is the name of the application type + public ClusterHealthPolicy(int? maxPercentUnhealthyNodes = default(int?), int? maxPercentUnhealthyApplications = default(int?), IDictionary applicationHealthPolicies = default(IDictionary)) + { + MaxPercentUnhealthyNodes = maxPercentUnhealthyNodes; + MaxPercentUnhealthyApplications = maxPercentUnhealthyApplications; + ApplicationHealthPolicies = applicationHealthPolicies; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the maximum allowed percentage of unhealthy nodes + /// before reporting an error. For example, to allow 10% of nodes to be + /// unhealthy, this value would be 10. + /// + [JsonProperty(PropertyName = "maxPercentUnhealthyNodes")] + public int? MaxPercentUnhealthyNodes { get; set; } + + /// + /// Gets or sets the maximum allowed percentage of unhealthy + /// applications before reporting an error. For example, to allow 10% + /// of applications to be unhealthy, this value would be 10. + /// + [JsonProperty(PropertyName = "maxPercentUnhealthyApplications")] + public int? MaxPercentUnhealthyApplications { get; set; } + + /// + /// Gets or sets defines a map with max percentage unhealthy + /// applications for specific application types,key is the name of the + /// application type + /// + [JsonProperty(PropertyName = "applicationHealthPolicies")] + public IDictionary ApplicationHealthPolicies { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MaxPercentUnhealthyNodes > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxPercentUnhealthyNodes", 100); + } + if (MaxPercentUnhealthyNodes < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxPercentUnhealthyNodes", 0); + } + if (MaxPercentUnhealthyApplications > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxPercentUnhealthyApplications", 100); + } + if (MaxPercentUnhealthyApplications < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxPercentUnhealthyApplications", 0); + } + if (ApplicationHealthPolicies != null) + { + foreach (var valueElement in ApplicationHealthPolicies.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpdateParameters.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpdateParameters.cs new file mode 100644 index 000000000000..691cd205da5a --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpdateParameters.cs @@ -0,0 +1,218 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Cluster update request + /// + [Rest.Serialization.JsonTransformation] + public partial class ClusterUpdateParameters + { + /// + /// Initializes a new instance of the ClusterUpdateParameters class. + /// + public ClusterUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterUpdateParameters class. + /// + /// This level is used to set the number + /// of replicas of the system services. Possible values include: + /// 'Bronze', 'Silver', 'Gold' + /// Cluster upgrade mode indicates if fabric + /// upgrade is initiated automatically by the system or not. Possible + /// values include: 'Automatic', 'Manual' + /// The ServiceFabric code version, if + /// set it, please make sure you have set upgradeMode to Manual, + /// otherwise ,it will fail, if you are using PUT new cluster, you can + /// get the version by using ClusterVersions_List, if you are updating + /// existing cluster, you can get the availableClusterVersions from + /// Clusters_Get + /// This primay certificate will be used as + /// cluster node to node security, SSL certificate for cluster + /// management endpoint and default admin client, the certificate + /// should exist in the virtual machine scale sets or Azure key vault, + /// before you add it. It will override original value + /// The client thumbprint + /// details, it is used for client access for cluster operation, it + /// will override existing collection + /// List of client + /// certificates to whitelist based on common names. + /// List of custom fabric settings to + /// configure the cluster, Note, it will overwrite existing + /// collection + /// Certificate for the reverse + /// proxy + /// The list of nodetypes that make up the + /// cluster, it will override + /// Cluster update parameters + public ClusterUpdateParameters(string reliabilityLevel = default(string), string upgradeMode = default(string), string clusterCodeVersion = default(string), CertificateDescription certificate = default(CertificateDescription), IList clientCertificateThumbprints = default(IList), IList clientCertificateCommonNames = default(IList), IList fabricSettings = default(IList), CertificateDescription reverseProxyCertificate = default(CertificateDescription), IList nodeTypes = default(IList), IDictionary tags = default(IDictionary)) + { + ReliabilityLevel = reliabilityLevel; + UpgradeMode = upgradeMode; + ClusterCodeVersion = clusterCodeVersion; + Certificate = certificate; + ClientCertificateThumbprints = clientCertificateThumbprints; + ClientCertificateCommonNames = clientCertificateCommonNames; + FabricSettings = fabricSettings; + ReverseProxyCertificate = reverseProxyCertificate; + NodeTypes = nodeTypes; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets this level is used to set the number of replicas of + /// the system services. Possible values include: 'Bronze', 'Silver', + /// 'Gold' + /// + [JsonProperty(PropertyName = "properties.reliabilityLevel")] + public string ReliabilityLevel { get; set; } + + /// + /// Gets or sets cluster upgrade mode indicates if fabric upgrade is + /// initiated automatically by the system or not. Possible values + /// include: 'Automatic', 'Manual' + /// + [JsonProperty(PropertyName = "properties.upgradeMode")] + public string UpgradeMode { get; set; } + + /// + /// Gets or sets the ServiceFabric code version, if set it, please make + /// sure you have set upgradeMode to Manual, otherwise ,it will fail, + /// if you are using PUT new cluster, you can get the version by using + /// ClusterVersions_List, if you are updating existing cluster, you can + /// get the availableClusterVersions from Clusters_Get + /// + [JsonProperty(PropertyName = "properties.clusterCodeVersion")] + public string ClusterCodeVersion { get; set; } + + /// + /// Gets or sets this primay certificate will be used as cluster node + /// to node security, SSL certificate for cluster management endpoint + /// and default admin client, the certificate should exist in the + /// virtual machine scale sets or Azure key vault, before you add it. + /// It will override original value + /// + [JsonProperty(PropertyName = "properties.certificate")] + public CertificateDescription Certificate { get; set; } + + /// + /// Gets or sets the client thumbprint details, it is used for client + /// access for cluster operation, it will override existing collection + /// + [JsonProperty(PropertyName = "properties.clientCertificateThumbprints")] + public IList ClientCertificateThumbprints { get; set; } + + /// + /// Gets or sets list of client certificates to whitelist based on + /// common names. + /// + [JsonProperty(PropertyName = "properties.clientCertificateCommonNames")] + public IList ClientCertificateCommonNames { get; set; } + + /// + /// Gets or sets list of custom fabric settings to configure the + /// cluster, Note, it will overwrite existing collection + /// + [JsonProperty(PropertyName = "properties.fabricSettings")] + public IList FabricSettings { get; set; } + + /// + /// Gets or sets certificate for the reverse proxy + /// + [JsonProperty(PropertyName = "properties.reverseProxyCertificate")] + public CertificateDescription ReverseProxyCertificate { get; set; } + + /// + /// Gets or sets the list of nodetypes that make up the cluster, it + /// will override + /// + [JsonProperty(PropertyName = "properties.nodeTypes")] + public IList NodeTypes { get; set; } + + /// + /// Gets or sets cluster update parameters + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Certificate != null) + { + Certificate.Validate(); + } + if (ClientCertificateThumbprints != null) + { + foreach (var element in ClientCertificateThumbprints) + { + if (element != null) + { + element.Validate(); + } + } + } + if (ClientCertificateCommonNames != null) + { + foreach (var element1 in ClientCertificateCommonNames) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + if (FabricSettings != null) + { + foreach (var element2 in FabricSettings) + { + if (element2 != null) + { + element2.Validate(); + } + } + } + if (ReverseProxyCertificate != null) + { + ReverseProxyCertificate.Validate(); + } + if (NodeTypes != null) + { + foreach (var element3 in NodeTypes) + { + if (element3 != null) + { + element3.Validate(); + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpgradeDeltaHealthPolicy.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpgradeDeltaHealthPolicy.cs new file mode 100644 index 000000000000..68df4718ca25 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpgradeDeltaHealthPolicy.cs @@ -0,0 +1,125 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Delta health policy for the cluster + /// + public partial class ClusterUpgradeDeltaHealthPolicy + { + /// + /// Initializes a new instance of the ClusterUpgradeDeltaHealthPolicy + /// class. + /// + public ClusterUpgradeDeltaHealthPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterUpgradeDeltaHealthPolicy + /// class. + /// + /// Additional unhealthy + /// nodes percentage + /// Additional + /// unhealthy nodes percentage per upgrade domain + /// Additional + /// unhealthy applications percentage + /// Application health + /// policy + public ClusterUpgradeDeltaHealthPolicy(int maxPercentDeltaUnhealthyNodes, int maxPercentUpgradeDomainDeltaUnhealthyNodes, int maxPercentDeltaUnhealthyApplications, IDictionary applicationHealthPolicies = default(IDictionary)) + { + MaxPercentDeltaUnhealthyNodes = maxPercentDeltaUnhealthyNodes; + MaxPercentUpgradeDomainDeltaUnhealthyNodes = maxPercentUpgradeDomainDeltaUnhealthyNodes; + MaxPercentDeltaUnhealthyApplications = maxPercentDeltaUnhealthyApplications; + ApplicationHealthPolicies = applicationHealthPolicies; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets additional unhealthy nodes percentage + /// + [JsonProperty(PropertyName = "maxPercentDeltaUnhealthyNodes")] + public int MaxPercentDeltaUnhealthyNodes { get; set; } + + /// + /// Gets or sets additional unhealthy nodes percentage per upgrade + /// domain + /// + [JsonProperty(PropertyName = "maxPercentUpgradeDomainDeltaUnhealthyNodes")] + public int MaxPercentUpgradeDomainDeltaUnhealthyNodes { get; set; } + + /// + /// Gets or sets additional unhealthy applications percentage + /// + [JsonProperty(PropertyName = "maxPercentDeltaUnhealthyApplications")] + public int MaxPercentDeltaUnhealthyApplications { get; set; } + + /// + /// Gets or sets application health policy + /// + [JsonProperty(PropertyName = "applicationHealthPolicies")] + public IDictionary ApplicationHealthPolicies { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MaxPercentDeltaUnhealthyNodes > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxPercentDeltaUnhealthyNodes", 100); + } + if (MaxPercentDeltaUnhealthyNodes < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxPercentDeltaUnhealthyNodes", 0); + } + if (MaxPercentUpgradeDomainDeltaUnhealthyNodes > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxPercentUpgradeDomainDeltaUnhealthyNodes", 100); + } + if (MaxPercentUpgradeDomainDeltaUnhealthyNodes < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxPercentUpgradeDomainDeltaUnhealthyNodes", 0); + } + if (MaxPercentDeltaUnhealthyApplications > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxPercentDeltaUnhealthyApplications", 100); + } + if (MaxPercentDeltaUnhealthyApplications < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxPercentDeltaUnhealthyApplications", 0); + } + if (ApplicationHealthPolicies != null) + { + foreach (var valueElement in ApplicationHealthPolicies.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpgradePolicy.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpgradePolicy.cs new file mode 100644 index 000000000000..1109f2bfa602 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterUpgradePolicy.cs @@ -0,0 +1,181 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cluster upgrade policy + /// + public partial class ClusterUpgradePolicy + { + /// + /// Initializes a new instance of the ClusterUpgradePolicy class. + /// + public ClusterUpgradePolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterUpgradePolicy class. + /// + /// Timeout for replica set + /// upgrade to complete,it represents .Net TimeSpan + /// The length of time to wait + /// after completing an upgrade domain before performing health checks, + /// it represents .Net TimeSpan + /// The length of time that + /// health checks must pass continuously,it represents .Net + /// TimeSpan + /// The length of time that + /// health checks can fail continuously,it represents .Net + /// TimeSpan + /// The upgrade timeout,it represents .Net + /// TimeSpan + /// The timeout for any upgrade + /// domain,it represents .Net TimeSpan + /// Cluster health Policy + /// Use the user defined + /// upgrade policy or not + /// Force node to restart or not + /// Delta health policy + public ClusterUpgradePolicy(string upgradeReplicaSetCheckTimeout, string healthCheckWaitDuration, string healthCheckStableDuration, string healthCheckRetryTimeout, string upgradeTimeout, string upgradeDomainTimeout, ClusterHealthPolicy healthPolicy, bool? overrideUserUpgradePolicy = default(bool?), bool? forceRestart = default(bool?), ClusterUpgradeDeltaHealthPolicy deltaHealthPolicy = default(ClusterUpgradeDeltaHealthPolicy)) + { + OverrideUserUpgradePolicy = overrideUserUpgradePolicy; + ForceRestart = forceRestart; + UpgradeReplicaSetCheckTimeout = upgradeReplicaSetCheckTimeout; + HealthCheckWaitDuration = healthCheckWaitDuration; + HealthCheckStableDuration = healthCheckStableDuration; + HealthCheckRetryTimeout = healthCheckRetryTimeout; + UpgradeTimeout = upgradeTimeout; + UpgradeDomainTimeout = upgradeDomainTimeout; + HealthPolicy = healthPolicy; + DeltaHealthPolicy = deltaHealthPolicy; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets use the user defined upgrade policy or not + /// + [JsonProperty(PropertyName = "overrideUserUpgradePolicy")] + public bool? OverrideUserUpgradePolicy { get; set; } + + /// + /// Gets or sets force node to restart or not + /// + [JsonProperty(PropertyName = "forceRestart")] + public bool? ForceRestart { get; set; } + + /// + /// Gets or sets timeout for replica set upgrade to complete,it + /// represents .Net TimeSpan + /// + [JsonProperty(PropertyName = "upgradeReplicaSetCheckTimeout")] + public string UpgradeReplicaSetCheckTimeout { get; set; } + + /// + /// Gets or sets the length of time to wait after completing an upgrade + /// domain before performing health checks, it represents .Net TimeSpan + /// + [JsonProperty(PropertyName = "healthCheckWaitDuration")] + public string HealthCheckWaitDuration { get; set; } + + /// + /// Gets or sets the length of time that health checks must pass + /// continuously,it represents .Net TimeSpan + /// + [JsonProperty(PropertyName = "healthCheckStableDuration")] + public string HealthCheckStableDuration { get; set; } + + /// + /// Gets or sets the length of time that health checks can fail + /// continuously,it represents .Net TimeSpan + /// + [JsonProperty(PropertyName = "healthCheckRetryTimeout")] + public string HealthCheckRetryTimeout { get; set; } + + /// + /// Gets or sets the upgrade timeout,it represents .Net TimeSpan + /// + [JsonProperty(PropertyName = "upgradeTimeout")] + public string UpgradeTimeout { get; set; } + + /// + /// Gets or sets the timeout for any upgrade domain,it represents .Net + /// TimeSpan + /// + [JsonProperty(PropertyName = "upgradeDomainTimeout")] + public string UpgradeDomainTimeout { get; set; } + + /// + /// Gets or sets cluster health Policy + /// + [JsonProperty(PropertyName = "healthPolicy")] + public ClusterHealthPolicy HealthPolicy { get; set; } + + /// + /// Gets or sets delta health policy + /// + [JsonProperty(PropertyName = "deltaHealthPolicy")] + public ClusterUpgradeDeltaHealthPolicy DeltaHealthPolicy { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (UpgradeReplicaSetCheckTimeout == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "UpgradeReplicaSetCheckTimeout"); + } + if (HealthCheckWaitDuration == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "HealthCheckWaitDuration"); + } + if (HealthCheckStableDuration == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "HealthCheckStableDuration"); + } + if (HealthCheckRetryTimeout == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "HealthCheckRetryTimeout"); + } + if (UpgradeTimeout == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "UpgradeTimeout"); + } + if (UpgradeDomainTimeout == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "UpgradeDomainTimeout"); + } + if (HealthPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "HealthPolicy"); + } + if (HealthPolicy != null) + { + HealthPolicy.Validate(); + } + if (DeltaHealthPolicy != null) + { + DeltaHealthPolicy.Validate(); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterVersionDetails.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterVersionDetails.cs new file mode 100644 index 000000000000..82c611a4f1ed --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ClusterVersionDetails.cs @@ -0,0 +1,68 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The detail of the ServiceFabric runtime version result + /// + public partial class ClusterVersionDetails + { + /// + /// Initializes a new instance of the ClusterVersionDetails class. + /// + public ClusterVersionDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterVersionDetails class. + /// + /// The ServiceFabric runtime version of the + /// cluster + /// The date of expiry of support of the + /// version + /// Cluster operating system. Possible values + /// include: 'Windows', 'Linux' + public ClusterVersionDetails(string codeVersion = default(string), string supportExpiryUtc = default(string), string environment = default(string)) + { + CodeVersion = codeVersion; + SupportExpiryUtc = supportExpiryUtc; + Environment = environment; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ServiceFabric runtime version of the cluster + /// + [JsonProperty(PropertyName = "codeVersion")] + public string CodeVersion { get; set; } + + /// + /// Gets or sets the date of expiry of support of the version + /// + [JsonProperty(PropertyName = "supportExpiryUtc")] + public string SupportExpiryUtc { get; set; } + + /// + /// Gets or sets cluster operating system. Possible values include: + /// 'Windows', 'Linux' + /// + [JsonProperty(PropertyName = "environment")] + public string Environment { get; set; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/DiagnosticsStorageAccountConfig.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/DiagnosticsStorageAccountConfig.cs new file mode 100644 index 000000000000..e324cb093b9f --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/DiagnosticsStorageAccountConfig.cs @@ -0,0 +1,117 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Diagnostics storage account config + /// + public partial class DiagnosticsStorageAccountConfig + { + /// + /// Initializes a new instance of the DiagnosticsStorageAccountConfig + /// class. + /// + public DiagnosticsStorageAccountConfig() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DiagnosticsStorageAccountConfig + /// class. + /// + /// Diagnostics storage account + /// name + /// Protected Diagnostics storage + /// key name + /// Diagnostics storage account blob + /// endpoint + /// Diagnostics storage account queue + /// endpoint + /// Diagnostics storage account table + /// endpoint + public DiagnosticsStorageAccountConfig(string storageAccountName, string protectedAccountKeyName, string blobEndpoint, string queueEndpoint, string tableEndpoint) + { + StorageAccountName = storageAccountName; + ProtectedAccountKeyName = protectedAccountKeyName; + BlobEndpoint = blobEndpoint; + QueueEndpoint = queueEndpoint; + TableEndpoint = tableEndpoint; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets diagnostics storage account name + /// + [JsonProperty(PropertyName = "storageAccountName")] + public string StorageAccountName { get; set; } + + /// + /// Gets or sets protected Diagnostics storage key name + /// + [JsonProperty(PropertyName = "protectedAccountKeyName")] + public string ProtectedAccountKeyName { get; set; } + + /// + /// Gets or sets diagnostics storage account blob endpoint + /// + [JsonProperty(PropertyName = "blobEndpoint")] + public string BlobEndpoint { get; set; } + + /// + /// Gets or sets diagnostics storage account queue endpoint + /// + [JsonProperty(PropertyName = "queueEndpoint")] + public string QueueEndpoint { get; set; } + + /// + /// Gets or sets diagnostics storage account table endpoint + /// + [JsonProperty(PropertyName = "tableEndpoint")] + public string TableEndpoint { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccountName"); + } + if (ProtectedAccountKeyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProtectedAccountKeyName"); + } + if (BlobEndpoint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "BlobEndpoint"); + } + if (QueueEndpoint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "QueueEndpoint"); + } + if (TableEndpoint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TableEndpoint"); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/EndpointRangeDescription.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/EndpointRangeDescription.cs new file mode 100644 index 000000000000..85f5deae85cb --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/EndpointRangeDescription.cs @@ -0,0 +1,66 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Port range details + /// + public partial class EndpointRangeDescription + { + /// + /// Initializes a new instance of the EndpointRangeDescription class. + /// + public EndpointRangeDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EndpointRangeDescription class. + /// + /// Starting port of a range of ports + /// End port of a range of ports + public EndpointRangeDescription(int startPort, int endPort) + { + StartPort = startPort; + EndPort = endPort; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets starting port of a range of ports + /// + [JsonProperty(PropertyName = "startPort")] + public int StartPort { get; set; } + + /// + /// Gets or sets end port of a range of ports + /// + [JsonProperty(PropertyName = "endPort")] + public int EndPort { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModel.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModel.cs new file mode 100644 index 000000000000..099b2f1a3982 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModel.cs @@ -0,0 +1,48 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The structure of the error + /// + public partial class ErrorModel + { + /// + /// Initializes a new instance of the ErrorModel class. + /// + public ErrorModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorModel class. + /// + /// The error detail + public ErrorModel(ErrorModelError error = default(ErrorModelError)) + { + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error detail + /// + [JsonProperty(PropertyName = "error")] + public ErrorModelError Error { get; set; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModelError.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModelError.cs new file mode 100644 index 000000000000..76cda93952c8 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModelError.cs @@ -0,0 +1,56 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The error detail + /// + public partial class ErrorModelError + { + /// + /// Initializes a new instance of the ErrorModelError class. + /// + public ErrorModelError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorModelError class. + /// + /// The error code + /// The error message + public ErrorModelError(string code = default(string), string message = default(string)) + { + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error code + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets the error message + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModelException.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModelException.cs new file mode 100644 index 000000000000..e9dec3d07a09 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ErrorModelException.cs @@ -0,0 +1,95 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ErrorModel information. + /// +#if LEGACY + [System.Serializable] +#endif + public class ErrorModelException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorModel Body { get; set; } + + /// + /// Initializes a new instance of the ErrorModelException class. + /// + public ErrorModelException() + { + } + + /// + /// Initializes a new instance of the ErrorModelException class. + /// + /// The exception message. + public ErrorModelException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorModelException class. + /// + /// The exception message. + /// Inner exception. + public ErrorModelException(string message, System.Exception innerException) + : base(message, innerException) + { + } + +#if LEGACY + /// + /// Initializes a new instance of the ErrorModelException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorModelException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + /// + /// Thrown when a required parameter is null + /// + [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new System.ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/NodeTypeDescription.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/NodeTypeDescription.cs new file mode 100644 index 000000000000..28268e3a34d0 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/NodeTypeDescription.cs @@ -0,0 +1,176 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes a node type in the cluster, each node type represents sub set + /// of nodes in the cluster + /// + public partial class NodeTypeDescription + { + /// + /// Initializes a new instance of the NodeTypeDescription class. + /// + public NodeTypeDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NodeTypeDescription class. + /// + /// Name of the node type + /// The TCP cluster + /// management endpoint port + /// The HTTP cluster management + /// endpoint port + /// Mark this as the primary node type + /// The number of node instances in the + /// node type + /// The placement tags applied to + /// nodes in the node type, which can be used to indicate where certain + /// services (workload) should run + /// The capacity tags applied to the nodes in + /// the node type, the cluster resource manager uses these tags to + /// understand how much of a resource a node has + /// Nodetype durability Level. Possible + /// values include: 'Bronze', 'Silver', 'Gold' + /// Ports used by applications + /// System assgined application + /// ports + /// Endpoint used by reverse + /// proxy + public NodeTypeDescription(string name, int clientConnectionEndpointPort, int httpGatewayEndpointPort, bool isPrimary, int vmInstanceCount, IDictionary placementProperties = default(IDictionary), IDictionary capacities = default(IDictionary), string durabilityLevel = default(string), EndpointRangeDescription applicationPorts = default(EndpointRangeDescription), EndpointRangeDescription ephemeralPorts = default(EndpointRangeDescription), int? reverseProxyEndpointPort = default(int?)) + { + Name = name; + PlacementProperties = placementProperties; + Capacities = capacities; + ClientConnectionEndpointPort = clientConnectionEndpointPort; + HttpGatewayEndpointPort = httpGatewayEndpointPort; + DurabilityLevel = durabilityLevel; + ApplicationPorts = applicationPorts; + EphemeralPorts = ephemeralPorts; + IsPrimary = isPrimary; + VmInstanceCount = vmInstanceCount; + ReverseProxyEndpointPort = reverseProxyEndpointPort; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the node type + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the placement tags applied to nodes in the node type, + /// which can be used to indicate where certain services (workload) + /// should run + /// + [JsonProperty(PropertyName = "placementProperties")] + public IDictionary PlacementProperties { get; set; } + + /// + /// Gets or sets the capacity tags applied to the nodes in the node + /// type, the cluster resource manager uses these tags to understand + /// how much of a resource a node has + /// + [JsonProperty(PropertyName = "capacities")] + public IDictionary Capacities { get; set; } + + /// + /// Gets or sets the TCP cluster management endpoint port + /// + [JsonProperty(PropertyName = "clientConnectionEndpointPort")] + public int ClientConnectionEndpointPort { get; set; } + + /// + /// Gets or sets the HTTP cluster management endpoint port + /// + [JsonProperty(PropertyName = "httpGatewayEndpointPort")] + public int HttpGatewayEndpointPort { get; set; } + + /// + /// Gets or sets nodetype durability Level. Possible values include: + /// 'Bronze', 'Silver', 'Gold' + /// + [JsonProperty(PropertyName = "durabilityLevel")] + public string DurabilityLevel { get; set; } + + /// + /// Gets or sets ports used by applications + /// + [JsonProperty(PropertyName = "applicationPorts")] + public EndpointRangeDescription ApplicationPorts { get; set; } + + /// + /// Gets or sets system assgined application ports + /// + [JsonProperty(PropertyName = "ephemeralPorts")] + public EndpointRangeDescription EphemeralPorts { get; set; } + + /// + /// Gets or sets mark this as the primary node type + /// + [JsonProperty(PropertyName = "isPrimary")] + public bool IsPrimary { get; set; } + + /// + /// Gets or sets the number of node instances in the node type + /// + [JsonProperty(PropertyName = "vmInstanceCount")] + public int VmInstanceCount { get; set; } + + /// + /// Gets or sets endpoint used by reverse proxy + /// + [JsonProperty(PropertyName = "reverseProxyEndpointPort")] + public int? ReverseProxyEndpointPort { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (ApplicationPorts != null) + { + ApplicationPorts.Validate(); + } + if (EphemeralPorts != null) + { + EphemeralPorts.Validate(); + } + if (VmInstanceCount > 2147483647) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "VmInstanceCount", 2147483647); + } + if (VmInstanceCount < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "VmInstanceCount", 1); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/OperationResult.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/OperationResult.cs new file mode 100644 index 000000000000..447e4b2d5600 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/OperationResult.cs @@ -0,0 +1,73 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Available operation list result + /// + public partial class OperationResult + { + /// + /// Initializes a new instance of the OperationResult class. + /// + public OperationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationResult class. + /// + /// Result name + /// Dispaly of the result + /// Origin result + /// The URL to use for getting the next set of + /// results. + public OperationResult(string name = default(string), AvailableOperationDisplay display = default(AvailableOperationDisplay), string origin = default(string), string nextLink = default(string)) + { + Name = name; + Display = display; + Origin = origin; + NextLink = nextLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets result name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets dispaly of the result + /// + [JsonProperty(PropertyName = "display")] + public AvailableOperationDisplay Display { get; set; } + + /// + /// Gets or sets origin result + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; set; } + + /// + /// Gets or sets the URL to use for getting the next set of results. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; set; } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Page.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Page.cs new file mode 100644 index 000000000000..d8210a5914c9 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Page.cs @@ -0,0 +1,50 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ProvisioningState.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..141b2e7678bc --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ProvisioningState.cs @@ -0,0 +1,21 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + + /// + /// Defines values for ProvisioningState. + /// + public static class ProvisioningState + { + public const string Updating = "Updating"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Resource.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Resource.cs new file mode 100644 index 000000000000..980368d20ee8 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/Resource.cs @@ -0,0 +1,97 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The resource model definition. + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + public Resource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets resource location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ServiceTypeDeltaHealthPolicy.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ServiceTypeDeltaHealthPolicy.cs new file mode 100644 index 000000000000..79114a347aaf --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ServiceTypeDeltaHealthPolicy.cs @@ -0,0 +1,69 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Service health policy + /// + public partial class ServiceTypeDeltaHealthPolicy + { + /// + /// Initializes a new instance of the ServiceTypeDeltaHealthPolicy + /// class. + /// + public ServiceTypeDeltaHealthPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceTypeDeltaHealthPolicy + /// class. + /// + /// Maximum percentage + /// of unhealthy services in cluster + public ServiceTypeDeltaHealthPolicy(int? maxPercentDeltaUnhealthyServices = default(int?)) + { + MaxPercentDeltaUnhealthyServices = maxPercentDeltaUnhealthyServices; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets maximum percentage of unhealthy services in cluster + /// + [JsonProperty(PropertyName = "maxPercentDeltaUnhealthyServices")] + public int? MaxPercentDeltaUnhealthyServices { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MaxPercentDeltaUnhealthyServices > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxPercentDeltaUnhealthyServices", 100); + } + if (MaxPercentDeltaUnhealthyServices < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxPercentDeltaUnhealthyServices", 0); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ServiceTypeHealthPolicy.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ServiceTypeHealthPolicy.cs new file mode 100644 index 000000000000..e2271138e907 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/ServiceTypeHealthPolicy.cs @@ -0,0 +1,70 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents the health policy used to evaluate the health of services + /// belonging to a service type. + /// + public partial class ServiceTypeHealthPolicy + { + /// + /// Initializes a new instance of the ServiceTypeHealthPolicy class. + /// + public ServiceTypeHealthPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceTypeHealthPolicy class. + /// + /// The maximum maximum + /// allowed percentage of unhealthy services. Allowed values are Byte + /// values from zero to 100. + public ServiceTypeHealthPolicy(int? maxPercentUnhealthyServices = default(int?)) + { + MaxPercentUnhealthyServices = maxPercentUnhealthyServices; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the maximum maximum allowed percentage of unhealthy + /// services. Allowed values are Byte values from zero to 100. + /// + [JsonProperty(PropertyName = "maxPercentUnhealthyServices")] + public int? MaxPercentUnhealthyServices { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MaxPercentUnhealthyServices > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxPercentUnhealthyServices", 100); + } + if (MaxPercentUnhealthyServices < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxPercentUnhealthyServices", 0); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/SettingsParameterDescription.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/SettingsParameterDescription.cs new file mode 100644 index 000000000000..5584ea6b9328 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/SettingsParameterDescription.cs @@ -0,0 +1,76 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// ServiceFabric settings under sections + /// + public partial class SettingsParameterDescription + { + /// + /// Initializes a new instance of the SettingsParameterDescription + /// class. + /// + public SettingsParameterDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SettingsParameterDescription + /// class. + /// + /// The name of settings property + /// The value of the property + public SettingsParameterDescription(string name, string value) + { + Name = name; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of settings property + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the value of the property + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/SettingsSectionDescription.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/SettingsSectionDescription.cs new file mode 100644 index 000000000000..bebb66613d57 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Models/SettingsSectionDescription.cs @@ -0,0 +1,89 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// ServiceFabric section settings + /// + public partial class SettingsSectionDescription + { + /// + /// Initializes a new instance of the SettingsSectionDescription class. + /// + public SettingsSectionDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SettingsSectionDescription class. + /// + /// The name of settings section + /// Collection of settings in the section, + /// each setting is a tuple consisting of setting name and + /// value + public SettingsSectionDescription(string name, IList parameters) + { + Name = name; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of settings section + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets collection of settings in the section, each setting is + /// a tuple consisting of setting name and value + /// + [JsonProperty(PropertyName = "parameters")] + public IList Parameters { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Parameters"); + } + if (Parameters != null) + { + foreach (var element in Parameters) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Operations.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Operations.cs new file mode 100644 index 000000000000..a513cd522d2f --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/Operations.cs @@ -0,0 +1,386 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + 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; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(ServiceFabricManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ServiceFabricManagementClient + /// + public ServiceFabricManagementClient Client { get; private set; } + + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// 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.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("/") ? "" : "/")), "providers/Microsoft.ServiceFabric/operations").ToString(); + 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 ErrorModelException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorModel _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; + } + + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorModelException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorModel _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/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/OperationsExtensions.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..fba1e46edc03 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/OperationsExtensions.cs @@ -0,0 +1,83 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available ServiceFabric REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ServiceFabricManagementClient.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ServiceFabricManagementClient.cs new file mode 100644 index 000000000000..c53b83c2e68a --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Generated/ServiceFabricManagementClient.cs @@ -0,0 +1,324 @@ +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ServiceFabric +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + public partial class ServiceFabricManagementClient : ServiceClient, IServiceFabricManagementClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The customer subscription identifier + /// + public string SubscriptionId { get; set; } + + /// + /// The version of the ServiceFabric resouce provider api + /// + public string ApiVersion { get; private set; } + + /// + /// Gets or sets the preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running Operations. + /// Default value is 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IClustersOperations. + /// + public virtual IClustersOperations Clusters { get; private set; } + + /// + /// Gets the IClusterVersionsOperations. + /// + public virtual IClusterVersionsOperations ClusterVersions { get; private set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ServiceFabricManagementClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ServiceFabricManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ServiceFabricManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ServiceFabricManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ServiceFabricManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ServiceFabricManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ServiceFabricManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ServiceFabricManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ServiceFabricManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Clusters = new ClustersOperations(this); + ClusterVersions = new ClusterVersionsOperations(this); + Operations = new Operations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2016-09-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Microsoft.Azure.Management.ServiceFabric.xproj b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Microsoft.Azure.Management.ServiceFabric.xproj new file mode 100644 index 000000000000..29de82f0546e --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Microsoft.Azure.Management.ServiceFabric.xproj @@ -0,0 +1,21 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + 624659FE-FE8F-41D2-99AB-0BA92DE15A65 + Microsoft.Azure.Management.ServiceFabric + .\obj + .\bin\ + + + 2.0 + + + True + + + \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Properties/AssemblyInfo.cs b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..fe3660fa7f25 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +// 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; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ServiceFabric")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ServiceFabric")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/generate.cmd b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/generate.cmd new file mode 100644 index 000000000000..9e6e5b1b4d13 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/generate.cmd @@ -0,0 +1,17 @@ +:: +:: Microsoft Azure SDK for Net - Generate library code +:: Copyright (C) Microsoft Corporation. All Rights Reserved. +:: + +@echo off +set autoRestVersion=1.0.0-Nightly20170202 +if "%1" == "" ( + set specFile="https://github.com/Azure/azure-rest-api-specs/blob/c683f6510a689e1629adb5d8e9e21848c68f2ca3/arm-servicefabric/2016-09-01/swagger/servicefabric.json" +) else ( + set specFile="%1" +) +set repoRoot=%~dp0..\..\..\.. +set generateFolder=%~dp0Generated + +if exist %generateFolder% rd /S /Q %generateFolder% +call "%repoRoot%\tools\autorest.composite.gen.cmd" %specFile% Microsoft.Azure.Management.ServiceFabric %autoRestVersion% %generateFolder% \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/project.json b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/project.json new file mode 100644 index 000000000000..44110fae18c3 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/Microsoft.Azure.Management.ServiceFabric/project.json @@ -0,0 +1,61 @@ +{ + "version": "1.0.0-preview", + "description": "Microsoft Azure Management ServiceFabric Library", + "authors": [ + "Microsoft" + ], + "packOptions": { + "tags": [ + "Microsoft Azure Management Library", + "ServiceFabric", + "ServiceFabric management", + "REST HTTP client", + "windowsazureofficial", + "netcore451511" + ], + "projectUrl": "https://github.com/Azure/azure-sdk-for-net", + "licenseUrl": "https://raw.githubusercontent.com/Microsoft/dotnet/master/LICENSE", + "iconUrl": "http://go.microsoft.com/fwlink/?LinkID=288890", + "requireLicenseAcceptance": true + }, + "buildOptions": { + "delaySign": true, + "publicSign": false, + "keyFile": "../../../../tools/MSSharedLibKey.snk" + }, + + "dependencies": { + "Microsoft.Rest.ClientRuntime.Azure": "[3.3.5,4.0.0)", + "Microsoft.Rest.ClientRuntime": "[2.3.5,3.0.0)" + }, + + "frameworks": { + "net45": { + "dependencies": { + } + }, + "netstandard1.5": { + "imports": [ "dnxcore50" ], + "buildOptions": { "define": [ "PORTABLE" ] }, + "dependencies": { + "Microsoft.NETCore.Platforms": "1.1.0", + "NETStandard.Library": "1.6.1", + "System.Runtime.Serialization.Primitives": "4.1.1", + "System.Diagnostics.Tools": "4.3.0", + "System.Net.Http": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Threading.Tasks": "4.3.0" + } + }, + "netstandard1.1": { + "imports": [ "dnxcore50" ], + "buildOptions": { "define": [ "PORTABLE" ] }, + "dependencies": { + "Microsoft.NETCore.Platforms": "1.1.0", + "NETStandard.Library": "1.6.1", + "System.Runtime.Serialization.Primitives": "4.1.1" + } + } + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/ServiceFabric.Tests.xproj b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/ServiceFabric.Tests.xproj new file mode 100644 index 000000000000..d686a9ebf443 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/ServiceFabric.Tests.xproj @@ -0,0 +1,21 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + F857A01A-2955-4FC9-836B-FE7FD80C6CC2 + ServiceFabric.Tests + .\obj + .\bin\ + + + 2.0 + + + + + + \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestCreateClusterResource/TestCreate.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestCreateClusterResource/TestCreate.json new file mode 100644 index 000000000000..6dcf820b51d6 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestCreateClusterResource/TestCreate.json @@ -0,0 +1,395 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL1Rlc3RSRzEvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL3Rlc3RDcmVhdGVDbHVzdGVyMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aaa936c1-2c5e-4022-b276-922034bac911" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2\",\r\n \"name\": \"testCreateCluster2\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636258957273157045\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9525f566-2a5e-488f-8b69-4b41f6562c78\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9525f566-2a5e-488f-8b69-4b41f6562c78\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "c7ea21b6-95b8-45ef-9caf-64d7d637b50f" + ], + "x-ms-correlation-request-id": [ + "c7ea21b6-95b8-45ef-9caf-64d7d637b50f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142216Z:c7ea21b6-95b8-45ef-9caf-64d7d637b50f" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL1Rlc3RSRzEvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL3Rlc3RDcmVhdGVDbHVzdGVyMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ae56b71-dd42-4c4f-83d7-d6bfe4a1a379" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2\",\r\n \"name\": \"testCreateCluster2\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636266533494387491\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"8c0d53d2-fe48-48b7-9e76-65ac1a5de496\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/8c0d53d2-fe48-48b7-9e76-65ac1a5de496\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "0929bde3-b137-4cec-a3ea-8b1f57dd577a" + ], + "x-ms-correlation-request-id": [ + "0929bde3-b137-4cec-a3ea-8b1f57dd577a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142230Z:0929bde3-b137-4cec-a3ea-8b1f57dd577a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL1Rlc3RSRzEvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL3Rlc3RDcmVhdGVDbHVzdGVyMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a7f05faa-5cac-46a2-abe4-22e33a1cc366" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2\",\r\n \"name\": \"testCreateCluster2\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636266533494387491\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"8c0d53d2-fe48-48b7-9e76-65ac1a5de496\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/8c0d53d2-fe48-48b7-9e76-65ac1a5de496\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "0301d3e9-0201-4dd4-a95f-51368f0acfb4" + ], + "x-ms-correlation-request-id": [ + "0301d3e9-0201-4dd4-a95f-51368f0acfb4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142230Z:0301d3e9-0201-4dd4-a95f-51368f0acfb4" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL1Rlc3RSRzEvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL3Rlc3RDcmVhdGVDbHVzdGVyMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93a23704-8bc8-4774-bfa1-fa2bb29fc1ad" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c02dc2d6-7b75-4556-82b7-fa0f21108652" + ], + "x-ms-correlation-request-id": [ + "c02dc2d6-7b75-4556-82b7-fa0f21108652" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142217Z:c02dc2d6-7b75-4556-82b7-fa0f21108652" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/TestRG1?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlZ3JvdXBzL1Rlc3RSRzE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"South Central US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "38" + ], + "x-ms-client-request-id": [ + "5dea6b39-c00c-4c1d-b00c-50528c2bc2fb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1\",\r\n \"name\": \"TestRG1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "712cf5fa-7ab8-4229-92ae-6d3253987038" + ], + "x-ms-correlation-request-id": [ + "712cf5fa-7ab8-4229-92ae-6d3253987038" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142229Z:712cf5fa-7ab8-4229-92ae-6d3253987038" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL1Rlc3RSRzEvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL3Rlc3RDcmVhdGVDbHVzdGVyMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"reliabilityLevel\": \"Silver\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"durabilityLevel\": \"Bronze\",\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5\r\n }\r\n ],\r\n \"vmImage\": \"Windows\"\r\n },\r\n \"location\": \"South Central US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "667" + ], + "x-ms-client-request-id": [ + "2d052e9b-247e-4f6a-a7a2-4d826f117d44" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2\",\r\n \"name\": \"testCreateCluster2\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636266533494387491\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"8c0d53d2-fe48-48b7-9e76-65ac1a5de496\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/8c0d53d2-fe48-48b7-9e76-65ac1a5de496\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "370834b5-6c14-400c-a4fd-62106baaac7d" + ], + "x-ms-correlation-request-id": [ + "370834b5-6c14-400c-a4fd-62106baaac7d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142230Z:370834b5-6c14-400c-a4fd-62106baaac7d" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b36cdf46-b75d-4dc2-9fe1-1296ee8c623d" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestDeleteClusterResource/TestDelete.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestDeleteClusterResource/TestDelete.json new file mode 100644 index 000000000000..37fd91d7f263 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestDeleteClusterResource/TestDelete.json @@ -0,0 +1,431 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/testDeleterg?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlZ3JvdXBzL3Rlc3REZWxldGVyZz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"South Central US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "38" + ], + "x-ms-client-request-id": [ + "f0b2beb2-bfe0-4968-bd25-c5c02a85ed80" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg\",\r\n \"name\": \"testDeleterg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "185" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:21:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "2e8bb922-3186-40b0-9a8c-67ac43666ee6" + ], + "x-ms-correlation-request-id": [ + "2e8bb922-3186-40b0-9a8c-67ac43666ee6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142158Z:2e8bb922-3186-40b0-9a8c-67ac43666ee6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL3Rlc3REZWxldGVyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMvY2x1c3RlcnMvdGVzdERlbGV0ZUNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"reliabilityLevel\": \"Silver\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"durabilityLevel\": \"Bronze\",\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5\r\n }\r\n ],\r\n \"vmImage\": \"Windows\"\r\n },\r\n \"location\": \"South Central US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "667" + ], + "x-ms-client-request-id": [ + "e401193e-3cad-40eb-ab2a-183eb157e8f8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster\",\r\n \"name\": \"testDeleteCluster\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636266533197099868\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"ec67ff99-9971-4c27-94d0-fc32dae8884c\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/ec67ff99-9971-4c27-94d0-fc32dae8884c\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "74ccd43e-0f59-4b80-b0d6-065f29105a93" + ], + "x-ms-correlation-request-id": [ + "74ccd43e-0f59-4b80-b0d6-065f29105a93" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142200Z:74ccd43e-0f59-4b80-b0d6-065f29105a93" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL3Rlc3REZWxldGVyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMvY2x1c3RlcnMvdGVzdERlbGV0ZUNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "223a535b-91b9-4417-a7a6-3dbf22b9fbae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster\",\r\n \"name\": \"testDeleteCluster\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636266533197099868\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"ec67ff99-9971-4c27-94d0-fc32dae8884c\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/ec67ff99-9971-4c27-94d0-fc32dae8884c\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "960d1dc3-6f7c-4229-8c7c-a47ff6d5bb15" + ], + "x-ms-correlation-request-id": [ + "960d1dc3-6f7c-4229-8c7c-a47ff6d5bb15" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142200Z:960d1dc3-6f7c-4229-8c7c-a47ff6d5bb15" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL3Rlc3REZWxldGVyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMvY2x1c3RlcnMvdGVzdERlbGV0ZUNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "29d7098b-60a1-44e7-861b-b246a396997c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster\",\r\n \"name\": \"testDeleteCluster\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636266533197099868\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"ec67ff99-9971-4c27-94d0-fc32dae8884c\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/ec67ff99-9971-4c27-94d0-fc32dae8884c\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "dc8a0c10-708e-42fc-a44d-45c2007910ad" + ], + "x-ms-correlation-request-id": [ + "dc8a0c10-708e-42fc-a44d-45c2007910ad" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142200Z:dc8a0c10-708e-42fc-a44d-45c2007910ad" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL3Rlc3REZWxldGVyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMvY2x1c3RlcnMvdGVzdERlbGV0ZUNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2df1cae1-68a2-406e-85be-48f0fc151d33" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.ServiceFabric/clusters/testDeleteCluster' under resource group 'testDeleterg' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "eefc261b-d4ee-4c9c-8a5a-b44d02aee6f8" + ], + "x-ms-correlation-request-id": [ + "eefc261b-d4ee-4c9c-8a5a-b44d02aee6f8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142201Z:eefc261b-d4ee-4c9c-8a5a-b44d02aee6f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/testDeleteCluster?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL3Rlc3REZWxldGVyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMvY2x1c3RlcnMvdGVzdERlbGV0ZUNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ef7d0a4-f991-4b20-8dd3-c83592455452" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "2f3becab-f478-4655-b4ea-95442f4be129" + ], + "x-ms-correlation-request-id": [ + "2f3becab-f478-4655-b4ea-95442f4be129" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142201Z:2f3becab-f478-4655-b4ea-95442f4be129" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg/providers/Microsoft.ServiceFabric/clusters/donotexistcluster?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL3Rlc3REZWxldGVyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMvY2x1c3RlcnMvZG9ub3RleGlzdGNsdXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e2c40526-49af-448d-a1b0-1577ffd9efa7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "ef4e4753-9ab3-482a-acb6-209e563f76a8" + ], + "x-ms-correlation-request-id": [ + "ef4e4753-9ab3-482a-acb6-209e563f76a8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142202Z:ef4e4753-9ab3-482a-acb6-209e563f76a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b36cdf46-b75d-4dc2-9fe1-1296ee8c623d" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestGetClusterResource/TestGet.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestGetClusterResource/TestGet.json new file mode 100644 index 000000000000..8ed2559daa3c --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestGetClusterResource/TestGet.json @@ -0,0 +1,238 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlZ3JvdXBzP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8802f3bc-dbfd-449e-8b35-7cca1e6a3b77" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg\",\r\n \"name\": \"aaaaarg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaym-test-20170318-194608\",\r\n \"name\": \"abhaym-test-20170318-194608\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703142040\",\r\n \"name\": \"abhaymtest1703142040\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703152214\",\r\n \"name\": \"abhaymtest1703152214\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703160653\",\r\n \"name\": \"abhaymtest1703160653\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703162329\",\r\n \"name\": \"abhaymtest1703162329\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703162340\",\r\n \"name\": \"abhaymtest1703162340\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703170025\",\r\n \"name\": \"abhaymtest1703170025\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703170037\",\r\n \"name\": \"abhaymtest1703170037\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182049\",\r\n \"name\": \"abhaymtest1703182049\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182157\",\r\n \"name\": \"abhaymtest1703182157\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182207\",\r\n \"name\": \"abhaymtest1703182207\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703201843\",\r\n \"name\": \"abhaymtest1703201843\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703201944\",\r\n \"name\": \"abhaymtest1703201944\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703202006\",\r\n \"name\": \"abhaymtest1703202006\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703210414\",\r\n \"name\": \"abhaymtest1703210414\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703210416\",\r\n \"name\": \"abhaymtest1703210416\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703212351\",\r\n \"name\": \"abhaymtest1703212351\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703220723\",\r\n \"name\": \"abhaymtest1703220723\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703220724\",\r\n \"name\": \"abhaymtest1703220724\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230444\",\r\n \"name\": \"abhaymtest1703230444\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230456\",\r\n \"name\": \"abhaymtest1703230456\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230505\",\r\n \"name\": \"abhaymtest1703230505\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230549\",\r\n \"name\": \"abhaymtest1703230549\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290002\",\r\n \"name\": \"abhaymtest1703290002\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290020\",\r\n \"name\": \"abhaymtest1703290020\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290021\",\r\n \"name\": \"abhaymtest1703290021\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703291956\",\r\n \"name\": \"abhaymtest1703291956\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest06\",\r\n \"name\": \"abhaytest06\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest07\",\r\n \"name\": \"abhaytest07\",\r\n \"location\": \"brazilsouth\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest10\",\r\n \"name\": \"abhaytest10\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest11\",\r\n \"name\": \"abhaytest11\",\r\n \"location\": \"brazilsouth\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/Default-ServiceBus-9653\",\r\n \"name\": \"Default-ServiceBus-9653\",\r\n \"location\": \"australiaeast\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/deployertest\",\r\n \"name\": \"deployertest\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykeyvaultrg1\",\r\n \"name\": \"mykeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvrg1\",\r\n \"name\": \"mykvrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrg1\",\r\n \"name\": \"mykvvrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrg2\",\r\n \"name\": \"mykvvrg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrgg2\",\r\n \"name\": \"mykvvrgg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newkeyvaultrg1\",\r\n \"name\": \"newkeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newkeyvaultrg3\",\r\n \"name\": \"newkeyvaultrg3\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newrecordclusterrg1\",\r\n \"name\": \"newrecordclusterrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newsftestrg1\",\r\n \"name\": \"newsftestrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newsftestrg3\",\r\n \"name\": \"newsftestrg3\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newtestresourcegroup1\",\r\n \"name\": \"newtestresourcegroup1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same1rg\",\r\n \"name\": \"same1rg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same2rg\",\r\n \"name\": \"same2rg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same2rgg\",\r\n \"name\": \"same2rgg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdklinuxtest01\",\r\n \"name\": \"sdklinuxtest01\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdklusterrg\",\r\n \"name\": \"sdklusterrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdktestkeyvaultrg\",\r\n \"name\": \"sdktestkeyvaultrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdktestrg2\",\r\n \"name\": \"sdktestrg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/SecureBaseImage\",\r\n \"name\": \"SecureBaseImage\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sfrpkeyvaultrg1\",\r\n \"name\": \"sfrpkeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sftestkeyvaultrg\",\r\n \"name\": \"sftestkeyvaultrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sftestkkrg1\",\r\n \"name\": \"sftestkkrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testCreaterg1\",\r\n \"name\": \"testCreaterg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testpowershellclusterrg1\",\r\n \"name\": \"testpowershellclusterrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1\",\r\n \"name\": \"TestRG1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testrg111\",\r\n \"name\": \"testrg111\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testsdkdnetrestrg\",\r\n \"name\": \"testsdkdnetrestrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/VmExtnAppInsightTest\",\r\n \"name\": \"VmExtnAppInsightTest\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvc-mwh-20161203-012707281-v2\",\r\n \"name\": \"wftsvc-mwh-20161203-012707281-v2\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault1\",\r\n \"name\": \"wftsvcKeyVault1\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault2\",\r\n \"name\": \"wftsvcKeyVault2\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault3\",\r\n \"name\": \"wftsvcKeyVault3\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault4\",\r\n \"name\": \"wftsvcKeyVault4\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault5\",\r\n \"name\": \"wftsvcKeyVault5\",\r\n \"location\": \"southeastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault6\",\r\n \"name\": \"wftsvcKeyVault6\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVaultAM\",\r\n \"name\": \"wftsvcKeyVaultAM\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/xunlustore\",\r\n \"name\": \"xunlustore\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/zikaiwtest10122016snrg\",\r\n \"name\": \"zikaiwtest10122016snrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:21:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "957ea6dd-02b0-4187-8080-6adfa61f7ecc" + ], + "x-ms-correlation-request-id": [ + "957ea6dd-02b0-4187-8080-6adfa61f7ecc" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142141Z:957ea6dd-02b0-4187-8080-6adfa61f7ecc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/resources?$filter=resourceType%20eq%20'Microsoft.ServiceFabric%2Fclusters'&api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcmVzb3VyY2VzPyRmaWx0ZXI9cmVzb3VyY2VUeXBlJTIwZXElMjAnTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMlMkZjbHVzdGVycycmYXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c366b616-5608-4ad0-8dba-2dd54dbd5443" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:21:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "8562d380-2106-4b83-99d9-c56b8e0677cc" + ], + "x-ms-correlation-request-id": [ + "8562d380-2106-4b83-99d9-c56b8e0677cc" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142143Z:8562d380-2106-4b83-99d9-c56b8e0677cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL2FhYWFhP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "99269232-ea62-497b-9890-39704a836b26" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n },\r\n \"etag\": \"W/\\\"636256214302176420\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://aaaaa.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxOperationTimeout\",\r\n \"value\": \"1000\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsaaaaa6039\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsaaaaa6039.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsaaaaa6039.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsaaaaa6039.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:21:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "e95ce259-ce37-4037-8b1f-0743de1d370d" + ], + "x-ms-correlation-request-id": [ + "e95ce259-ce37-4037-8b1f-0743de1d370d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142144Z:e95ce259-ce37-4037-8b1f-0743de1d370d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/donotexisting?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL2Rvbm90ZXhpc3Rpbmc/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9671c943-ec00-475d-be03-a1d4b781dae3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.ServiceFabric/clusters/donotexisting' under resource group 'aaaaarg' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "157" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:21:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "c71378b8-39ed-48e2-9641-b79e1ca3c986" + ], + "x-ms-correlation-request-id": [ + "c71378b8-39ed-48e2-9641-b79e1ca3c986" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142144Z:c71378b8-39ed-48e2-9641-b79e1ca3c986" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b36cdf46-b75d-4dc2-9fe1-1296ee8c623d" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterResource/TestList.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterResource/TestList.json new file mode 100644 index 000000000000..08ff544db434 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterResource/TestList.json @@ -0,0 +1,70 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/clusters?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VydmljZUZhYnJpYy9jbHVzdGVycz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ea49bc6-54c5-4794-823e-f3ffec1dde93" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/deployertest/providers/Microsoft.ServiceFabric/clusters/deployertest\",\r\n \"name\": \"deployertest\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"deployertest\"\r\n },\r\n \"etag\": \"W/\\\"636197629293638021\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"59e810a3-1644-47e2-86b5-a66e916c0bb8\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://deployertest.westus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://westus.servicefabric.azure.com/runtime/clusters/59e810a3-1644-47e2-86b5-a66e916c0bb8\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsdeployertest6267\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsdeployertest6267.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsdeployertest6267.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsdeployertest6267.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"deployer\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/wftsvc-mwh-20161203-012707281-v2/providers/Microsoft.ServiceFabric/clusters/wftsvc-mwh-20161203-\",\r\n \"name\": \"wftsvc-mwh-20161203-\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"wftsvc-mwh-20161203-\"\r\n },\r\n \"etag\": \"W/\\\"636163252596227409\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f7c0ff3b-0ff5-41df-8f0c-4e51f46bee79\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://wftsvc-mwh-20161203-012707281-v2.westus2.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://westus2.servicefabric.azure.com/runtime/clusters/f7c0ff3b-0ff5-41df-8f0c-4e51f46bee79\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"diagmwh20161203012707\",\r\n \"primaryAccessKey\": \"2+20fZYSmdfT8KUPCUu5UKXvHeLKTuFwqm3UBJCkmX42iKPqq9qLxc09cVx0Uolaw6s6HRUtIOm83uHMPSKEdg==\",\r\n \"secondaryAccessKey\": \"Mn8li9IXuNnQgfdTlFKR8eGW+HHKopQa7tSgKF4WlYemA2xWxbZCSV/toP4142FzQEg72HEH7q0AhTXDzDXHKg==\",\r\n \"blobEndpoint\": \"https://diagmwh20161203012707.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://diagmwh20161203012707.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://diagmwh20161203012707.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"VM2\",\r\n \"placementProperties\": {\r\n \"nodeColor\": \"Red\"\r\n },\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"westeurope\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaytest10/providers/Microsoft.ServiceFabric/clusters/abhaytest10\",\r\n \"name\": \"abhaytest10\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaytest10\"\r\n },\r\n \"etag\": \"W/\\\"636259742203563222\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"c1df46cf-2d8c-4326-a7fc-68a9f7f02a18\",\r\n \"clusterCodeVersion\": \"5.4.145.9494\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaytest10.westeurope.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://westeurope.servicefabric.azure.com/runtime/clusters/c1df46cf-2d8c-4326-a7fc-68a9f7f02a18\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsabhaytest104765\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsabhaytest104765.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsabhaytest104765.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsabhaytest104765.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"brazilsouth\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaytest07/providers/Microsoft.ServiceFabric/clusters/abhaytest07\",\r\n \"name\": \"abhaytest07\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaytest07\"\r\n },\r\n \"etag\": \"W/\\\"636258461606589559\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"ed4cfd15-ba90-4f6b-93a0-1b01676502e4\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaytest07.brazilsouth.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://southbrazil.servicefabric.azure.com/runtime/clusters/ed4cfd15-ba90-4f6b-93a0-1b01676502e4\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsabhaytest071622\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsabhaytest071622.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsabhaytest071622.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsabhaytest071622.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"bt\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"brazilsouth\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaytest11/providers/Microsoft.ServiceFabric/clusters/abhaytest11\",\r\n \"name\": \"abhaytest11\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaytest11\"\r\n },\r\n \"etag\": \"W/\\\"636259743810711551\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"a1b5c572-6c59-44f8-98a9-ea8372b69350\",\r\n \"clusterCodeVersion\": \"5.4.164.9494\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaytest11.brazilsouth.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://southbrazil.servicefabric.azure.com/runtime/clusters/a1b5c572-6c59-44f8-98a9-ea8372b69350\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsabhaytest112249\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsabhaytest112249.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsabhaytest112249.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsabhaytest112249.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"bt1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n },\r\n \"etag\": \"W/\\\"636256214302176421\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://aaaaa.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxOperationTimeout\",\r\n \"value\": \"1000\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsaaaaa6039\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsaaaaa6039.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsaaaaa6039.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsaaaaa6039.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703142040/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703142040\",\r\n \"name\": \"abhaymtest1703142040\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703142040\"\r\n },\r\n \"etag\": \"W/\\\"636251208498220241\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"0710c294-b648-430e-a8c0-07dec65ddaaf\",\r\n \"clusterCodeVersion\": \"5.5.201.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703142040.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/0710c294-b648-430e-a8c0-07dec65ddaaf\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"kfu5abfrzua2u2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://kfu5abfrzua2u2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://kfu5abfrzua2u2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://kfu5abfrzua2u2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703152214/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703152214\",\r\n \"name\": \"abhaymtest1703152214\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703152214\"\r\n },\r\n \"etag\": \"W/\\\"636252191098056200\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"d6926106-806e-4838-9011-6f2d83369b46\",\r\n \"clusterCodeVersion\": \"5.5.201.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703152214.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/d6926106-806e-4838-9011-6f2d83369b46\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"irsjpl3rjsmpk2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://irsjpl3rjsmpk2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://irsjpl3rjsmpk2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://irsjpl3rjsmpk2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703160653/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703160653\",\r\n \"name\": \"abhaymtest1703160653\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703160653\"\r\n },\r\n \"etag\": \"W/\\\"636252441405373694\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"05993e81-f074-4a75-aa0e-be74340b35e0\",\r\n \"clusterCodeVersion\": \"5.5.201.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703160653.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/05993e81-f074-4a75-aa0e-be74340b35e0\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"ot75v2adi5eho2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://ot75v2adi5eho2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://ot75v2adi5eho2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://ot75v2adi5eho2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703162329/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703162329\",\r\n \"name\": \"abhaymtest1703162329\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703162329\"\r\n },\r\n \"etag\": \"W/\\\"636253038124659648\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"c0c53e28-8549-4584-9f5d-fdb077cae3d2\",\r\n \"clusterCodeVersion\": \"5.6.134.9494\",\r\n \"clusterState\": \"Deploying\",\r\n \"managementEndpoint\": \"http://abhaymtest1703162329.westcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/c0c53e28-8549-4584-9f5d-fdb077cae3d2\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"fgyzih33ttzpm2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://fgyzih33ttzpm2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://fgyzih33ttzpm2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://fgyzih33ttzpm2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703162340/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703162340\",\r\n \"name\": \"abhaymtest1703162340\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703162340\"\r\n },\r\n \"etag\": \"W/\\\"636253046173461141\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"c1406cb6-e459-48e2-b485-f8bc45e92fd2\",\r\n \"clusterCodeVersion\": \"5.5.221.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703162340.westcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/c1406cb6-e459-48e2-b485-f8bc45e92fd2\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"4ir6ckcxu47ho2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://4ir6ckcxu47ho2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://4ir6ckcxu47ho2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://4ir6ckcxu47ho2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703170025/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703170025\",\r\n \"name\": \"abhaymtest1703170025\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703170025\"\r\n },\r\n \"etag\": \"W/\\\"636253072032261700\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"df7aa3e8-ebeb-43c6-8114-f0c7b9c91ff0\",\r\n \"clusterCodeVersion\": \"5.5.221.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703170025.westcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/df7aa3e8-ebeb-43c6-8114-f0c7b9c91ff0\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"innh4jgb7eu7a2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://innh4jgb7eu7a2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://innh4jgb7eu7a2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://innh4jgb7eu7a2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703170037/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703170037\",\r\n \"name\": \"abhaymtest1703170037\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703170037\"\r\n },\r\n \"etag\": \"W/\\\"636253079366086660\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"a6ef2e2a-c792-4dd2-8a5a-fcdcb6e7be9a\",\r\n \"clusterCodeVersion\": \"5.6.133.9494\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703170037.westcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/a6ef2e2a-c792-4dd2-8a5a-fcdcb6e7be9a\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"mazzsekewyiwc2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://mazzsekewyiwc2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://mazzsekewyiwc2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://mazzsekewyiwc2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703182049/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703182049\",\r\n \"name\": \"abhaymtest1703182049\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703182049\"\r\n },\r\n \"etag\": \"W/\\\"636254670316380586\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f3de6f6d-cf9e-4e97-8529-1c7f6649971d\",\r\n \"clusterCodeVersion\": \"5.6.134.9494\",\r\n \"clusterState\": \"Deploying\",\r\n \"managementEndpoint\": \"http://abhaymtest1703182049.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/f3de6f6d-cf9e-4e97-8529-1c7f6649971d\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"e2i5ab3jkypoe2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://e2i5ab3jkypoe2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://e2i5ab3jkypoe2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://e2i5ab3jkypoe2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703182157/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703182157\",\r\n \"name\": \"abhaymtest1703182157\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703182157\"\r\n },\r\n \"etag\": \"W/\\\"636254711071756618\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"03c5e366-3deb-4ade-b539-6357690341ec\",\r\n \"clusterCodeVersion\": \"5.6.134.9494\",\r\n \"clusterState\": \"Deploying\",\r\n \"managementEndpoint\": \"http://abhaymtest1703182157.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/03c5e366-3deb-4ade-b539-6357690341ec\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"5iaifyl4gk3u42\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://5iaifyl4gk3u42.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://5iaifyl4gk3u42.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://5iaifyl4gk3u42.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703182207/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703182207\",\r\n \"name\": \"abhaymtest1703182207\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703182207\"\r\n },\r\n \"etag\": \"W/\\\"636254717000562216\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"8c49af0a-7f51-4a13-b32c-61e511231330\",\r\n \"clusterCodeVersion\": \"5.6.134.9494\",\r\n \"clusterState\": \"Deploying\",\r\n \"managementEndpoint\": \"http://abhaymtest1703182207.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/8c49af0a-7f51-4a13-b32c-61e511231330\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"yg2mi2cg4n5c42\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://yg2mi2cg4n5c42.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://yg2mi2cg4n5c42.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://yg2mi2cg4n5c42.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703201843/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703201843\",\r\n \"name\": \"abhaymtest1703201843\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703201843\"\r\n },\r\n \"etag\": \"W/\\\"636256322519870931\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"4ef3183b-0fa8-4c4d-9ee5-9a34f80000eb\",\r\n \"clusterCodeVersion\": \"5.6.143.9494\",\r\n \"clusterState\": \"Deploying\",\r\n \"managementEndpoint\": \"http://abhaymtest1703201843.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/4ef3183b-0fa8-4c4d-9ee5-9a34f80000eb\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"tqfkeugsxpq5c2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://tqfkeugsxpq5c2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://tqfkeugsxpq5c2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://tqfkeugsxpq5c2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703201944/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703201944\",\r\n \"name\": \"abhaymtest1703201944\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703201944\"\r\n },\r\n \"etag\": \"W/\\\"636256359447254927\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"8180f474-9fad-4db4-b9c1-9b03a6eef427\",\r\n \"clusterCodeVersion\": \"5.6.142.9494\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaymtest1703201944.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/8180f474-9fad-4db4-b9c1-9b03a6eef427\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"62lr5rwrjypym2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://62lr5rwrjypym2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://62lr5rwrjypym2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://62lr5rwrjypym2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703202006/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703202006\",\r\n \"name\": \"abhaymtest1703202006\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703202006\"\r\n },\r\n \"etag\": \"W/\\\"636256372160219776\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"e619e5e4-a16d-4c62-a4d5-34ca4a5faf12\",\r\n \"clusterCodeVersion\": \"5.6.143.9494\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaymtest1703202006.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/e619e5e4-a16d-4c62-a4d5-34ca4a5faf12\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"edgr7mnf5dfmc2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://edgr7mnf5dfmc2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://edgr7mnf5dfmc2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://edgr7mnf5dfmc2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703210416/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703210416\",\r\n \"name\": \"abhaymtest1703210416\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703210416\"\r\n },\r\n \"etag\": \"W/\\\"636256666267146000\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"99bb7010-08b5-4b35-ad59-ad8c5d866eee\",\r\n \"clusterCodeVersion\": \"5.6.142.9494\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703210416.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/99bb7010-08b5-4b35-ad59-ad8c5d866eee\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"2ayg4z4veqsko2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://2ayg4z4veqsko2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://2ayg4z4veqsko2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://2ayg4z4veqsko2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703212351/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703212351\",\r\n \"name\": \"abhaymtest1703212351\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703212351\"\r\n },\r\n \"etag\": \"W/\\\"636257371413375804\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"clusterId\": \"d903d1f1-4d2b-4e3c-a24a-91050462db6d\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"https://abhaymtest1703212351.eastasia.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/d903d1f1-4d2b-4e3c-a24a-91050462db6d\",\r\n \"certificate\": {\r\n \"thumbprint\": \"A13273F20693D4F64DF0A95F3CC2601A0C84C29D\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"hqsthf4zpysdk2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://hqsthf4zpysdk2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://hqsthf4zpysdk2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://hqsthf4zpysdk2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703220723/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703220723\",\r\n \"name\": \"abhaymtest1703220723\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703220723\"\r\n },\r\n \"etag\": \"W/\\\"636257642836946793\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"50161db7-f841-4da4-957d-9f59a01a9f93\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"https://abhaymtest1703220723.eastasia.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/50161db7-f841-4da4-957d-9f59a01a9f93\",\r\n \"certificate\": {\r\n \"thumbprint\": \"A13273F20693D4F64DF0A95F3CC2601A0C84C29D\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"nhgf2s44nhoew2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://nhgf2s44nhoew2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://nhgf2s44nhoew2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://nhgf2s44nhoew2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703220724/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703220724\",\r\n \"name\": \"abhaymtest1703220724\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703220724\"\r\n },\r\n \"etag\": \"W/\\\"636257643365813449\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9470401e-4b1e-43fe-81d2-6d80e290f69d\",\r\n \"clusterCodeVersion\": \"5.6.142.9494\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703220724.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9470401e-4b1e-43fe-81d2-6d80e290f69d\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"m2g7atv2da7qm2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://m2g7atv2da7qm2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://m2g7atv2da7qm2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://m2g7atv2da7qm2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703230444/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703230444\",\r\n \"name\": \"abhaymtest1703230444\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703230444\"\r\n },\r\n \"etag\": \"W/\\\"636258411338377214\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"80cacce2-0b48-4419-9791-190c4a212633\",\r\n \"clusterCodeVersion\": \"5.6.142.9494\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaymtest1703230444.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/80cacce2-0b48-4419-9791-190c4a212633\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"dju4bjbw7xrvq2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://dju4bjbw7xrvq2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://dju4bjbw7xrvq2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://dju4bjbw7xrvq2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703230456/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703230456\",\r\n \"name\": \"abhaymtest1703230456\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703230456\"\r\n },\r\n \"etag\": \"W/\\\"636258418207176135\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f40bb2fc-7618-4a5a-b72c-11134b7b23b8\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"https://abhaymtest1703230456.eastasia.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/f40bb2fc-7618-4a5a-b72c-11134b7b23b8\",\r\n \"certificate\": {\r\n \"thumbprint\": \"A13273F20693D4F64DF0A95F3CC2601A0C84C29D\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"4oxwyjavui2sa2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://4oxwyjavui2sa2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://4oxwyjavui2sa2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://4oxwyjavui2sa2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703230505/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703230505\",\r\n \"name\": \"abhaymtest1703230505\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703230505\"\r\n },\r\n \"etag\": \"W/\\\"636258423533875493\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"141205fa-86b9-44f1-8d71-dff5a641eac0\",\r\n \"clusterCodeVersion\": \"5.6.143.9494\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaymtest1703230505.canadacentral.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/141205fa-86b9-44f1-8d71-dff5a641eac0\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"6ovvhzkxhdei62\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://6ovvhzkxhdei62.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://6ovvhzkxhdei62.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://6ovvhzkxhdei62.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703230549/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703230549\",\r\n \"name\": \"abhaymtest1703230549\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703230549\"\r\n },\r\n \"etag\": \"W/\\\"636258450450830685\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"06a5d762-802e-46cc-91a2-c35bc1113549\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"https://abhaymtest1703230549.eastasia.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/06a5d762-802e-46cc-91a2-c35bc1113549\",\r\n \"certificate\": {\r\n \"thumbprint\": \"A13273F20693D4F64DF0A95F3CC2601A0C84C29D\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"psumi2csefzei2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://psumi2csefzei2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://psumi2csefzei2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://psumi2csefzei2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 3,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703290021/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703290021\",\r\n \"name\": \"abhaymtest1703290021\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703290021\"\r\n },\r\n \"etag\": \"W/\\\"636263437539100159\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"e2cc2597-f4f7-432a-b682-ddb65e07f1f9\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://abhaymtest1703290021.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/e2cc2597-f4f7-432a-b682-ddb65e07f1f9\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"cqthjylk2vqrq2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://cqthjylk2vqrq2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://cqthjylk2vqrq2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://cqthjylk2vqrq2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n },\r\n {\r\n \"name\": \"nt2vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": false,\r\n \"vmInstanceCount\": 1,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaymtest1703291956/providers/Microsoft.ServiceFabric/clusters/abhaymtest1703291956\",\r\n \"name\": \"abhaymtest1703291956\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaymtest1703291956\"\r\n },\r\n \"etag\": \"W/\\\"636264142286359388\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"3ab812a4-a896-4e16-abb1-7bb4b8333d7c\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaymtest1703291956.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/3ab812a4-a896-4e16-abb1-7bb4b8333d7c\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"6iul7jvqaerqi2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://6iul7jvqaerqi2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://6iul7jvqaerqi2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://6iul7jvqaerqi2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n },\r\n {\r\n \"name\": \"nt2vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": false,\r\n \"vmInstanceCount\": 1,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/abhaytest06/providers/Microsoft.ServiceFabric/clusters/abhaytest06\",\r\n \"name\": \"abhaytest06\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"abhaytest06\"\r\n },\r\n \"etag\": \"W/\\\"636247797680333363\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"4f6e2c10-6dc5-492f-89d0-d860b40e2ced\",\r\n \"clusterCodeVersion\": \"5.5.219.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://abhaytest06.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/4f6e2c10-6dc5-492f-89d0-d860b40e2ced\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsabhaytest069203\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsabhaytest069203.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsabhaytest069203.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsabhaytest069203.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Manual\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/newrecordclusterrg1/providers/Microsoft.ServiceFabric/clusters/newrecordcluster2\",\r\n \"name\": \"newrecordcluster2\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"newrecordcluster2\"\r\n },\r\n \"etag\": \"W/\\\"636259670531083681\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"c098ef7e-b993-454d-8cc1-71115ce4d175\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"https://newrecordcluster2.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/c098ef7e-b993-454d-8cc1-71115ce4d175\",\r\n \"certificate\": {\r\n \"thumbprint\": \"8D777BF5A6C9E192688E8E1156E6C62E18C6AEC9\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"ux7ws4v7x3jso2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://ux7ws4v7x3jso2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://ux7ws4v7x3jso2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://ux7ws4v7x3jso2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/newsftestrg1/providers/Microsoft.ServiceFabric/clusters/testpowershellcluster1\",\r\n \"name\": \"testpowershellcluster1\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"testpowershellcluster1\"\r\n },\r\n \"etag\": \"W/\\\"636259309720451603\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"298d9d28-ede5-4ba8-80da-145ca8fdda91\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"https://testpowershellcluster1.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/298d9d28-ede5-4ba8-80da-145ca8fdda91\",\r\n \"certificate\": {\r\n \"thumbprint\": \"8D777BF5A6C9E192688E8E1156E6C62E18C6AEC9\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"aaujveyll53zy2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://aaujveyll53zy2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://aaujveyll53zy2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://aaujveyll53zy2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Silver\"\r\n },\r\n {\r\n \"name\": \"ntn3\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": false,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/newsftestrg3/providers/Microsoft.ServiceFabric/clusters/newrecordcluster1\",\r\n \"name\": \"newrecordcluster1\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"newrecordcluster1\"\r\n },\r\n \"etag\": \"W/\\\"636259637686378619\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"3fa4d0e0-9b84-4577-9200-8f7e16fc5ba4\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"https://newrecordcluster1.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/3fa4d0e0-9b84-4577-9200-8f7e16fc5ba4\",\r\n \"certificate\": {\r\n \"thumbprint\": \"8D777BF5A6C9E192688E8E1156E6C62E18C6AEC9\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"557jtwuooinek2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://557jtwuooinek2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://557jtwuooinek2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://557jtwuooinek2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/newtestresourcegroup1/providers/Microsoft.ServiceFabric/clusters/newrecordcluster2\",\r\n \"name\": \"newrecordcluster2\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"newrecordcluster2\"\r\n },\r\n \"etag\": \"W/\\\"636259643816156960\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"a07feb71-a75c-4777-89d3-15680fb1a345\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"BaselineUpgrade\",\r\n \"managementEndpoint\": \"https://newrecordcluster2.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/a07feb71-a75c-4777-89d3-15680fb1a345\",\r\n \"certificate\": {\r\n \"thumbprint\": \"8D777BF5A6C9E192688E8E1156E6C62E18C6AEC9\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"qlntlhz3veeyq2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://qlntlhz3veeyq2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://qlntlhz3veeyq2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://qlntlhz3veeyq2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/sdktestrg2/providers/Microsoft.ServiceFabric/clusters/sdktest\",\r\n \"name\": \"sdktest\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636244182147134148\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"8d566293-3508-4d62-ba7b-056fa710c3c9\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"UpgradeServiceUnreachable\",\r\n \"managementEndpoint\": \"http://sdktest.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/8d566293-3508-4d62-ba7b-056fa710c3c9\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogssdktest5486\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogssdktest5486.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogssdktest5486.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogssdktest5486.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"reverseProxyEndpointPort\": 9998,\r\n \"durabilityLevel\": \"Silver\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/testpowershellclusterrg1/providers/Microsoft.ServiceFabric/clusters/newrecordcluster2\",\r\n \"name\": \"newrecordcluster2\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"newrecordcluster2\"\r\n },\r\n \"etag\": \"W/\\\"636259659198426387\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"0d67939f-8a21-4a67-8fdc-e008a01542e9\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Deploying\",\r\n \"managementEndpoint\": \"https://newrecordcluster2.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/0d67939f-8a21-4a67-8fdc-e008a01542e9\",\r\n \"certificate\": {\r\n \"thumbprint\": \"8D777BF5A6C9E192688E8E1156E6C62E18C6AEC9\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"hp2bioq5yplhu2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://hp2bioq5yplhu2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://hp2bioq5yplhu2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://hp2bioq5yplhu2.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"South Central US\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/TestRG1/providers/Microsoft.ServiceFabric/clusters/testCreateCluster2\",\r\n \"name\": \"testCreateCluster2\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636258957273157045\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9525f566-2a5e-488f-8b69-4b41f6562c78\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"WaitingForNodes\",\r\n \"managementEndpoint\": \"http://testCluster.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9525f566-2a5e-488f-8b69-4b41f6562c78\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": false,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:05:00\",\r\n \"healthCheckStableDuration\": \"00:05:00\",\r\n \"healthCheckRetryTimeout\": \"00:45:00\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 1234,\r\n \"endPort\": 4321\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 3456,\r\n \"endPort\": 6543\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-original-request-ids": [ + "", + "", + "", + "", + "" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "f58a0446-fdbe-4dac-b5c7-04b67c7d6d96" + ], + "x-ms-correlation-request-id": [ + "f58a0446-fdbe-4dac-b5c7-04b67c7d6d96" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142213Z:f58a0446-fdbe-4dac-b5c7-04b67c7d6d96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b36cdf46-b75d-4dc2-9fe1-1296ee8c623d" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterResource/TestListByResourceGroup.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterResource/TestListByResourceGroup.json new file mode 100644 index 000000000000..0dc7d2bc22e8 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterResource/TestListByResourceGroup.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlZ3JvdXBzP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f7b004d4-4a7e-4ca0-8c05-3191284b324d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg\",\r\n \"name\": \"aaaaarg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaym-test-20170318-194608\",\r\n \"name\": \"abhaym-test-20170318-194608\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703142040\",\r\n \"name\": \"abhaymtest1703142040\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703152214\",\r\n \"name\": \"abhaymtest1703152214\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703160653\",\r\n \"name\": \"abhaymtest1703160653\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703162329\",\r\n \"name\": \"abhaymtest1703162329\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703162340\",\r\n \"name\": \"abhaymtest1703162340\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703170025\",\r\n \"name\": \"abhaymtest1703170025\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703170037\",\r\n \"name\": \"abhaymtest1703170037\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182049\",\r\n \"name\": \"abhaymtest1703182049\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182157\",\r\n \"name\": \"abhaymtest1703182157\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182207\",\r\n \"name\": \"abhaymtest1703182207\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703201843\",\r\n \"name\": \"abhaymtest1703201843\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703201944\",\r\n \"name\": \"abhaymtest1703201944\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703202006\",\r\n \"name\": \"abhaymtest1703202006\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703210414\",\r\n \"name\": \"abhaymtest1703210414\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703210416\",\r\n \"name\": \"abhaymtest1703210416\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703212351\",\r\n \"name\": \"abhaymtest1703212351\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703220723\",\r\n \"name\": \"abhaymtest1703220723\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703220724\",\r\n \"name\": \"abhaymtest1703220724\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230444\",\r\n \"name\": \"abhaymtest1703230444\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230456\",\r\n \"name\": \"abhaymtest1703230456\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230505\",\r\n \"name\": \"abhaymtest1703230505\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230549\",\r\n \"name\": \"abhaymtest1703230549\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290002\",\r\n \"name\": \"abhaymtest1703290002\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290020\",\r\n \"name\": \"abhaymtest1703290020\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290021\",\r\n \"name\": \"abhaymtest1703290021\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703291956\",\r\n \"name\": \"abhaymtest1703291956\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest06\",\r\n \"name\": \"abhaytest06\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest07\",\r\n \"name\": \"abhaytest07\",\r\n \"location\": \"brazilsouth\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest10\",\r\n \"name\": \"abhaytest10\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest11\",\r\n \"name\": \"abhaytest11\",\r\n \"location\": \"brazilsouth\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/Default-ServiceBus-9653\",\r\n \"name\": \"Default-ServiceBus-9653\",\r\n \"location\": \"australiaeast\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/deployertest\",\r\n \"name\": \"deployertest\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykeyvaultrg1\",\r\n \"name\": \"mykeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvrg1\",\r\n \"name\": \"mykvrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrg1\",\r\n \"name\": \"mykvvrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrg2\",\r\n \"name\": \"mykvvrg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrgg2\",\r\n \"name\": \"mykvvrgg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newkeyvaultrg1\",\r\n \"name\": \"newkeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newkeyvaultrg3\",\r\n \"name\": \"newkeyvaultrg3\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newrecordclusterrg1\",\r\n \"name\": \"newrecordclusterrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newsftestrg1\",\r\n \"name\": \"newsftestrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newsftestrg3\",\r\n \"name\": \"newsftestrg3\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newtestresourcegroup1\",\r\n \"name\": \"newtestresourcegroup1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same1rg\",\r\n \"name\": \"same1rg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same2rg\",\r\n \"name\": \"same2rg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same2rgg\",\r\n \"name\": \"same2rgg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdklinuxtest01\",\r\n \"name\": \"sdklinuxtest01\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdklusterrg\",\r\n \"name\": \"sdklusterrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdktestkeyvaultrg\",\r\n \"name\": \"sdktestkeyvaultrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdktestrg2\",\r\n \"name\": \"sdktestrg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/SecureBaseImage\",\r\n \"name\": \"SecureBaseImage\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sfrpkeyvaultrg1\",\r\n \"name\": \"sfrpkeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sftestkeyvaultrg\",\r\n \"name\": \"sftestkeyvaultrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sftestkkrg1\",\r\n \"name\": \"sftestkkrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testCreaterg1\",\r\n \"name\": \"testCreaterg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testDeleterg\",\r\n \"name\": \"testDeleterg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testpowershellclusterrg1\",\r\n \"name\": \"testpowershellclusterrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1\",\r\n \"name\": \"TestRG1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testrg111\",\r\n \"name\": \"testrg111\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testsdkdnetrestrg\",\r\n \"name\": \"testsdkdnetrestrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/VmExtnAppInsightTest\",\r\n \"name\": \"VmExtnAppInsightTest\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvc-mwh-20161203-012707281-v2\",\r\n \"name\": \"wftsvc-mwh-20161203-012707281-v2\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault1\",\r\n \"name\": \"wftsvcKeyVault1\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault2\",\r\n \"name\": \"wftsvcKeyVault2\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault3\",\r\n \"name\": \"wftsvcKeyVault3\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault4\",\r\n \"name\": \"wftsvcKeyVault4\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault5\",\r\n \"name\": \"wftsvcKeyVault5\",\r\n \"location\": \"southeastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault6\",\r\n \"name\": \"wftsvcKeyVault6\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVaultAM\",\r\n \"name\": \"wftsvcKeyVaultAM\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/xunlustore\",\r\n \"name\": \"xunlustore\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/zikaiwtest10122016snrg\",\r\n \"name\": \"zikaiwtest10122016snrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "f80a85f6-614b-48c7-a5aa-332b5c061a82" + ], + "x-ms-correlation-request-id": [ + "f80a85f6-614b-48c7-a5aa-332b5c061a82" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142207Z:f80a85f6-614b-48c7-a5aa-332b5c061a82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/resources?$filter=resourceType%20eq%20'Microsoft.ServiceFabric%2Fclusters'&api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcmVzb3VyY2VzPyRmaWx0ZXI9cmVzb3VyY2VUeXBlJTIwZXElMjAnTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMlMkZjbHVzdGVycycmYXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2811b677-6489-4664-aa03-bc7d2c5066fd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-request-id": [ + "256abb22-40f6-47de-9764-893f886022eb" + ], + "x-ms-correlation-request-id": [ + "256abb22-40f6-47de-9764-893f886022eb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142209Z:256abb22-40f6-47de-9764-893f886022eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlZ3JvdXBzL2FhYWFhcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "41324347-0f3f-4ab5-b9fd-61d9a3b3abc0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n },\r\n \"etag\": \"W/\\\"636256214302176421\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://aaaaa.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxOperationTimeout\",\r\n \"value\": \"1000\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsaaaaa6039\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsaaaaa6039.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsaaaaa6039.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsaaaaa6039.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:22:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "2728800d-d1cc-40af-bff8-e0af681dcd63" + ], + "x-ms-correlation-request-id": [ + "2728800d-d1cc-40af-bff8-e0af681dcd63" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142210Z:2728800d-d1cc-40af-bff8-e0af681dcd63" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b36cdf46-b75d-4dc2-9fe1-1296ee8c623d" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterVersions/TestList.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterVersions/TestList.json new file mode 100644 index 000000000000..efb193a9b182 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestListClusterVersions/TestList.json @@ -0,0 +1,138 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/locations/southcentralus/environments/Windows/clusterVersions?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VydmljZUZhYnJpYy9sb2NhdGlvbnMvc291dGhjZW50cmFsdXMvZW52aXJvbm1lbnRzL1dpbmRvd3MvY2x1c3RlclZlcnNpb25zP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "abe48efb-69bf-4415-b1b5-57aa5d2203b6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.4.145.9494\",\r\n \"name\": \"5.4.145.9494\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.4.164.9494\",\r\n \"name\": \"5.4.164.9494\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.5.216.0\",\r\n \"name\": \"5.5.216.0\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.5.219.0\",\r\n \"name\": \"5.5.219.0\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:28:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "0f51eac4-6049-48b2-8510-cf3a85474bac" + ], + "x-ms-correlation-request-id": [ + "0f51eac4-6049-48b2-8510-cf3a85474bac" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142808Z:0f51eac4-6049-48b2-8510-cf3a85474bac" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/locations/southcentralus/environments/default/clusterVersions?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VydmljZUZhYnJpYy9sb2NhdGlvbnMvc291dGhjZW50cmFsdXMvZW52aXJvbm1lbnRzL2RlZmF1bHQvY2x1c3RlclZlcnNpb25zP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "38feb45f-0713-4787-aa70-1841da6bbbe3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.4.145.9494\",\r\n \"name\": \"5.4.145.9494\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.4.164.9494\",\r\n \"name\": \"5.4.164.9494\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.5.216.0\",\r\n \"name\": \"5.5.216.0\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.5.219.0\",\r\n \"name\": \"5.5.219.0\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.3.0.0\",\r\n \"name\": \"5.3.0.0\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.3.0.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Linux\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.3.0.3\",\r\n \"name\": \"5.3.0.3\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.3.0.3\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Linux\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.4.0.0\",\r\n \"name\": \"5.4.0.0\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.4.0.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Linux\"\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/providers/Microsoft.ServiceFabric/environments/Windows/clusterVersions/5.5.0.2\",\r\n \"name\": \"5.5.0.2\",\r\n \"type\": \"Microsoft.ServiceFabric/environments/clusterVersions\",\r\n \"properties\": {\r\n \"codeVersion\": \"5.5.0.2\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Linux\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:28:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "81aae445-3fc9-405b-beaf-029d46fd49b7" + ], + "x-ms-correlation-request-id": [ + "81aae445-3fc9-405b-beaf-029d46fd49b7" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170401T142809Z:81aae445-3fc9-405b-beaf-029d46fd49b7" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b36cdf46-b75d-4dc2-9fe1-1296ee8c623d" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestUpdateClusterResource/TestUpdate.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestUpdateClusterResource/TestUpdate.json new file mode 100644 index 000000000000..60e58e844213 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/SessionRecords/ServiceFabric.Tests.Tests.TestUpdateClusterResource/TestUpdate.json @@ -0,0 +1,318 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlZ3JvdXBzP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ca496866-fa00-430c-ae89-a2456fcd876c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg\",\r\n \"name\": \"aaaaarg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaym-test-20170318-194608\",\r\n \"name\": \"abhaym-test-20170318-194608\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703142040\",\r\n \"name\": \"abhaymtest1703142040\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703152214\",\r\n \"name\": \"abhaymtest1703152214\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703160653\",\r\n \"name\": \"abhaymtest1703160653\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703162329\",\r\n \"name\": \"abhaymtest1703162329\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703162340\",\r\n \"name\": \"abhaymtest1703162340\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703170025\",\r\n \"name\": \"abhaymtest1703170025\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703170037\",\r\n \"name\": \"abhaymtest1703170037\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182049\",\r\n \"name\": \"abhaymtest1703182049\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182157\",\r\n \"name\": \"abhaymtest1703182157\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703182207\",\r\n \"name\": \"abhaymtest1703182207\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703201843\",\r\n \"name\": \"abhaymtest1703201843\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703201944\",\r\n \"name\": \"abhaymtest1703201944\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703202006\",\r\n \"name\": \"abhaymtest1703202006\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703210414\",\r\n \"name\": \"abhaymtest1703210414\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703210416\",\r\n \"name\": \"abhaymtest1703210416\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703212351\",\r\n \"name\": \"abhaymtest1703212351\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703220723\",\r\n \"name\": \"abhaymtest1703220723\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703220724\",\r\n \"name\": \"abhaymtest1703220724\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230444\",\r\n \"name\": \"abhaymtest1703230444\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230456\",\r\n \"name\": \"abhaymtest1703230456\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230505\",\r\n \"name\": \"abhaymtest1703230505\",\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703230549\",\r\n \"name\": \"abhaymtest1703230549\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290002\",\r\n \"name\": \"abhaymtest1703290002\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290020\",\r\n \"name\": \"abhaymtest1703290020\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703290021\",\r\n \"name\": \"abhaymtest1703290021\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaymtest1703291956\",\r\n \"name\": \"abhaymtest1703291956\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest06\",\r\n \"name\": \"abhaytest06\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest07\",\r\n \"name\": \"abhaytest07\",\r\n \"location\": \"brazilsouth\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest10\",\r\n \"name\": \"abhaytest10\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/abhaytest11\",\r\n \"name\": \"abhaytest11\",\r\n \"location\": \"brazilsouth\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/Default-ServiceBus-9653\",\r\n \"name\": \"Default-ServiceBus-9653\",\r\n \"location\": \"australiaeast\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/deployertest\",\r\n \"name\": \"deployertest\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykeyvaultrg1\",\r\n \"name\": \"mykeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvrg1\",\r\n \"name\": \"mykvrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrg1\",\r\n \"name\": \"mykvvrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrg2\",\r\n \"name\": \"mykvvrg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/mykvvrgg2\",\r\n \"name\": \"mykvvrgg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newkeyvaultrg1\",\r\n \"name\": \"newkeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newkeyvaultrg3\",\r\n \"name\": \"newkeyvaultrg3\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newrecordclusterrg1\",\r\n \"name\": \"newrecordclusterrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newsftestrg1\",\r\n \"name\": \"newsftestrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newsftestrg3\",\r\n \"name\": \"newsftestrg3\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/newtestresourcegroup1\",\r\n \"name\": \"newtestresourcegroup1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same1rg\",\r\n \"name\": \"same1rg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same2rg\",\r\n \"name\": \"same2rg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/same2rgg\",\r\n \"name\": \"same2rgg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdklinuxtest01\",\r\n \"name\": \"sdklinuxtest01\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdklusterrg\",\r\n \"name\": \"sdklusterrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdktestkeyvaultrg\",\r\n \"name\": \"sdktestkeyvaultrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sdktestrg2\",\r\n \"name\": \"sdktestrg2\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/SecureBaseImage\",\r\n \"name\": \"SecureBaseImage\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sfrpkeyvaultrg1\",\r\n \"name\": \"sfrpkeyvaultrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sftestkeyvaultrg\",\r\n \"name\": \"sftestkeyvaultrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/sftestkkrg1\",\r\n \"name\": \"sftestkkrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testCreaterg1\",\r\n \"name\": \"testCreaterg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testpowershellclusterrg1\",\r\n \"name\": \"testpowershellclusterrg1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/TestRG1\",\r\n \"name\": \"TestRG1\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testrg111\",\r\n \"name\": \"testrg111\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/testsdkdnetrestrg\",\r\n \"name\": \"testsdkdnetrestrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/VmExtnAppInsightTest\",\r\n \"name\": \"VmExtnAppInsightTest\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvc-mwh-20161203-012707281-v2\",\r\n \"name\": \"wftsvc-mwh-20161203-012707281-v2\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault1\",\r\n \"name\": \"wftsvcKeyVault1\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault2\",\r\n \"name\": \"wftsvcKeyVault2\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault3\",\r\n \"name\": \"wftsvcKeyVault3\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault4\",\r\n \"name\": \"wftsvcKeyVault4\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault5\",\r\n \"name\": \"wftsvcKeyVault5\",\r\n \"location\": \"southeastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVault6\",\r\n \"name\": \"wftsvcKeyVault6\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/wftsvcKeyVaultAM\",\r\n \"name\": \"wftsvcKeyVaultAM\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/xunlustore\",\r\n \"name\": \"xunlustore\",\r\n \"location\": \"eastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/zikaiwtest10122016snrg\",\r\n \"name\": \"zikaiwtest10122016snrg\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:23:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "15c7563d-98cf-4e0e-93c4-a4e655f7a51e" + ], + "x-ms-correlation-request-id": [ + "15c7563d-98cf-4e0e-93c4-a4e655f7a51e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142319Z:15c7563d-98cf-4e0e-93c4-a4e655f7a51e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/resources?$filter=resourceType%20eq%20'Microsoft.ServiceFabric%2Fclusters'&api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcmVzb3VyY2VzPyRmaWx0ZXI9cmVzb3VyY2VUeXBlJTIwZXElMjAnTWljcm9zb2Z0LlNlcnZpY2VGYWJyaWMlMkZjbHVzdGVycycmYXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "177d3bd7-1053-4c6f-bf8b-68516d963799" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:23:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "575e244d-a161-4d0a-a8f9-897e70e8d51f" + ], + "x-ms-correlation-request-id": [ + "575e244d-a161-4d0a-a8f9-897e70e8d51f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142320Z:575e244d-a161-4d0a-a8f9-897e70e8d51f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL2FhYWFhP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1a353450-ddfe-4cab-82c9-1197e82ee1e9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n },\r\n \"etag\": \"W/\\\"636256214302176421\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://aaaaa.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxOperationTimeout\",\r\n \"value\": \"1000\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsaaaaa6039\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsaaaaa6039.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsaaaaa6039.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsaaaaa6039.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:23:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-request-id": [ + "7b90cf8f-5b1d-4e50-8bc6-d94036f2ae70" + ], + "x-ms-correlation-request-id": [ + "7b90cf8f-5b1d-4e50-8bc6-d94036f2ae70" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142321Z:7b90cf8f-5b1d-4e50-8bc6-d94036f2ae70" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL2FhYWFhP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4448a61e-4fa9-4dc5-bad7-eae8d9e69bad" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n },\r\n \"etag\": \"W/\\\"636256214302176422\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://aaaaa.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxOperationTimeout\",\r\n \"value\": \"1000\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsaaaaa6039\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsaaaaa6039.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsaaaaa6039.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsaaaaa6039.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:23:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-request-id": [ + "9f569d9e-59d1-4ec1-9702-52c24d6baa43" + ], + "x-ms-correlation-request-id": [ + "9f569d9e-59d1-4ec1-9702-52c24d6baa43" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142321Z:9f569d9e-59d1-4ec1-9702-52c24d6baa43" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourceGroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjM2Y2RmNDYtYjc1ZC00ZGMyLTlmZTEtMTI5NmVlOGM2MjNkL3Jlc291cmNlR3JvdXBzL2FhYWFhcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5TZXJ2aWNlRmFicmljL2NsdXN0ZXJzL2FhYWFhP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxOperationTimeout\",\r\n \"value\": \"1000\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "247" + ], + "x-ms-client-request-id": [ + "d49e9e12-0473-4947-9e80-9aaeac900d11" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/aaaaarg/providers/Microsoft.ServiceFabric/clusters/aaaaa\",\r\n \"name\": \"aaaaa\",\r\n \"tags\": {\r\n \"resourceType\": \"Service Fabric\",\r\n \"clusterName\": \"aaaaa\"\r\n },\r\n \"etag\": \"W/\\\"636256214302176422\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clusterCodeVersion\": \"5.5.216.0\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"http://aaaaa.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/9a68d9c5-ddb7-4439-b657-03540135ff20\",\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxOperationTimeout\",\r\n \"value\": \"1000\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"upgradeDescription\": {\r\n \"overrideUserUpgradePolicy\": false,\r\n \"forceRestart\": true,\r\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\r\n \"healthCheckWaitDuration\": \"00:00:01\",\r\n \"healthCheckStableDuration\": \"00:00:01\",\r\n \"healthCheckRetryTimeout\": \"00:00:01\",\r\n \"upgradeTimeout\": \"12:00:00\",\r\n \"upgradeDomainTimeout\": \"02:00:00\",\r\n \"healthPolicy\": {\r\n \"maxPercentUnhealthyNodes\": 100,\r\n \"maxPercentUnhealthyApplications\": 100\r\n },\r\n \"deltaHealthPolicy\": {\r\n \"maxPercentDeltaUnhealthyNodes\": 0,\r\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\r\n \"maxPercentDeltaUnhealthyApplications\": 0\r\n }\r\n },\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"sflogsaaaaa6039\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://sflogsaaaaa6039.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://sflogsaaaaa6039.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://sflogsaaaaa6039.table.core.windows.net/\"\r\n },\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"n1\",\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"vmInstanceCount\": 5,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"upgradeMode\": \"Automatic\",\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"5.4.145.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.4.164.9494\",\r\n \"supportExpiryUtc\": \"2017-05-10T00:00:00\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.216.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n },\r\n {\r\n \"codeVersion\": \"5.5.219.0\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 01 Apr 2017 14:23:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "921764f5-534e-496b-9546-e90711053f81" + ], + "x-ms-correlation-request-id": [ + "921764f5-534e-496b-9546-e90711053f81" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170401T142321Z:921764f5-534e-496b-9546-e90711053f81" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b36cdf46-b75d-4dc2-9fe1-1296ee8c623d" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/TestHelper/RecordedDelegatingHandler.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/TestHelper/RecordedDelegatingHandler.cs new file mode 100644 index 000000000000..b80dab0d7089 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/TestHelper/RecordedDelegatingHandler.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace ServiceFabric.Tests.TestHelper +{ + + using System; + using System.Net; + using System.Net.Http; + using System.Net.Http.Headers; + using System.Threading.Tasks; + + public class RecordedDelegatingHandler : DelegatingHandler + { + private HttpResponseMessage _response; + + public RecordedDelegatingHandler() + { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + } + + public RecordedDelegatingHandler(HttpResponseMessage response) + { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + _response = response; + } + + public HttpStatusCode StatusCodeToReturn { get; set; } + + public HttpStatusCode SubsequentStatusCodeToReturn { get; set; } + + public string Request { get; private set; } + + public HttpRequestHeaders RequestHeaders { get; private set; } + + public HttpContentHeaders ContentHeaders { get; private set; } + + public HttpMethod Method { get; private set; } + + public Uri Uri { get; private set; } + + public bool IsPassThrough { get; set; } + + private int counter; + + protected override async Task SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) + { + counter++; + // Save request + if (request.Content == null) + { + Request = string.Empty; + } + else + { + Request = await request.Content.ReadAsStringAsync(); + } + RequestHeaders = request.Headers; + if (request.Content != null) + { + ContentHeaders = request.Content.Headers; + } + Method = request.Method; + Uri = request.RequestUri; + + // Prepare response + if (IsPassThrough) + { + return await base.SendAsync(request, cancellationToken); + } + else + { + if (_response != null && counter == 1) + { + return _response; + } + else + { + var statusCode = StatusCodeToReturn; + if (counter > 1) + statusCode = SubsequentStatusCodeToReturn; + HttpResponseMessage response = new HttpResponseMessage(statusCode); + response.Content = new StringContent(""); + return response; + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/ServiceFabricTestBase.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/ServiceFabricTestBase.cs new file mode 100644 index 000000000000..180b9e75f22f --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/ServiceFabricTestBase.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace ServiceFabric.Tests.Tests +{ + using Microsoft.Azure.Management.Resources; + using Microsoft.Azure.Management.Resources.Models; + using Microsoft.Azure.Management.ServiceFabric; + using Microsoft.Rest.Azure; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using TestHelper; + using System.Net; + using Microsoft.Azure.Management.ServiceFabric.Models; + using System; + using System.Collections.Generic; + using Xunit; + + public class ServiceFabricTestBase + { + protected string clusterIdFormat = "/subscriptions/{0}/resourcegroups/{1}/providers/Microsoft.ServiceFabric/clusters/{2}"; + + protected ResourceManagementClient GetResourceManagementClient(MockContext context) + { + return context.GetServiceClient( + handlers: new RecordedDelegatingHandler() + { + StatusCodeToReturn = HttpStatusCode.OK, + IsPassThrough = true + }); + } + + protected ServiceFabricManagementClient GetServiceFabricClient(MockContext context) + { + return context.GetServiceClient( + handlers: new RecordedDelegatingHandler() + { + StatusCodeToReturn = HttpStatusCode.OK, + IsPassThrough = true + }); + } + + protected IPage GetAllServiceFabricClusterResources( + MockContext context, + ResourceGroup rg) + { + var resouceClient = GetResourceManagementClient(context); + + var query = new Microsoft.Rest.Azure.OData.ODataQuery< + GenericResourceFilter>(); + query.SetFilter( + f => f.ResourceType == "Microsoft.ServiceFabric/clusters"); + + return resouceClient.ResourceGroups.ListResources(rg.Name, query); + } + + protected Cluster CreateCluster( + ResourceManagementClient resouceClient, + ServiceFabricManagementClient serviceFabricClient, + string rg, + string rgLocation, + string clusterName) + { + var clusterId = string.Format( + clusterIdFormat, + resouceClient.SubscriptionId, + rg, + clusterName); + + var newCluster = new Cluster( + location: rgLocation, + reliabilityLevel: "Silver", + managementEndpoint: "http://testCluster.southcentralus.cloudapp.azure.com:19080", + nodeTypes: new List() + { + new NodeTypeDescription() + { + ApplicationPorts = new EndpointRangeDescription() + { + StartPort = 1234, + EndPort = 4321 + }, + DurabilityLevel = "Bronze", + EphemeralPorts = new EndpointRangeDescription() + { + StartPort = 3456, + EndPort = 6543 + }, + IsPrimary = true, + Name = "n1", + ClientConnectionEndpointPort = 19000, + Capacities =null, + HttpGatewayEndpointPort = 19080, + PlacementProperties = null, + VmInstanceCount = 5, + ReverseProxyEndpointPort = null + } + }, + clusterId: clusterId, + name: "testCluster2", + type: "Microsoft.ServiceFabric/clusters", + vmImage: "Windows" + ) + { + }; + + resouceClient.ResourceGroups.CreateOrUpdate( + rg, + new ResourceGroup(rgLocation)); + + var cluster = serviceFabricClient.Clusters.Create(rg, clusterName, newCluster); + Assert.NotNull(cluster); + + cluster = serviceFabricClient.Clusters.Get(rg, clusterName); + Assert.NotNull(cluster); + return cluster; + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestCreateClusterResource.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestCreateClusterResource.cs new file mode 100644 index 000000000000..3ad8d74165c6 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestCreateClusterResource.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace ServiceFabric.Tests.Tests +{ + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using Xunit; + using Microsoft.Azure.Management.ServiceFabric; + using System.Linq; + using Microsoft.Azure.Management.Resources; + using Microsoft.Azure.Management.Resources.Models; + using System.IO; + using Microsoft.Azure.Management.ServiceFabric.Models; + using System; + using System.Collections.Generic; + + public class TestCreateClusterResource : ServiceFabricTestBase + { + [Fact] + public void TestCreate() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var serviceFabricClient = GetServiceFabricClient(context); + var resouceClient = GetResourceManagementClient(context); + var resouceGroupName = "TestRG1"; + var location = "South Central US"; + var clusterName = "testCreateCluster2"; + + try + { + serviceFabricClient.Clusters.Get(resouceGroupName, clusterName); + serviceFabricClient.Clusters.Delete(resouceGroupName, clusterName); + } + catch (ErrorModelException e) + { + Assert.True(e.Response.StatusCode == System.Net.HttpStatusCode.NotFound); + } + + TestUtilities.Wait(TimeSpan.FromSeconds(10)); + + var cluster = CreateCluster(resouceClient, serviceFabricClient, resouceGroupName, location, clusterName); + cluster = serviceFabricClient.Clusters.Get(resouceGroupName, clusterName); + Assert.NotNull(cluster); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestDeleteClusterResource.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestDeleteClusterResource.cs new file mode 100644 index 000000000000..8d5c79e6a256 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestDeleteClusterResource.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace ServiceFabric.Tests.Tests +{ + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using Xunit; + using Microsoft.Azure.Management.ServiceFabric; + using System.Linq; + using Microsoft.Azure.Management.Resources; + using Microsoft.Azure.Management.Resources.Models; + using System.IO; + using Microsoft.Azure.Management.ServiceFabric.Models; + using System; + using System.Collections.Generic; + + public class TestDeleteClusterResource : ServiceFabricTestBase + { + [Fact] + public void TestDelete() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var serviceFabricClient = GetServiceFabricClient(context); + var resouceClient = GetResourceManagementClient(context); + var resouceGroupName = "testDeleterg"; + var location = "South Central US"; + var clusterName = "testDeleteCluster"; + + var cluster = CreateCluster(resouceClient, serviceFabricClient, resouceGroupName, location, clusterName); + + cluster = serviceFabricClient.Clusters.Get(resouceGroupName, clusterName); + Assert.NotNull(cluster); + + serviceFabricClient.Clusters.Delete(resouceGroupName, clusterName); + + var exception = Assert.Throws(() => + { + cluster = serviceFabricClient.Clusters.Get(resouceGroupName, clusterName); + }); + + Assert.True(exception.Response.StatusCode == System.Net.HttpStatusCode.NotFound); + + serviceFabricClient.Clusters.Delete(resouceGroupName, "donotexistcluster"); + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestGetClusterResource.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestGetClusterResource.cs new file mode 100644 index 000000000000..a6c6f4e05cad --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestGetClusterResource.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace ServiceFabric.Tests.Tests +{ + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using Xunit; + using Microsoft.Azure.Management.ServiceFabric; + using System.Linq; + using Microsoft.Azure.Management.Resources; + using Microsoft.Azure.Management.Resources.Models; + using System.IO; + using Microsoft.Azure.Management.ServiceFabric.Models; + + public class TestGetClusterResource : ServiceFabricTestBase + { + [Fact] + public void TestGet() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var serviceFabricClient = GetServiceFabricClient(context); + var resouceClient = GetResourceManagementClient(context); + var resourceGroups = resouceClient.ResourceGroups.List(); + foreach (var rg in resourceGroups) + { + var resources = GetAllServiceFabricClusterResources(context, rg); + if (resources.Any()) + { + var res = resources.First(); + var cluster = serviceFabricClient.Clusters.Get(rg.Name, res.Name); + Assert.NotNull(cluster); + } + + var randomResName = "donotexisting"; + if (resources.Where(r => r.Name == randomResName).Count() == 0) + { + try + { + serviceFabricClient.Clusters.Get(rg.Name, randomResName); + } + catch (ErrorModelException exception) + { + Assert.True(exception.Response.StatusCode == System.Net.HttpStatusCode.NotFound); + } + } + + break; + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestListClusterResource.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestListClusterResource.cs new file mode 100644 index 000000000000..d535bfdce921 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestListClusterResource.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace ServiceFabric.Tests.Tests +{ + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using Xunit; + using Microsoft.Azure.Management.ServiceFabric; + using System.Linq; + using Microsoft.Azure.Management.Resources; + + public class TestListClusterResource : ServiceFabricTestBase + { + [Fact] + public void TestList() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var serviceFabricClient = GetServiceFabricClient(context); + var clusters = serviceFabricClient.Clusters.List(); + + Assert.NotNull(clusters); + Assert.NotNull(clusters); + var subscriptions = clusters.GroupBy(c => c.Id).Select(r => r.Key.Split('/')[2]).Distinct(); + Assert.Equal(subscriptions.Count(), 1); + } + } + + [Fact] + public void TestListByResourceGroup() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var serviceFabricClient = GetServiceFabricClient(context); + var resouceClient = GetResourceManagementClient(context); + var resourceGroups = resouceClient.ResourceGroups.List(); + foreach (var rg in resourceGroups) + { + var resources = GetAllServiceFabricClusterResources(context, rg); + if (resources.Any()) + { + var clusters = serviceFabricClient.Clusters.ListByResourceGroup(rg.Name); + Assert.NotNull(clusters); + + var res1 = resources.Select(r => r.Name).OrderBy(r => r).ToList(); + var res2 = clusters.Select( + c => c.Name).OrderBy(r => r).ToList(); + + Assert.True(res1.Count == res2.Count); + + for (int i = 0; i < res1.Count; i++) + { + Assert.True(res1[i] == res2[i]); + } + + break; + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestListClusterVersions.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestListClusterVersions.cs new file mode 100644 index 000000000000..43c5252d6c82 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestListClusterVersions.cs @@ -0,0 +1,36 @@ +using Microsoft.Azure.Management.ServiceFabric; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Xunit; + +namespace ServiceFabric.Tests.Tests +{ + public class TestListClusterVersions : ServiceFabricTestBase + { + [Fact] + public void TestList() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var serviceFabricClient = GetServiceFabricClient(context); + var clusterVersions = serviceFabricClient.ClusterVersions.List("southcentralus","Windows"); + + Assert.NotNull(clusterVersions); + Assert.NotNull(clusterVersions); + var versions = clusterVersions.GroupBy(c => c.Id).Select(r => r.Key.Split('/')[2]).Distinct(); + Assert.Equal(versions.Count(), 1); + + clusterVersions = serviceFabricClient.ClusterVersions.List("southcentralus", "default"); + + Assert.NotNull(clusterVersions); + Assert.NotNull(clusterVersions); + versions = clusterVersions.GroupBy(c => c.Id).Select(r => r.Key.Split('/')[2]).Distinct(); + Assert.Equal(versions.Count(), 1); + } + } + + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestUpdateClusterResource.cs b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestUpdateClusterResource.cs new file mode 100644 index 000000000000..a5c1cab12c51 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/Tests/TestUpdateClusterResource.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace ServiceFabric.Tests.Tests +{ + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using Xunit; + using Microsoft.Azure.Management.ServiceFabric; + using System.Linq; + using Microsoft.Azure.Management.Resources; + using System.Collections.Generic; + using Microsoft.Azure.Management.ServiceFabric.Models; + using System; + + public class TestUpdateClusterResource : ServiceFabricTestBase + { + [Fact] + public void TestUpdate() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var serviceFabricClient = GetServiceFabricClient(context); + var resouceClient = GetResourceManagementClient(context); + + var resourceGroups = resouceClient.ResourceGroups.List(); + foreach (var rg in resourceGroups) + { + var resources = GetAllServiceFabricClusterResources(context, rg); + if (resources.Any()) + { + var res = resources.First(); + var cluster = serviceFabricClient.Clusters.Get(rg.Name, res.Name); + + serviceFabricClient.Clusters.Update(rg.Name, res.Name, + new ClusterUpdateParameters() + { + FabricSettings = new List() + { + new SettingsSectionDescription() + { + Name = "NamingService", + Parameters = new List() + { + new SettingsParameterDescription() + { + Name = "MaxOperationTimeout", + Value = "1000" + } + } + } + } + }); + + cluster = serviceFabricClient.Clusters.Get(rg.Name, res.Name); + while (string.Compare(cluster.ClusterState, "ready",true) != 0) + { + cluster = serviceFabricClient.Clusters.Get(rg.Name, res.Name); + TestUtilities.Wait(TimeSpan.FromMinutes(1)); + } + + var ns = cluster.FabricSettings.Where(s => s.Name == "NamingService").First(); + var p = ns.Parameters.Where( + parameter => + parameter.Name == "MaxOperationTimeout").First(); + + Assert.True(p.Value == "1000"); + + break; + } + } + } + } + } +} diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/project.json b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/project.json new file mode 100644 index 000000000000..e09c77149b48 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.Test/project.json @@ -0,0 +1,41 @@ +{ + "version": "1.0.0-*", + "description": "ServiceFabric Tests Class Library", + "authors": [ "Microsoft Corporation" ], + + "packOptions": { + "summary": "ServiceFabric.Tests", + "tags": [ "" ], + "projectUrl": "https://github.com/Azure/azure-sdk-for-net", + "licenseUrl": "https://raw.githubusercontent.com/Microsoft/dotnet/master/LICENSE" + }, + "buildOptions": { + "delaySign": true, + "publicSign": false, + "keyFile": "../../../../tools/MSSharedLibKey.snk", + "compile": "../../../../tools/DisableTestRunParallel.cs" + }, + + "testRunner": "xunit", + "frameworks": { + "netcoreapp1.0": { + "imports": [ "dnxcore50", "portable-net45+win8" ], + "dependencies": { + } + } + }, + "dependencies": { + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.0.0" + }, + "Microsoft.Azure.Test.HttpRecorder": "[1.6.7-preview,2.0.0)", + "Microsoft.Rest.ClientRuntime.Azure.TestFramework": "[1.5.0-preview,2.0.0)", + "Microsoft.Rest.ClientRuntime.Azure": "[3.3.5,4.0.0)", + "Microsoft.Azure.ResourceManager": "1.0.0-preview", + "xunit": "2.2.0-beta2-build3300", + "dotnet-test-xunit": "2.2.0-preview2-build1029", + "Microsoft.Azure.Management.ServiceFabric": "1.0.0-preview", + "System.Linq": "4.3.0" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ServiceFabric/ServiceFabric.sln b/src/ResourceManagement/ServiceFabric/ServiceFabric.sln new file mode 100644 index 000000000000..40e65fe31085 --- /dev/null +++ b/src/ResourceManagement/ServiceFabric/ServiceFabric.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceFabric.Tests", "ServiceFabric.Test\ServiceFabric.Tests.xproj", "{F857A01A-2955-4FC9-836B-FE7FD80C6CC2}" +EndProject +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Azure.Management.ServiceFabric", "Microsoft.Azure.Management.ServiceFabric\Microsoft.Azure.Management.ServiceFabric.xproj", "{624659FE-FE8F-41D2-99AB-0BA92DE15A65}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F857A01A-2955-4FC9-836B-FE7FD80C6CC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F857A01A-2955-4FC9-836B-FE7FD80C6CC2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F857A01A-2955-4FC9-836B-FE7FD80C6CC2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F857A01A-2955-4FC9-836B-FE7FD80C6CC2}.Release|Any CPU.Build.0 = Release|Any CPU + {624659FE-FE8F-41D2-99AB-0BA92DE15A65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {624659FE-FE8F-41D2-99AB-0BA92DE15A65}.Debug|Any CPU.Build.0 = Debug|Any CPU + {624659FE-FE8F-41D2-99AB-0BA92DE15A65}.Release|Any CPU.ActiveCfg = Release|Any CPU + {624659FE-FE8F-41D2-99AB-0BA92DE15A65}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal