From 5f063ad022b7b16665b4ccea02bbc5697c549aac Mon Sep 17 00:00:00 2001 From: Phoenix He Date: Wed, 14 Aug 2019 11:18:31 +0800 Subject: [PATCH 01/24] add pull config --- .github/pull.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/pull.yml diff --git a/.github/pull.yml b/.github/pull.yml new file mode 100644 index 000000000000..e053ddf153e0 --- /dev/null +++ b/.github/pull.yml @@ -0,0 +1,7 @@ +# https://github.com/wei/pull#advanced-setup-with-config +version: "1" +rules: + - base: master + upstream: Azure:master + mergeMethod: rebase +label: "AutoPull" \ No newline at end of file From b9cc82d15480a5e8b253e1a6bd815b20c48e9e2d Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Tue, 13 Aug 2019 15:17:49 -0400 Subject: [PATCH 02/24] [Event Hubs Client] Track Two: Third Preview (Minor Test Tweaks) - Modified the naming for the ephemeral Event Hubs namespace to better align with requests by the Engineering team. - Added a set of tags to the namespace the help identify what test run was responsible for its creation and when it is safe to remove it, should there be a problem with natural teardown after the run. - Tune retry configuration to account for additional contention on Azure resources due to parallelization. --- .../tests/Infrastructure/EventHubScope.cs | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/tests/Infrastructure/EventHubScope.cs b/sdk/eventhub/Azure.Messaging.EventHubs/tests/Infrastructure/EventHubScope.cs index 25631802d418..4289a9e64ea4 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/tests/Infrastructure/EventHubScope.cs +++ b/sdk/eventhub/Azure.Messaging.EventHubs/tests/Infrastructure/EventHubScope.cs @@ -28,13 +28,13 @@ namespace Azure.Messaging.EventHubs.Tests.Infrastructure public sealed class EventHubScope : IAsyncDisposable { /// The maximum number of attempts to retry a management operation. - private const int RetryMaximumAttemps = 8; + private const int RetryMaximumAttemps = 12; /// The number of seconds to use as the basis for backing off on retry attempts. - private const double RetryExponentialBackoffSeconds = 0.5; + private const double RetryExponentialBackoffSeconds = 1.0; /// The number of seconds to use as the basis for applying jitter to retry back-off calculations. - private const double RetryBaseJitterSeconds = 3.0; + private const double RetryBaseJitterSeconds = 7.0; /// The buffer to apply when considering refreshing; credentials that expire less than this duration will be refreshed. private static readonly TimeSpan CredentialRefreshBuffer = TimeSpan.FromMinutes(5); @@ -188,13 +188,22 @@ public static async Task CreateNamespaceAsync() var resourceGroup = TestEnvironment.EventHubsResourceGroup; var token = await AquireManagementTokenAsync(); - string CreateName() => $"{ new String((char)RandomNumberGenerator.Value.Next(65, 90), 3) }-{ Guid.NewGuid().ToString("D") }"; + string CreateName() => $"net-eventhubs-{ Guid.NewGuid().ToString("D") }"; using (var client = new EventHubManagementClient(new TokenCredentials(token)) { SubscriptionId = subscription }) { var location = await QueryResourceGroupLocationAsync(token, resourceGroup, subscription); - var eventHubsNamespace = new EHNamespace(sku: new Sku("Standard", "Standard", 12), isAutoInflateEnabled: true, maximumThroughputUnits: 20, location: location); + var tags = new Dictionary + { + { "source", typeof(EventHubScope).Assembly.GetName().Name }, + { "platform", System.Runtime.InteropServices.RuntimeInformation.OSDescription }, + { "framework", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription }, + { "created", $"{ DateTimeOffset.UtcNow.ToString("s") }Z" }, + { "cleanup-after", $"{ DateTimeOffset.UtcNow.AddDays(1).ToString("s") }Z" } + }; + + var eventHubsNamespace = new EHNamespace(sku: new Sku("Standard", "Standard", 12), tags: tags, isAutoInflateEnabled: true, maximumThroughputUnits: 20, location: location); eventHubsNamespace = await CreateRetryPolicy().ExecuteAsync(() => client.Namespaces.CreateOrUpdateAsync(resourceGroup, CreateName(), eventHubsNamespace)); var accessKey = await CreateRetryPolicy().ExecuteAsync(() => client.Namespaces.ListKeysAsync(resourceGroup, eventHubsNamespace.Name, TestEnvironment.EventHubsDefaultSharedAccessKey)); From ed3d2a712577af8c436ccd21d1ff509f4de54385 Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Wed, 14 Aug 2019 10:01:04 -0700 Subject: [PATCH 03/24] Only use the targeting pack nuget packages on non-windows (#7293) Ideally we would use the .NET framework targeting pack references everywhere but right now we are hitting error: : error MSB3245: Could not resolve this reference. Could not locate the assembly "System.Runtime". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. github issue https://github.com/dotnet/core-sdk/issues/2455 --- eng/Directory.Build.Data.targets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/Directory.Build.Data.targets b/eng/Directory.Build.Data.targets index 6f84551b041d..9666d3020150 100644 --- a/eng/Directory.Build.Data.targets +++ b/eng/Directory.Build.Data.targets @@ -11,7 +11,7 @@ - + @@ -26,7 +26,7 @@ - + From 005b3baa4f97135f947c87f8b22bc5c78620586c Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Wed, 14 Aug 2019 11:11:40 -0700 Subject: [PATCH 04/24] Bug fixes and cleanup, bumping NuGet version (#7284) --- .../AzureServiceTokenProvider.cs | 13 +++---- .../Clients/KeyVault/KeyVaultClient.cs | 4 +- .../Helpers/EnvironmentHelper.cs | 8 +++- ...ft.Azure.Services.AppAuthentication.csproj | 7 ++-- .../Properties/AssemblyInfo.cs | 4 +- .../AzureCliAccessTokenProvider.cs | 37 +++++++++++++------ .../ClientCertificateAccessTokenProvider.cs | 2 +- .../NonInteractiveAccessTokenProviderBase.cs | 11 ------ 8 files changed, 45 insertions(+), 41 deletions(-) diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/AzureServiceTokenProvider.cs b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/AzureServiceTokenProvider.cs index 01fae514f17b..fdfd285d3c70 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/AzureServiceTokenProvider.cs +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/AzureServiceTokenProvider.cs @@ -46,7 +46,7 @@ public class AzureServiceTokenProvider /// public TokenCallback KeyVaultTokenCallback => async (authority, resource, scope) => { - var authResult = await GetAuthResultAsyncImpl(authority, resource, scope).ConfigureAwait(false); + var authResult = await GetAuthResultAsyncImpl(resource, authority).ConfigureAwait(false); return authResult.AccessToken; }; @@ -127,7 +127,7 @@ internal AzureServiceTokenProvider(List /// /// - private async Task GetAuthResultAsyncImpl(string authority, string resource, string scope, + private async Task GetAuthResultAsyncImpl(string resource, string authority, CancellationToken cancellationToken = default(CancellationToken)) { // Check if the auth result is present in cache, for the given connection string, authority, and resource @@ -171,8 +171,7 @@ private async Task GetAuthResultAsyncImpl(string author try { // Get the auth result, add to the cache, and return the auth result. - var authResult = await tokenProvider.GetAuthResultAsync(authority, resource, - string.Empty, cancellationToken) + var authResult = await tokenProvider.GetAuthResultAsync(resource, authority, cancellationToken) .ConfigureAwait(false); // Set the token provider to the one that worked. @@ -251,7 +250,7 @@ private List GetTokenProviders() public async Task GetAccessTokenAsync(string resource, string tenantId) { - return await GetAccessTokenAsync(resource, tenantId, default(CancellationToken)); + return await GetAccessTokenAsync(resource, tenantId, default(CancellationToken)).ConfigureAwait(false); } /// @@ -278,12 +277,12 @@ public async Task GetAccessTokenAsync(string resource, string tenantId) string authority = string.IsNullOrEmpty(tenantId) ? string.Empty : $"{_azureAdInstance}{tenantId}"; - return await GetAuthResultAsyncImpl(authority, resource, string.Empty, cancellationToken).ConfigureAwait(false); + return await GetAuthResultAsyncImpl(resource, authority, cancellationToken).ConfigureAwait(false); } public async Task GetAuthenticationResultAsync(string resource, string tenantId) { - return await GetAuthenticationResultAsync(resource, tenantId, default(CancellationToken)); + return await GetAuthenticationResultAsync(resource, tenantId, default(CancellationToken)).ConfigureAwait(false); } } } diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Clients/KeyVault/KeyVaultClient.cs b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Clients/KeyVault/KeyVaultClient.cs index 4d30c68d5961..78543ad85a91 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Clients/KeyVault/KeyVaultClient.cs +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Clients/KeyVault/KeyVaultClient.cs @@ -166,8 +166,8 @@ private async Task GetKeyVaultAccessTokenAsync(string secretUrl, Cancell { try { - var authResult = await tokenProvider.GetAuthResultAsync(challenge.AuthorizationServer, - challenge.Resource, challenge.Scope, cancellationToken).ConfigureAwait(false); + var authResult = await tokenProvider.GetAuthResultAsync(challenge.Resource, + challenge.AuthorizationServer, cancellationToken).ConfigureAwait(false); PrincipalUsed = tokenProvider.PrincipalUsed; diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Helpers/EnvironmentHelper.cs b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Helpers/EnvironmentHelper.cs index d1f09d6d7493..3ac3a0ecad34 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Helpers/EnvironmentHelper.cs +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Helpers/EnvironmentHelper.cs @@ -18,20 +18,24 @@ internal class EnvironmentHelper static extern int GetSystemDirectoryW([Out] StringBuilder lpBuffer, int jSize); const int MaxShortPath = 260; - +#endif + public static string SystemDirectory { get { +#if !FullNetFx StringBuilder sb = new StringBuilder(); if (GetSystemDirectoryW(sb, MaxShortPath) == 0) { throw new Exception("Unable to get system directory"); } return sb.ToString(); +#else + return Environment.SystemDirectory; +#endif } } -#endif /// /// Method to get environment variable value. For supported frameworks, the method looks in both process and machine target locations. diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Microsoft.Azure.Services.AppAuthentication.csproj b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Microsoft.Azure.Services.AppAuthentication.csproj index 2ca6085c6114..69d8953d6967 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Microsoft.Azure.Services.AppAuthentication.csproj +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Microsoft.Azure.Services.AppAuthentication.csproj @@ -2,17 +2,16 @@ Microsoft.Azure.Services.AppAuthentication Enables a service to authenticate to Azure services using the developer's Azure Active Directory/ Microsoft account during development, and authenticate as itself (using OAuth 2.0 Client Credentials flow) when deployed to Azure. - 1.3.0 + 1.3.1 Microsoft.Azure.Services.AppAuthentication Azure Authentication AppAuthentication - + diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Properties/AssemblyInfo.cs b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Properties/AssemblyInfo.cs index 5090aa21c401..4c2731e10440 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Properties/AssemblyInfo.cs +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/Properties/AssemblyInfo.cs @@ -4,8 +4,8 @@ [assembly: AssemblyTitle("Microsoft.Azure.Services.AppAuthentication")] [assembly: AssemblyDescription("Enables a service to authenticate to Azure services using the developer's Azure Active Directory/ Microsoft account during development, and authenticate as itself (using OAuth 2.0 Client Credentials flow) when deployed to Azure.")] -[assembly: AssemblyVersion("1.3.0.0")] -[assembly: AssemblyFileVersion("1.3.0.0")] +[assembly: AssemblyVersion("1.3.1.0")] +[assembly: AssemblyFileVersion("1.3.1.0")] [assembly: AssemblyCompany("Microsoft Corporation")] [assembly: AssemblyProduct("Microsoft Azure")] [assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation. All rights reserved.")] diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/AzureCliAccessTokenProvider.cs b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/AzureCliAccessTokenProvider.cs index 1ffabcb5cd13..9871276f01fe 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/AzureCliAccessTokenProvider.cs +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/AzureCliAccessTokenProvider.cs @@ -42,21 +42,27 @@ internal AzureCliAccessTokenProvider(IProcessManager processManager) PrincipalUsed = new Principal { Type = "User" }; } +#if net452 || net461 + // detect when running with Mono on Unix + // https://www.mono-project.com/docs/faq/technical/#how-to-detect-the-execution-platform + private bool IsUnixPlatform() + { + int p = (int)Environment.OSVersion.Platform; + return p == 4 || p == 6 || p == 128; + } +#endif + private ProcessStartInfo GetProcessStartInfo(string resource) { + ProcessStartInfo startInfo; + string azureCliPath; -#if FullNetFx - startInfo = new ProcessStartInfo - { - FileName = Path.Combine(Environment.SystemDirectory, Cmd), - Arguments = $"/c {GetTokenCommand} {ResourceArgumentName} {resource}" - }; - - // Default install location for Az CLI is included. If developer has installed to non-default location, the path can be specified using AzureCliPath variable. - startInfo.EnvironmentVariables["PATH"] = $"{EnvironmentHelper.GetEnvironmentVariable(AzureCliPath)};{_azureCliDefaultPathWindows}"; +#if net452 || net461 + if (!IsUnixPlatform()) #else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) +#endif { startInfo = new ProcessStartInfo { @@ -64,7 +70,7 @@ private ProcessStartInfo GetProcessStartInfo(string resource) Arguments = $"/c {GetTokenCommand} {ResourceArgumentName} {resource}" }; - startInfo.Environment["PATH"] = $"{EnvironmentHelper.GetEnvironmentVariable(AzureCliPath)};{_azureCliDefaultPathWindows}"; + azureCliPath = $"{EnvironmentHelper.GetEnvironmentVariable(AzureCliPath)};{_azureCliDefaultPathWindows}"; } else { @@ -74,12 +80,19 @@ private ProcessStartInfo GetProcessStartInfo(string resource) Arguments = $"{GetTokenCommand} {ResourceArgumentName} {resource}" }; - startInfo.Environment["PATH"] = $"{EnvironmentHelper.GetEnvironmentVariable(AzureCliPath)}:{AzureCliDefaultPath}"; + azureCliPath = $"{EnvironmentHelper.GetEnvironmentVariable(AzureCliPath)}:{AzureCliDefaultPath}"; } + + // Default install location for Az CLI is included. If developer has installed to non-default location, the path can be specified using AzureCliPath variable. +#if FullNetFx + startInfo.EnvironmentVariables["PATH"] = azureCliPath; +#else + startInfo.Environment["PATH"] = azureCliPath; #endif return startInfo; } + public override async Task GetAuthResultAsync(string resource, string authority, CancellationToken cancellationToken = default(CancellationToken)) { @@ -89,7 +102,7 @@ public override async Task GetAuthResultAsync(string re ValidationHelper.ValidateResource(resource); // Execute Azure CLI to get token - string response = await _processManager.ExecuteAsync(new Process { StartInfo = GetProcessStartInfo(resource)}, cancellationToken).ConfigureAwait(false); + string response = await _processManager.ExecuteAsync(new Process { StartInfo = GetProcessStartInfo(resource) }, cancellationToken).ConfigureAwait(false); // Parse the response TokenResponse tokenResponse = TokenResponse.Parse(response); diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/ClientCertificateAccessTokenProvider.cs b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/ClientCertificateAccessTokenProvider.cs index 875393f69df3..d1e4dd19a957 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/ClientCertificateAccessTokenProvider.cs +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/ClientCertificateAccessTokenProvider.cs @@ -130,7 +130,7 @@ public override async Task GetAuthResultAsync(string re // Get certificate for the given Key Vault secret identifier try { - var keyVaultCert = await _keyVaultClient.GetCertificateAsync(_certificateIdentifier, cancellationToken); + var keyVaultCert = await _keyVaultClient.GetCertificateAsync(_certificateIdentifier, cancellationToken).ConfigureAwait(false); certs = new List() { keyVaultCert }; // If authority is still not specified, create it using azureAdInstance and tenantId. Tenant ID comes from Key Vault access token. diff --git a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/NonInteractiveAccessTokenProviderBase.cs b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/NonInteractiveAccessTokenProviderBase.cs index 2f61649ca9f1..cce1deb06f84 100644 --- a/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/NonInteractiveAccessTokenProviderBase.cs +++ b/sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication/TokenProviders/NonInteractiveAccessTokenProviderBase.cs @@ -15,16 +15,5 @@ internal abstract class NonInteractiveAzureServiceTokenProviderBase public Principal PrincipalUsed; public abstract Task GetAuthResultAsync(string resource, string authority, CancellationToken cancellationToken); - - internal async Task GetAuthResultAsync(string authority, string resource, string scope, CancellationToken cancellationToken) - { - if (string.IsNullOrWhiteSpace(resource)) - { - throw new AzureServiceTokenProviderException(ConnectionString, resource, authority, - AzureServiceTokenProviderException.MissingResource); - } - - return await GetAuthResultAsync(resource, authority, cancellationToken).ConfigureAwait(false); - } } } From 53ec8b44ccbe8dd75bfe3f6c019f01a439bb9152 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Wed, 14 Aug 2019 21:26:04 +0000 Subject: [PATCH 05/24] Generated from d22072afd73683450b42a2d626e10013330ab31b (#61) event triggers subcription apis --- .../src/Generated/ITriggersOperations.cs | 140 +++ .../src/Generated/Models/AvroSink.cs | 7 +- .../src/Generated/Models/AzureBlobFSSink.cs | 7 +- .../Generated/Models/AzureDataExplorerSink.cs | 7 +- .../Models/AzureDataLakeStoreSink.cs | 7 +- .../src/Generated/Models/AzureMySqlSink.cs | 7 +- .../Generated/Models/AzurePostgreSqlSink.cs | 7 +- .../src/Generated/Models/AzureQueueSink.cs | 7 +- .../Generated/Models/AzureSearchIndexSink.cs | 7 +- .../src/Generated/Models/AzureSqlSink.cs | 7 +- .../src/Generated/Models/AzureTableSink.cs | 7 +- .../src/Generated/Models/BinarySink.cs | 9 +- .../src/Generated/Models/BlobSink.cs | 7 +- .../Models/CommonDataServiceForAppsSink.cs | 7 +- .../src/Generated/Models/CopySink.cs | 14 +- .../Models/CosmosDbMongoDbApiSink.cs | 7 +- .../src/Generated/Models/DelimitedTextSink.cs | 7 +- .../Models/DocumentDbCollectionSink.cs | 7 +- .../src/Generated/Models/DynamicsCrmSink.cs | 7 +- .../src/Generated/Models/DynamicsSink.cs | 7 +- .../Models/EventSubscriptionStatus.cs | 25 + .../src/Generated/Models/FileSystemSink.cs | 7 +- .../src/Generated/Models/InformixSink.cs | 7 +- .../Generated/Models/MicrosoftAccessSink.cs | 7 +- .../src/Generated/Models/OdbcSink.cs | 7 +- .../src/Generated/Models/OracleSink.cs | 7 +- .../src/Generated/Models/ParquetSink.cs | 7 +- ...kageLocation.cs => SSISPackageLocation.cs} | 0 .../Models/SalesforceServiceCloudSink.cs | 7 +- .../src/Generated/Models/SalesforceSink.cs | 7 +- .../Models/SapCloudForCustomerSink.cs | 7 +- .../src/Generated/Models/SqlDWSink.cs | 7 +- .../src/Generated/Models/SqlMISink.cs | 7 +- .../src/Generated/Models/SqlServerSink.cs | 7 +- .../src/Generated/Models/SqlSink.cs | 7 +- .../TriggerSubscriptionOperationStatus.cs | 64 ++ .../SdkInfo_DataFactoryManagementClient.cs | 11 - .../src/Generated/TriggersOperations.cs | 812 +++++++++++++++++- .../Generated/TriggersOperationsExtensions.cs | 230 +++++ 39 files changed, 1434 insertions(+), 81 deletions(-) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EventSubscriptionStatus.cs rename sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/{SsisPackageLocation.cs => SSISPackageLocation.cs} (100%) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerSubscriptionOperationStatus.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/ITriggersOperations.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/ITriggersOperations.cs index 638fc80b41a1..62dd32263d05 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/ITriggersOperations.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/ITriggersOperations.cs @@ -143,6 +143,90 @@ public partial interface ITriggersOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Subscribe event trigger to events. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> SubscribeToEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a trigger's event subscription status. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> GetEventSubscriptionStatusWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Unsubscribe event trigger from events. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> UnsubscribeFromEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Starts a trigger. /// /// @@ -193,6 +277,62 @@ public partial interface ITriggersOperations /// Task StopWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Subscribe event trigger to events. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> BeginSubscribeToEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Unsubscribe event trigger from events. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> BeginUnsubscribeFromEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Starts a trigger. /// /// diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs index 674850039188..9274f1e6ce64 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs @@ -46,10 +46,13 @@ public AvroSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Avro store settings. /// Avro format settings. - public AvroSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), AvroWriteSettings formatSettings = default(AvroWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AvroSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), AvroWriteSettings formatSettings = default(AvroWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; FormatSettings = formatSettings; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs index 587c3c7c0b67..b37f7384f30b 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs @@ -46,10 +46,13 @@ public AzureBlobFSSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. - public AzureBlobFSSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureBlobFSSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CopyBehavior = copyBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs index c0cd48667b9d..9eaf14918f16 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs @@ -46,6 +46,9 @@ public AzureDataExplorerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A name of a pre-created csv /// mapping that was defined on the target Kusto table. Type: /// string. @@ -53,8 +56,8 @@ public AzureDataExplorerSink() /// description provided in a json format. Type: string. /// If set to true, any aggregation will /// be skipped. Default is false. Type: boolean. - public AzureDataExplorerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ingestionMappingName = default(object), object ingestionMappingAsJson = default(object), object flushImmediately = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureDataExplorerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ingestionMappingName = default(object), object ingestionMappingAsJson = default(object), object flushImmediately = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IngestionMappingName = ingestionMappingName; IngestionMappingAsJson = ingestionMappingAsJson; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs index 0760f01ffd36..cfea28c077cc 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs @@ -46,12 +46,15 @@ public AzureDataLakeStoreSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. /// Single File /// Parallel. - public AzureDataLakeStoreSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object enableAdlsSingleFileParallel = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureDataLakeStoreSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object), object enableAdlsSingleFileParallel = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CopyBehavior = copyBehavior; EnableAdlsSingleFileParallel = enableAdlsSingleFileParallel; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs index 833052d405ae..9b42ad79a764 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs @@ -46,10 +46,13 @@ public AzureMySqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public AzureMySqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureMySqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs index b7948c955b27..f1d8cbfe3e79 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs @@ -46,10 +46,13 @@ public AzurePostgreSqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public AzurePostgreSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzurePostgreSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs index a3412d7745c0..8813cafc55c1 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs @@ -45,8 +45,11 @@ public AzureQueueSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - public AzureQueueSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public AzureQueueSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CustomInit(); } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs index cc1483ddc136..2845ca9f5a76 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs @@ -46,11 +46,14 @@ public AzureSearchIndexSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Specify the write behavior when /// upserting documents into Azure Search Index. Possible values /// include: 'Merge', 'Upload' - public AzureSearchIndexSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureSearchIndexSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs index 50290e3179d8..69746f19d8e7 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs @@ -46,6 +46,9 @@ public AzureSqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,8 +61,8 @@ public AzureSqlSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public AzureSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs index 3700867f3ad8..63f7cb275dda 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs @@ -46,6 +46,9 @@ public AzureTableSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Azure Table /// default partition key value. Type: string (or Expression with /// resultType string). @@ -55,8 +58,8 @@ public AzureTableSink() /// string (or Expression with resultType string). /// Azure Table insert type. Type: /// string (or Expression with resultType string). - public AzureTableSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object azureTableDefaultPartitionKeyValue = default(object), object azureTablePartitionKeyName = default(object), object azureTableRowKeyName = default(object), object azureTableInsertType = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureTableSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object azureTableDefaultPartitionKeyValue = default(object), object azureTablePartitionKeyName = default(object), object azureTableRowKeyName = default(object), object azureTableInsertType = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { AzureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue; AzureTablePartitionKeyName = azureTablePartitionKeyName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs index 46e9928c924c..fa827814e6bb 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs @@ -46,9 +46,12 @@ public BinarySink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Binary store settings. - public BinarySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreReadSettings storeSettings = default(StoreReadSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public BinarySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; CustomInit(); @@ -63,7 +66,7 @@ public BinarySink() /// Gets or sets binary store settings. /// [JsonProperty(PropertyName = "storeSettings")] - public StoreReadSettings StoreSettings { get; set; } + public StoreWriteSettings StoreSettings { get; set; } /// /// Validate the object. diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs index ff85b921f5a5..426e9f94f571 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs @@ -46,6 +46,9 @@ public BlobSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Blob writer overwrite files. /// Type: boolean (or Expression with resultType boolean). /// Blob writer date time @@ -55,8 +58,8 @@ public BlobSink() /// boolean (or Expression with resultType boolean). /// The type of copy behavior for copy /// sink. - public BlobSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object blobWriterOverwriteFiles = default(object), object blobWriterDateTimeFormat = default(object), object blobWriterAddHeader = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public BlobSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object blobWriterOverwriteFiles = default(object), object blobWriterDateTimeFormat = default(object), object blobWriterAddHeader = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { BlobWriterOverwriteFiles = blobWriterOverwriteFiles; BlobWriterDateTimeFormat = blobWriterDateTimeFormat; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs index 3d2ecc7c8606..81baff60460c 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs @@ -48,12 +48,15 @@ public CommonDataServiceForAppsSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The flag indicating whether to /// ignore null values from input dataset (except key fields) during /// write operation. Default is false. Type: boolean (or Expression /// with resultType boolean). - public CommonDataServiceForAppsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public CommonDataServiceForAppsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs index ac2f9e17465e..e0419e79400a 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs @@ -46,7 +46,10 @@ public CopySink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - public CopySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object)) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public CopySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object)) { AdditionalProperties = additionalProperties; WriteBatchSize = writeBatchSize; @@ -54,6 +57,7 @@ public CopySink() SinkRetryCount = sinkRetryCount; SinkRetryWait = sinkRetryWait; MaxConcurrentConnections = maxConcurrentConnections; + TableOption = tableOption; CustomInit(); } @@ -106,5 +110,13 @@ public CopySink() [JsonProperty(PropertyName = "maxConcurrentConnections")] public object MaxConcurrentConnections { get; set; } + /// + /// Gets or sets the option to handle sink table, such as autoCreate. + /// For now only 'autoCreate' value is supported. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "tableOption")] + public object TableOption { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs index 396dec19b3c1..8f120b788ec2 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs @@ -46,13 +46,16 @@ public CosmosDbMongoDbApiSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Specifies whether the document with /// same key to be overwritten (upsert) rather than throw exception /// (insert). The default value is "insert". Type: string (or /// Expression with resultType string). Type: string (or Expression /// with resultType string). - public CosmosDbMongoDbApiSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object writeBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public CosmosDbMongoDbApiSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object writeBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs index 48aa6c4a5e6d..77247684a5f5 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs @@ -46,10 +46,13 @@ public DelimitedTextSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// DelimitedText store settings. /// DelimitedText format settings. - public DelimitedTextSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), DelimitedTextWriteSettings formatSettings = default(DelimitedTextWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DelimitedTextSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), DelimitedTextWriteSettings formatSettings = default(DelimitedTextWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; FormatSettings = formatSettings; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs index 9ceefb6b2244..05618fdb3770 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs @@ -46,13 +46,16 @@ public DocumentDbCollectionSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Nested properties separator. Default /// is . (dot). Type: string (or Expression with resultType /// string). /// Describes how to write data to Azure /// Cosmos DB. Allowed values: insert and upsert. - public DocumentDbCollectionSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object nestingSeparator = default(object), object writeBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DocumentDbCollectionSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object nestingSeparator = default(object), object writeBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { NestingSeparator = nestingSeparator; WriteBehavior = writeBehavior; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs index 25a45867354d..400055fb26ef 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs @@ -46,12 +46,15 @@ public DynamicsCrmSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The flag indicating whether to /// ignore null values from input dataset (except key fields) during /// write operation. Default is false. Type: boolean (or Expression /// with resultType boolean). - public DynamicsCrmSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DynamicsCrmSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs index 34852c284b6a..1d15c9e2506b 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs @@ -46,12 +46,15 @@ public DynamicsSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The flag indicating whether ignore /// null values from input dataset (except key fields) during write /// operation. Default is false. Type: boolean (or Expression with /// resultType boolean). - public DynamicsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DynamicsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EventSubscriptionStatus.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EventSubscriptionStatus.cs new file mode 100644 index 000000000000..580f566a608d --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EventSubscriptionStatus.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for EventSubscriptionStatus. + /// + public static class EventSubscriptionStatus + { + public const string Enabled = "Enabled"; + public const string Provisioning = "Provisioning"; + public const string Deprovisioning = "Deprovisioning"; + public const string Disabled = "Disabled"; + public const string Unknown = "Unknown"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs index a5020f9d87af..10e949b9a56d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs @@ -46,10 +46,13 @@ public FileSystemSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. - public FileSystemSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public FileSystemSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CopyBehavior = copyBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs index 0ceb858146c6..253b5f23987e 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs @@ -46,10 +46,13 @@ public InformixSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public InformixSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public InformixSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs index 899d6f038b43..29ecbea568fd 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs @@ -46,10 +46,13 @@ public MicrosoftAccessSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public MicrosoftAccessSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public MicrosoftAccessSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs index 7151280b5eca..2d0ad3bdc807 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs @@ -46,10 +46,13 @@ public OdbcSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public OdbcSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public OdbcSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs index 7859a5c6260b..3aed6e3d813d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs @@ -46,10 +46,13 @@ public OracleSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL pre-copy script. Type: string (or /// Expression with resultType string). - public OracleSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public OracleSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs index 73efe2afcdf0..6d975bbfd3f4 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs @@ -46,9 +46,12 @@ public ParquetSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Parquet store settings. - public ParquetSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public ParquetSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISPackageLocation.cs similarity index 100% rename from sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs rename to sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISPackageLocation.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs index a260bddc659c..bd3ff8173a12 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs @@ -46,6 +46,9 @@ public SalesforceServiceCloudSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is Insert. Possible values include: 'Insert', /// 'Upsert' @@ -61,8 +64,8 @@ public SalesforceServiceCloudSink() /// destination object to NULL when doing upsert/update operation and /// insert NULL value when doing insert operation. Type: boolean (or /// Expression with resultType boolean). - public SalesforceServiceCloudSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SalesforceServiceCloudSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; ExternalIdFieldName = externalIdFieldName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs index cba5c6904541..69304bd4f61d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs @@ -46,6 +46,9 @@ public SalesforceSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is Insert. Possible values include: 'Insert', /// 'Upsert' @@ -61,8 +64,8 @@ public SalesforceSink() /// destination object to NULL when doing upsert/update operation and /// insert NULL value when doing insert operation. Type: boolean (or /// Expression with resultType boolean). - public SalesforceSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SalesforceSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; ExternalIdFieldName = externalIdFieldName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs index 9157f1e4386f..e5dc41803f2f 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs @@ -46,11 +46,14 @@ public SapCloudForCustomerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is 'Insert'. Possible values include: 'Insert', /// 'Update' - public SapCloudForCustomerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SapCloudForCustomerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs index e52711727fb1..805f98203a7c 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs @@ -46,6 +46,9 @@ public SqlDWSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL pre-copy script. Type: string (or /// Expression with resultType string). /// Indicates to use PolyBase to copy data @@ -53,8 +56,8 @@ public SqlDWSink() /// Expression with resultType boolean). /// Specifies PolyBase-related settings /// when allowPolyBase is true. - public SqlDWSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object), object allowPolyBase = default(object), PolybaseSettings polyBaseSettings = default(PolybaseSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlDWSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object), object allowPolyBase = default(object), PolybaseSettings polyBaseSettings = default(PolybaseSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; AllowPolyBase = allowPolyBase; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs index 5044366f301f..d11009fac792 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs @@ -46,6 +46,9 @@ public SqlMISink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,8 +61,8 @@ public SqlMISink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public SqlMISink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlMISink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs index 017de9d8f760..a3f859004857 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs @@ -46,6 +46,9 @@ public SqlServerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,8 +61,8 @@ public SqlServerSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public SqlServerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlServerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs index 56c858661b2a..3d3e70cc329d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs @@ -46,6 +46,9 @@ public SqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,8 +61,8 @@ public SqlSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public SqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerSubscriptionOperationStatus.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerSubscriptionOperationStatus.cs new file mode 100644 index 000000000000..dc44fadce22e --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerSubscriptionOperationStatus.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines the response of a trigger subscription operation. + /// + public partial class TriggerSubscriptionOperationStatus + { + /// + /// Initializes a new instance of the + /// TriggerSubscriptionOperationStatus class. + /// + public TriggerSubscriptionOperationStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// TriggerSubscriptionOperationStatus class. + /// + /// Trigger name. + /// Event Subscription Status. Possible values + /// include: 'Enabled', 'Provisioning', 'Deprovisioning', 'Disabled', + /// 'Unknown' + public TriggerSubscriptionOperationStatus(string triggerName = default(string), string status = default(string)) + { + TriggerName = triggerName; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets trigger name. + /// + [JsonProperty(PropertyName = "triggerName")] + public string TriggerName { get; private set; } + + /// + /// Gets event Subscription Status. Possible values include: 'Enabled', + /// 'Provisioning', 'Deprovisioning', 'Disabled', 'Unknown' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; private set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs index 1d5b778524b6..afb3bebe6aa9 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs @@ -36,16 +36,5 @@ public static IEnumerable> ApiInfo_DataFactoryMana }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=C:\\Users\\xiaoyz\\Source\\Repos\\azure-sdk-for-net-wenbo\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "f80a6c182c85879a415d4c668473c592147416f3"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperations.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperations.cs index 45ce129518bc..08657cb81ff2 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperations.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperations.cs @@ -1051,7 +1051,7 @@ internal TriggersOperations(DataFactoryManagementClient client) } /// - /// Starts a trigger. + /// Subscribe event trigger to events. /// /// /// The resource group name. @@ -1068,15 +1068,265 @@ internal TriggersOperations(DataFactoryManagementClient client) /// /// The cancellation token. /// - public async Task StartWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> SubscribeToEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginStartWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginSubscribeToEventsWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Stops a trigger. + /// Get a trigger's event subscription status. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> GetEventSubscriptionStatusWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (triggerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "triggerName"); + } + if (triggerName != null) + { + if (triggerName.Length > 260) + { + throw new ValidationException(ValidationRules.MaxLength, "triggerName", 260); + } + if (triggerName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "triggerName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(triggerName, "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "triggerName", "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$"); + } + } + 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("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("triggerName", triggerName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetEventSubscriptionStatus", 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.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{triggerName}", System.Uri.EscapeDataString(triggerName)); + 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("POST"); + _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; + } + + /// + /// Unsubscribe event trigger from events. /// /// /// The resource group name. @@ -1093,13 +1343,563 @@ internal TriggersOperations(DataFactoryManagementClient client) /// /// The cancellation token. /// - public async Task StopWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UnsubscribeFromEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginStopWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUnsubscribeFromEventsWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Starts a trigger. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task StartWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginStartWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Stops a trigger. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task StopWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginStopWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Subscribe event trigger to events. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> BeginSubscribeToEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (triggerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "triggerName"); + } + if (triggerName != null) + { + if (triggerName.Length > 260) + { + throw new ValidationException(ValidationRules.MaxLength, "triggerName", 260); + } + if (triggerName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "triggerName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(triggerName, "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "triggerName", "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$"); + } + } + 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("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("triggerName", triggerName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginSubscribeToEvents", 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.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{triggerName}", System.Uri.EscapeDataString(triggerName)); + 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("POST"); + _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 != 202) + { + 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; + } + + /// + /// Unsubscribe event trigger from events. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// 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> BeginUnsubscribeFromEventsWithHttpMessagesAsync(string resourceGroupName, string factoryName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (triggerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "triggerName"); + } + if (triggerName != null) + { + if (triggerName.Length > 260) + { + throw new ValidationException(ValidationRules.MaxLength, "triggerName", 260); + } + if (triggerName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "triggerName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(triggerName, "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "triggerName", "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$"); + } + } + 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("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("triggerName", triggerName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUnsubscribeFromEvents", 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.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{triggerName}", System.Uri.EscapeDataString(triggerName)); + 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("POST"); + _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 != 202) + { + 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; + } + /// /// Starts a trigger. /// diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperationsExtensions.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperationsExtensions.cs index b942984b5427..62ee3833a23c 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperationsExtensions.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/TriggersOperationsExtensions.cs @@ -220,6 +220,144 @@ public static void Delete(this ITriggersOperations operations, string resourceGr (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Subscribe event trigger to events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + public static TriggerSubscriptionOperationStatus SubscribeToEvents(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName) + { + return operations.SubscribeToEventsAsync(resourceGroupName, factoryName, triggerName).GetAwaiter().GetResult(); + } + + /// + /// Subscribe event trigger to events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// The cancellation token. + /// + public static async Task SubscribeToEventsAsync(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.SubscribeToEventsWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a trigger's event subscription status. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + public static TriggerSubscriptionOperationStatus GetEventSubscriptionStatus(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName) + { + return operations.GetEventSubscriptionStatusAsync(resourceGroupName, factoryName, triggerName).GetAwaiter().GetResult(); + } + + /// + /// Get a trigger's event subscription status. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// The cancellation token. + /// + public static async Task GetEventSubscriptionStatusAsync(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetEventSubscriptionStatusWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Unsubscribe event trigger from events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + public static TriggerSubscriptionOperationStatus UnsubscribeFromEvents(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName) + { + return operations.UnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName).GetAwaiter().GetResult(); + } + + /// + /// Unsubscribe event trigger from events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// The cancellation token. + /// + public static async Task UnsubscribeFromEventsAsync(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UnsubscribeFromEventsWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Starts a trigger. /// @@ -306,6 +444,98 @@ public static void Stop(this ITriggersOperations operations, string resourceGrou (await operations.StopWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Subscribe event trigger to events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + public static TriggerSubscriptionOperationStatus BeginSubscribeToEvents(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName) + { + return operations.BeginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName).GetAwaiter().GetResult(); + } + + /// + /// Subscribe event trigger to events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginSubscribeToEventsAsync(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginSubscribeToEventsWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Unsubscribe event trigger from events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + public static TriggerSubscriptionOperationStatus BeginUnsubscribeFromEvents(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName) + { + return operations.BeginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName).GetAwaiter().GetResult(); + } + + /// + /// Unsubscribe event trigger from events. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The trigger name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUnsubscribeFromEventsAsync(this ITriggersOperations operations, string resourceGroupName, string factoryName, string triggerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUnsubscribeFromEventsWithHttpMessagesAsync(resourceGroupName, factoryName, triggerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Starts a trigger. /// From 130004931ab531cde01ac80c6fa75e6977de45b6 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2019 01:15:06 +0000 Subject: [PATCH 06/24] Generated from ec578e180c4515be63046f0b0991d7b9547e657d (#58) Update description of "location" in serviceTags.json --- .../Generated/FirewallPoliciesOperations.cs | 1612 +++++++++++++++++ .../FirewallPoliciesOperationsExtensions.cs | 413 +++++ .../FirewallPolicyRuleGroupsOperations.cs | 1100 +++++++++++ ...allPolicyRuleGroupsOperationsExtensions.cs | 339 ++++ .../Generated/IFirewallPoliciesOperations.cs | 270 +++ .../IFirewallPolicyRuleGroupsOperations.cs | 216 +++ .../src/Generated/INetworkManagementClient.cs | 10 + ...ons.cs => IPublicIPAddressesOperations.cs} | 0 .../src/Generated/IServiceTagsOperations.cs | 5 +- .../src/Generated/ISubnetsOperations.cs | 58 + ...perations.cs => IVirtualWansOperations.cs} | 0 ...licationGatewayFrontendIPConfiguration.cs} | 0 ...s => ApplicationGatewayIPConfiguration.cs} | 0 .../Models/ApplicationGatewayOnDemandProbe.cs | 28 +- .../Models/ApplicationRuleCondition.cs | 93 + .../src/Generated/Models/AzureFirewall.cs | 30 +- .../Models/AzureFirewallPublicIPAddress.cs | 53 + .../src/Generated/Models/FirewallPolicy.cs | 124 ++ .../Models/FirewallPolicyFilterRule.cs | 76 + .../Models/FirewallPolicyFilterRuleAction.cs | 55 + .../FirewallPolicyFilterRuleActionType.cs | 23 + .../Generated/Models/FirewallPolicyNatRule.cs | 93 + .../Models/FirewallPolicyNatRuleAction.cs | 55 + .../Models/FirewallPolicyNatRuleActionType.cs | 22 + .../Generated/Models/FirewallPolicyRule.cs | 78 + .../Models/FirewallPolicyRuleCondition.cs | 62 + ...lPolicyRuleConditionApplicationProtocol.cs | 83 + ...icyRuleConditionApplicationProtocolType.cs | 22 + ...ewallPolicyRuleConditionNetworkProtocol.cs | 24 + .../Models/FirewallPolicyRuleGroup.cs | 134 ++ ...guration.cs => FrontendIPConfiguration.cs} | 0 .../src/Generated/Models/HubIPAddresses.cs | 64 + ...ocationMethod.cs => IPAllocationMethod.cs} | 0 ....cs => NetworkInterfaceIPConfiguration.cs} | 0 .../Generated/Models/NetworkRuleCondition.cs | 84 + .../src/Generated/Models/PrivateEndpoint.cs | 19 +- .../Models/PrivateEndpointConnection.cs | 32 +- .../Generated/Models/PrivateLinkService.cs | 19 +- .../Models/PrivateLinkServiceConnection.cs | 32 +- .../PrivateLinkServiceIpConfiguration.cs | 47 +- ...{PublicIpAddress.cs => PublicIPAddress.cs} | 0 ...tings.cs => PublicIPAddressDnsSettings.cs} | 0 .../src/Generated/Models/PublicIPPrefix.cs | 13 +- .../Models/UnprepareNetworkPoliciesRequest.cs | 55 + ...> VirtualNetworkGatewayIPConfiguration.cs} | 0 .../src/Generated/NetworkManagementClient.cs | 16 + ...ions.cs => PublicIPAddressesOperations.cs} | 0 ... PublicIPAddressesOperationsExtensions.cs} | 0 .../SdkInfo_NetworkManagementClient.cs | 2 + .../src/Generated/ServiceTagsOperations.cs | 5 +- .../ServiceTagsOperationsExtensions.cs | 10 +- .../src/Generated/SubnetsOperations.cs | 224 +++ .../Generated/SubnetsOperationsExtensions.cs | 98 + ...tualNetworkGatewayConnectionsOperations.cs | 2 +- .../VirtualNetworkGatewaysOperations.cs | 2 +- ...Operations.cs => VirtualWansOperations.cs} | 0 ....cs => VirtualWansOperationsExtensions.cs} | 0 57 files changed, 5747 insertions(+), 55 deletions(-) create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperationsExtensions.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperationsExtensions.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPoliciesOperations.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyRuleGroupsOperations.cs rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/{IPublicIpAddressesOperations.cs => IPublicIPAddressesOperations.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/{IVirtualWANsOperations.cs => IVirtualWansOperations.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{ApplicationGatewayFrontendIpConfiguration.cs => ApplicationGatewayFrontendIPConfiguration.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{ApplicationGatewayIpConfiguration.cs => ApplicationGatewayIPConfiguration.cs} (100%) create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRuleCondition.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPublicIPAddress.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleAction.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleActionType.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleAction.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleActionType.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCondition.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocol.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocolType.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionNetworkProtocol.cs create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{FrontendIpConfiguration.cs => FrontendIPConfiguration.cs} (100%) create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubIPAddresses.cs rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{IpAllocationMethod.cs => IPAllocationMethod.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{NetworkInterfaceIpConfiguration.cs => NetworkInterfaceIPConfiguration.cs} (100%) create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{PublicIpAddress.cs => PublicIPAddress.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{PublicIpAddressDnsSettings.cs => PublicIPAddressDnsSettings.cs} (100%) create mode 100644 sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/UnprepareNetworkPoliciesRequest.cs rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/{VirtualNetworkGatewayIpConfiguration.cs => VirtualNetworkGatewayIPConfiguration.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/{PublicIpAddressesOperations.cs => PublicIPAddressesOperations.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/{PublicIpAddressesOperationsExtensions.cs => PublicIPAddressesOperationsExtensions.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/{VirtualWANsOperations.cs => VirtualWansOperations.cs} (100%) rename sdk/network/Microsoft.Azure.Management.Network/src/Generated/{VirtualWANsOperationsExtensions.cs => VirtualWansOperationsExtensions.cs} (100%) diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs new file mode 100644 index 000000000000..6732b68eba41 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs @@ -0,0 +1,1612 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + 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; + + /// + /// FirewallPoliciesOperations operations. + /// + internal partial class FirewallPoliciesOperations : IServiceOperations, IFirewallPoliciesOperations + { + /// + /// Initializes a new instance of the FirewallPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FirewallPoliciesOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Expands referenced resources. + /// + /// + /// 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 firewallPolicyName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("expand", expand); + 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.Network/firewallPolicies/{firewallPolicyName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + 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; + } + + /// + /// Updates a Firewall Policy Tags. + /// + /// + /// The resource group name of the Firewall Policy. + /// + /// + /// The name of the Firewall Policy being updated. + /// + /// + /// Parameters supplied to Update Firewall Policy tags. + /// + /// + /// 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> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, TagsObject firewallPolicyParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyParameters"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("firewallPolicyParameters", firewallPolicyParameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateTags", 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.Network/firewallPolicies/{firewallPolicyName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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(firewallPolicyParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(firewallPolicyParameters, 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) + { + var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all Firewall Policies in a resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// 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 resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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; + } + + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// 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>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAll", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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; + } + + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.Network/firewallPolicies/{firewallPolicyName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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 != 202 && (int)_statusCode != 204) + { + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.Network/firewallPolicies/{firewallPolicyName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 != 201) + { + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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 Firewall Policies in a 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>> 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; + } + + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// 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>> ListAllNextWithHttpMessagesAsync(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, "ListAllNext", 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/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperationsExtensions.cs new file mode 100644 index 000000000000..4eb14bb3e466 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperationsExtensions.cs @@ -0,0 +1,413 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FirewallPoliciesOperations. + /// + public static partial class FirewallPoliciesOperationsExtensions + { + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + public static void Delete(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName) + { + operations.DeleteAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Expands referenced resources. + /// + public static FirewallPolicy Get(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, string expand = default(string)) + { + return operations.GetAsync(resourceGroupName, firewallPolicyName, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Expands referenced resources. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a Firewall Policy Tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name of the Firewall Policy. + /// + /// + /// The name of the Firewall Policy being updated. + /// + /// + /// Parameters supplied to Update Firewall Policy tags. + /// + public static FirewallPolicy UpdateTags(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, TagsObject firewallPolicyParameters) + { + return operations.UpdateTagsAsync(resourceGroupName, firewallPolicyName, firewallPolicyParameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a Firewall Policy Tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name of the Firewall Policy. + /// + /// + /// The name of the Firewall Policy being updated. + /// + /// + /// Parameters supplied to Update Firewall Policy tags. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateTagsAsync(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, TagsObject firewallPolicyParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateTagsWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, firewallPolicyParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy operation. + /// + public static FirewallPolicy CreateOrUpdate(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, firewallPolicyName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Firewall Policies in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + public static IPage List(this IFirewallPoliciesOperations operations, string resourceGroupName) + { + return operations.ListAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all Firewall Policies in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IFirewallPoliciesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage ListAll(this IFirewallPoliciesOperations operations) + { + return operations.ListAllAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAllAsync(this IFirewallPoliciesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + public static void BeginDelete(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName) + { + operations.BeginDeleteAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy operation. + /// + public static FirewallPolicy BeginCreateOrUpdate(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, firewallPolicyName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IFirewallPoliciesOperations operations, string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Firewall Policies in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IFirewallPoliciesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all Firewall Policies in a 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> ListNextAsync(this IFirewallPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAllNext(this IFirewallPoliciesOperations operations, string nextPageLink) + { + return operations.ListAllNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAllNextAsync(this IFirewallPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAllNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs new file mode 100644 index 000000000000..65d78434763b --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs @@ -0,0 +1,1100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + 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; + + /// + /// FirewallPolicyRuleGroupsOperations operations. + /// + internal partial class FirewallPolicyRuleGroupsOperations : IServiceOperations, IFirewallPolicyRuleGroupsOperations + { + /// + /// Initializes a new instance of the FirewallPolicyRuleGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FirewallPolicyRuleGroupsOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// 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 firewallPolicyName, string ruleGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (ruleGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ruleGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("ruleGroupName", ruleGroupName); + tracingParameters.Add("apiVersion", apiVersion); + 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.Network/firewallPolicies/{firewallPolicyName}/ruleGroups/{ruleGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{ruleGroupName}", System.Uri.EscapeDataString(ruleGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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; + } + + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all FirewallPolicyRuleGroups in a FirewallPolicy resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// 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 resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleGroups").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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; + } + + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (ruleGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ruleGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("ruleGroupName", ruleGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.Network/firewallPolicies/{firewallPolicyName}/ruleGroups/{ruleGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{ruleGroupName}", System.Uri.EscapeDataString(ruleGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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 != 202 && (int)_statusCode != 204) + { + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (ruleGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ruleGroupName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("ruleGroupName", ruleGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.Network/firewallPolicies/{firewallPolicyName}/ruleGroups/{ruleGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{ruleGroupName}", System.Uri.EscapeDataString(ruleGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 != 201) + { + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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 FirewallPolicyRuleGroups in a FirewallPolicy 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/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..9e8135c3fc9c --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperationsExtensions.cs @@ -0,0 +1,339 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FirewallPolicyRuleGroupsOperations. + /// + public static partial class FirewallPolicyRuleGroupsOperationsExtensions + { + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + public static void Delete(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName) + { + operations.DeleteAsync(resourceGroupName, firewallPolicyName, ruleGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + public static FirewallPolicyRuleGroup Get(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName) + { + return operations.GetAsync(resourceGroupName, firewallPolicyName, ruleGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// operation. + /// + public static FirewallPolicyRuleGroup CreateOrUpdate(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, firewallPolicyName, ruleGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all FirewallPolicyRuleGroups in a FirewallPolicy resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + public static IPage List(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName) + { + return operations.ListAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult(); + } + + /// + /// Lists all FirewallPolicyRuleGroups in a FirewallPolicy resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + public static void BeginDelete(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName) + { + operations.BeginDeleteAsync(resourceGroupName, firewallPolicyName, ruleGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// operation. + /// + public static FirewallPolicyRuleGroup BeginCreateOrUpdate(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, firewallPolicyName, ruleGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IFirewallPolicyRuleGroupsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all FirewallPolicyRuleGroups in a FirewallPolicy resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IFirewallPolicyRuleGroupsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all FirewallPolicyRuleGroups in a FirewallPolicy 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 IFirewallPolicyRuleGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPoliciesOperations.cs new file mode 100644 index 000000000000..230685701599 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPoliciesOperations.cs @@ -0,0 +1,270 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPoliciesOperations operations. + /// + public partial interface IFirewallPoliciesOperations + { + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// 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 firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Expands referenced resources. + /// + /// + /// 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 firewallPolicyName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a Firewall Policy Tags. + /// + /// + /// The resource group name of the Firewall Policy. + /// + /// + /// The name of the Firewall Policy being updated. + /// + /// + /// Parameters supplied to Update Firewall Policy tags. + /// + /// + /// 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> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, TagsObject firewallPolicyParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Firewall Policies in a resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// 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 resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// 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>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, FirewallPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Firewall Policies in a 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the Firewall Policies in a subscription. + /// + /// + /// 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>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyRuleGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyRuleGroupsOperations.cs new file mode 100644 index 000000000000..eae6710507b8 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyRuleGroupsOperations.cs @@ -0,0 +1,216 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPolicyRuleGroupsOperations operations. + /// + public partial interface IFirewallPolicyRuleGroupsOperations + { + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// 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 firewallPolicyName, string ruleGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// 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 firewallPolicyName, string ruleGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all FirewallPolicyRuleGroups in a FirewallPolicy resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// 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 resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified FirewallPolicyRuleGroup. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleGroup. + /// + /// + /// Parameters supplied to the create or update FirewallPolicyRuleGroup + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleGroupName, FirewallPolicyRuleGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all FirewallPolicyRuleGroups in a FirewallPolicy 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/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs index db4a4794f213..5a9737ba4790 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs @@ -190,6 +190,16 @@ public partial interface INetworkManagementClient : System.IDisposable /// IExpressRouteLinksOperations ExpressRouteLinks { get; } + /// + /// Gets the IFirewallPoliciesOperations. + /// + IFirewallPoliciesOperations FirewallPolicies { get; } + + /// + /// Gets the IFirewallPolicyRuleGroupsOperations. + /// + IFirewallPolicyRuleGroupsOperations FirewallPolicyRuleGroups { get; } + /// /// Gets the ILoadBalancersOperations. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIpAddressesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIPAddressesOperations.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIpAddressesOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIPAddressesOperations.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs index 7aa52a33381d..d6e0a0b50a27 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs @@ -27,7 +27,10 @@ public partial interface IServiceTagsOperations /// Gets a list of service tag information resources. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a + /// filter based on location, you will get the list of service tags + /// with prefix details across all regions but limited to the cloud + /// that your subscription belongs to). /// /// /// The headers that will be added to request. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs index 812f6515d9fe..b4d48b1613ff 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs @@ -140,6 +140,35 @@ public partial interface ISubnetsOperations /// Task PrepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent + /// policies. + /// + /// + /// 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 UnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets all subnets in a virtual network. /// /// @@ -250,6 +279,35 @@ public partial interface ISubnetsOperations /// Task BeginPrepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent + /// policies. + /// + /// + /// 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 BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets all subnets in a virtual network. /// /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWANsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWansOperations.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWANsOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWansOperations.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs index 1eea633bdd50..5f4d8b39212e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs @@ -45,11 +45,11 @@ public ApplicationGatewayOnDemandProbe() /// value is false. /// Criterion for classifying a healthy probe /// response. - /// Name of backend pool of application - /// gateway to which probe request will be sent. - /// Name of backend http setting + /// Reference of backend pool of + /// application gateway to which probe request will be sent. + /// Reference of backend http setting /// of application gateway to be used for test probe. - public ApplicationGatewayOnDemandProbe(string protocol = default(string), string host = default(string), string path = default(string), int? timeout = default(int?), bool? pickHostNameFromBackendHttpSettings = default(bool?), ApplicationGatewayProbeHealthResponseMatch match = default(ApplicationGatewayProbeHealthResponseMatch), string backendPoolName = default(string), string backendHttpSettingName = default(string)) + public ApplicationGatewayOnDemandProbe(string protocol = default(string), string host = default(string), string path = default(string), int? timeout = default(int?), bool? pickHostNameFromBackendHttpSettings = default(bool?), ApplicationGatewayProbeHealthResponseMatch match = default(ApplicationGatewayProbeHealthResponseMatch), SubResource backendAddressPool = default(SubResource), SubResource backendHttpSettings = default(SubResource)) { Protocol = protocol; Host = host; @@ -57,8 +57,8 @@ public ApplicationGatewayOnDemandProbe() Timeout = timeout; PickHostNameFromBackendHttpSettings = pickHostNameFromBackendHttpSettings; Match = match; - BackendPoolName = backendPoolName; - BackendHttpSettingName = backendHttpSettingName; + BackendAddressPool = backendAddressPool; + BackendHttpSettings = backendHttpSettings; CustomInit(); } @@ -110,18 +110,18 @@ public ApplicationGatewayOnDemandProbe() public ApplicationGatewayProbeHealthResponseMatch Match { get; set; } /// - /// Gets or sets name of backend pool of application gateway to which - /// probe request will be sent. + /// Gets or sets reference of backend pool of application gateway to + /// which probe request will be sent. /// - [JsonProperty(PropertyName = "backendPoolName")] - public string BackendPoolName { get; set; } + [JsonProperty(PropertyName = "backendAddressPool")] + public SubResource BackendAddressPool { get; set; } /// - /// Gets or sets name of backend http setting of application gateway to - /// be used for test probe. + /// Gets or sets reference of backend http setting of application + /// gateway to be used for test probe. /// - [JsonProperty(PropertyName = "backendHttpSettingName")] - public string BackendHttpSettingName { get; set; } + [JsonProperty(PropertyName = "backendHttpSettings")] + public SubResource BackendHttpSettings { get; set; } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRuleCondition.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRuleCondition.cs new file mode 100644 index 000000000000..25bb78ea16ee --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRuleCondition.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Rule condition of type application. + /// + public partial class ApplicationRuleCondition : FirewallPolicyRuleCondition + { + /// + /// Initializes a new instance of the ApplicationRuleCondition class. + /// + public ApplicationRuleCondition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationRuleCondition class. + /// + /// Name of the rule condition. + /// Description of the rule + /// condition. + /// List of source IP addresses for this + /// rule. + /// List of destination IP addresses + /// or Service Tags. + /// Array of Application Protocols. + /// List of FQDNs for this rule + /// condition. + /// List of FQDN Tags for this rule + /// condition. + public ApplicationRuleCondition(string name = default(string), string description = default(string), IList sourceAddresses = default(IList), IList destinationAddresses = default(IList), IList protocols = default(IList), IList targetFqdns = default(IList), IList fqdnTags = default(IList)) + : base(name, description) + { + SourceAddresses = sourceAddresses; + DestinationAddresses = destinationAddresses; + Protocols = protocols; + TargetFqdns = targetFqdns; + FqdnTags = fqdnTags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of source IP addresses for this rule. + /// + [JsonProperty(PropertyName = "sourceAddresses")] + public IList SourceAddresses { get; set; } + + /// + /// Gets or sets list of destination IP addresses or Service Tags. + /// + [JsonProperty(PropertyName = "destinationAddresses")] + public IList DestinationAddresses { get; set; } + + /// + /// Gets or sets array of Application Protocols. + /// + [JsonProperty(PropertyName = "protocols")] + public IList Protocols { get; set; } + + /// + /// Gets or sets list of FQDNs for this rule condition. + /// + [JsonProperty(PropertyName = "targetFqdns")] + public IList TargetFqdns { get; set; } + + /// + /// Gets or sets list of FQDN Tags for this rule condition. + /// + [JsonProperty(PropertyName = "fqdnTags")] + public IList FqdnTags { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs index 862220768106..3812c58ca3e9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs @@ -53,11 +53,17 @@ public AzureFirewall() /// The operation mode for Threat /// Intelligence. Possible values include: 'Alert', 'Deny', /// 'Off' + /// The virtualHub to which the firewall + /// belongs. + /// The firewallPolicy associated with + /// this azure firewall. + /// IP addresses associated with + /// AzureFirewall. /// A list of availability zones denoting where the /// resource needs to come from. /// Gets a unique read-only string that changes /// whenever the resource is updated. - public AzureFirewall(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList applicationRuleCollections = default(IList), IList natRuleCollections = default(IList), IList networkRuleCollections = default(IList), IList ipConfigurations = default(IList), string provisioningState = default(string), string threatIntelMode = default(string), IList zones = default(IList), string etag = default(string)) + public AzureFirewall(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList applicationRuleCollections = default(IList), IList natRuleCollections = default(IList), IList networkRuleCollections = default(IList), IList ipConfigurations = default(IList), string provisioningState = default(string), string threatIntelMode = default(string), SubResource virtualHub = default(SubResource), SubResource firewallPolicy = default(SubResource), HubIPAddresses hubIpAddresses = default(HubIPAddresses), IList zones = default(IList), string etag = default(string)) : base(id, name, type, location, tags) { ApplicationRuleCollections = applicationRuleCollections; @@ -66,6 +72,9 @@ public AzureFirewall() IpConfigurations = ipConfigurations; ProvisioningState = provisioningState; ThreatIntelMode = threatIntelMode; + VirtualHub = virtualHub; + FirewallPolicy = firewallPolicy; + HubIpAddresses = hubIpAddresses; Zones = zones; Etag = etag; CustomInit(); @@ -117,6 +126,25 @@ public AzureFirewall() [JsonProperty(PropertyName = "properties.threatIntelMode")] public string ThreatIntelMode { get; set; } + /// + /// Gets or sets the virtualHub to which the firewall belongs. + /// + [JsonProperty(PropertyName = "properties.virtualHub")] + public SubResource VirtualHub { get; set; } + + /// + /// Gets or sets the firewallPolicy associated with this azure + /// firewall. + /// + [JsonProperty(PropertyName = "properties.firewallPolicy")] + public SubResource FirewallPolicy { get; set; } + + /// + /// Gets IP addresses associated with AzureFirewall. + /// + [JsonProperty(PropertyName = "properties.hubIpAddresses")] + public HubIPAddresses HubIpAddresses { get; private set; } + /// /// Gets or sets a list of availability zones denoting where the /// resource needs to come from. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPublicIPAddress.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPublicIPAddress.cs new file mode 100644 index 000000000000..eacd1bf90222 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPublicIPAddress.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Public IP Address associated with azure firewall. + /// + public partial class AzureFirewallPublicIPAddress + { + /// + /// Initializes a new instance of the AzureFirewallPublicIPAddress + /// class. + /// + public AzureFirewallPublicIPAddress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureFirewallPublicIPAddress + /// class. + /// + /// Public IP Address value. + public AzureFirewallPublicIPAddress(string address = default(string)) + { + Address = address; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets public IP Address value. + /// + [JsonProperty(PropertyName = "address")] + public string Address { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs new file mode 100644 index 000000000000..c81555375eaa --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs @@ -0,0 +1,124 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// FirewallPolicy Resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class FirewallPolicy : Resource + { + /// + /// Initializes a new instance of the FirewallPolicy class. + /// + public FirewallPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicy class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// List of references to + /// FirewallPolicyRuleGroups + /// The provisioning state of the + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// The parent firewall policy from which + /// rules are inherited. + /// List of references to Azure Firewalls that + /// this Firewall Policy is associated with + /// List of references to Child Firewall + /// Policies + /// The operation mode for Threat + /// Intelligence. Possible values include: 'Alert', 'Deny', + /// 'Off' + /// Gets a unique read-only string that changes + /// whenever the resource is updated. + public FirewallPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ruleGroups = default(IList), string provisioningState = default(string), SubResource basePolicy = default(SubResource), IList firewalls = default(IList), IList childPolicies = default(IList), string threatIntelMode = default(string), string etag = default(string)) + : base(id, name, type, location, tags) + { + RuleGroups = ruleGroups; + ProvisioningState = provisioningState; + BasePolicy = basePolicy; + Firewalls = firewalls; + ChildPolicies = childPolicies; + ThreatIntelMode = threatIntelMode; + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets list of references to FirewallPolicyRuleGroups + /// + [JsonProperty(PropertyName = "properties.ruleGroups")] + public IList RuleGroups { get; private set; } + + /// + /// Gets or sets the provisioning state of the resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets the parent firewall policy from which rules are + /// inherited. + /// + [JsonProperty(PropertyName = "properties.basePolicy")] + public SubResource BasePolicy { get; set; } + + /// + /// Gets list of references to Azure Firewalls that this Firewall + /// Policy is associated with + /// + [JsonProperty(PropertyName = "properties.firewalls")] + public IList Firewalls { get; private set; } + + /// + /// Gets list of references to Child Firewall Policies + /// + [JsonProperty(PropertyName = "properties.childPolicies")] + public IList ChildPolicies { get; private set; } + + /// + /// Gets or sets the operation mode for Threat Intelligence. Possible + /// values include: 'Alert', 'Deny', 'Off' + /// + [JsonProperty(PropertyName = "properties.threatIntelMode")] + public string ThreatIntelMode { get; set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs new file mode 100644 index 000000000000..63f329ab53bd --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Firewall Policy Filter Rule + /// + public partial class FirewallPolicyFilterRule : FirewallPolicyRule + { + /// + /// Initializes a new instance of the FirewallPolicyFilterRule class. + /// + public FirewallPolicyFilterRule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyFilterRule class. + /// + /// Name of the Rule + /// Priority of the Firewall Policy Rule + /// resource. + /// The action type of a Filter rule + /// Collection of rule conditions used by + /// a rule. + public FirewallPolicyFilterRule(string name = default(string), int? priority = default(int?), FirewallPolicyFilterRuleAction action = default(FirewallPolicyFilterRuleAction), IList ruleConditions = default(IList)) + : base(name, priority) + { + Action = action; + RuleConditions = ruleConditions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the action type of a Filter rule + /// + [JsonProperty(PropertyName = "action")] + public FirewallPolicyFilterRuleAction Action { get; set; } + + /// + /// Gets or sets collection of rule conditions used by a rule. + /// + [JsonProperty(PropertyName = "ruleConditions")] + public IList RuleConditions { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleAction.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleAction.cs new file mode 100644 index 000000000000..3971a8ed7402 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleAction.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of the FirewallPolicyFilterRuleAction. + /// + public partial class FirewallPolicyFilterRuleAction + { + /// + /// Initializes a new instance of the FirewallPolicyFilterRuleAction + /// class. + /// + public FirewallPolicyFilterRuleAction() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyFilterRuleAction + /// class. + /// + /// The type of action. Possible values include: + /// 'Allow', 'Deny', 'Alert ' + public FirewallPolicyFilterRuleAction(string type = default(string)) + { + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of action. Possible values include: 'Allow', + /// 'Deny', 'Alert ' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleActionType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleActionType.cs new file mode 100644 index 000000000000..b6293b084b43 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleActionType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for FirewallPolicyFilterRuleActionType. + /// + public static class FirewallPolicyFilterRuleActionType + { + public const string Allow = "Allow"; + public const string Deny = "Deny"; + public const string Alert = "Alert "; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs new file mode 100644 index 000000000000..7a61c07279eb --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Firewall Policy NAT Rule + /// + public partial class FirewallPolicyNatRule : FirewallPolicyRule + { + /// + /// Initializes a new instance of the FirewallPolicyNatRule class. + /// + public FirewallPolicyNatRule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyNatRule class. + /// + /// Name of the Rule + /// Priority of the Firewall Policy Rule + /// resource. + /// The action type of a Nat rule, SNAT or + /// DNAT + /// The translated address for this NAT + /// rule. + /// The translated port for this NAT + /// rule. + /// The match conditions for incoming + /// traffic + public FirewallPolicyNatRule(string name = default(string), int? priority = default(int?), FirewallPolicyNatRuleAction action = default(FirewallPolicyNatRuleAction), string translatedAddress = default(string), string translatedPort = default(string), FirewallPolicyRuleCondition ruleCondition = default(FirewallPolicyRuleCondition)) + : base(name, priority) + { + Action = action; + TranslatedAddress = translatedAddress; + TranslatedPort = translatedPort; + RuleCondition = ruleCondition; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the action type of a Nat rule, SNAT or DNAT + /// + [JsonProperty(PropertyName = "action")] + public FirewallPolicyNatRuleAction Action { get; set; } + + /// + /// Gets or sets the translated address for this NAT rule. + /// + [JsonProperty(PropertyName = "translatedAddress")] + public string TranslatedAddress { get; set; } + + /// + /// Gets or sets the translated port for this NAT rule. + /// + [JsonProperty(PropertyName = "translatedPort")] + public string TranslatedPort { get; set; } + + /// + /// Gets or sets the match conditions for incoming traffic + /// + [JsonProperty(PropertyName = "ruleCondition")] + public FirewallPolicyRuleCondition RuleCondition { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleAction.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleAction.cs new file mode 100644 index 000000000000..f3aa96489fd4 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleAction.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of the FirewallPolicyNatRuleAction. + /// + public partial class FirewallPolicyNatRuleAction + { + /// + /// Initializes a new instance of the FirewallPolicyNatRuleAction + /// class. + /// + public FirewallPolicyNatRuleAction() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyNatRuleAction + /// class. + /// + /// The type of action. Possible values include: + /// 'DNAT', 'SNAT' + public FirewallPolicyNatRuleAction(string type = default(string)) + { + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of action. Possible values include: 'DNAT', + /// 'SNAT' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleActionType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleActionType.cs new file mode 100644 index 000000000000..2da6217b5531 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleActionType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for FirewallPolicyNatRuleActionType. + /// + public static class FirewallPolicyNatRuleActionType + { + public const string DNAT = "DNAT"; + public const string SNAT = "SNAT"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs new file mode 100644 index 000000000000..18a86aa74551 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of the rule. + /// + public partial class FirewallPolicyRule + { + /// + /// Initializes a new instance of the FirewallPolicyRule class. + /// + public FirewallPolicyRule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyRule class. + /// + /// Name of the Rule + /// Priority of the Firewall Policy Rule + /// resource. + public FirewallPolicyRule(string name = default(string), int? priority = default(int?)) + { + Name = name; + Priority = priority; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the Rule + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets priority of the Firewall Policy Rule resource. + /// + [JsonProperty(PropertyName = "priority")] + public int? Priority { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Priority > 65000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000); + } + if (Priority < 100) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCondition.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCondition.cs new file mode 100644 index 000000000000..82e14173b0c8 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCondition.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of a rule. + /// + public partial class FirewallPolicyRuleCondition + { + /// + /// Initializes a new instance of the FirewallPolicyRuleCondition + /// class. + /// + public FirewallPolicyRuleCondition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyRuleCondition + /// class. + /// + /// Name of the rule condition. + /// Description of the rule + /// condition. + public FirewallPolicyRuleCondition(string name = default(string), string description = default(string)) + { + Name = name; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the rule condition. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets description of the rule condition. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocol.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocol.cs new file mode 100644 index 000000000000..a905bfc81aac --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocol.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of the application rule protocol. + /// + public partial class FirewallPolicyRuleConditionApplicationProtocol + { + /// + /// Initializes a new instance of the + /// FirewallPolicyRuleConditionApplicationProtocol class. + /// + public FirewallPolicyRuleConditionApplicationProtocol() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// FirewallPolicyRuleConditionApplicationProtocol class. + /// + /// Protocol type. Possible values include: + /// 'Http', 'Https' + /// Port number for the protocol, cannot be greater + /// than 64000. + public FirewallPolicyRuleConditionApplicationProtocol(string protocolType = default(string), int? port = default(int?)) + { + ProtocolType = protocolType; + Port = port; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets protocol type. Possible values include: 'Http', + /// 'Https' + /// + [JsonProperty(PropertyName = "protocolType")] + public string ProtocolType { get; set; } + + /// + /// Gets or sets port number for the protocol, cannot be greater than + /// 64000. + /// + [JsonProperty(PropertyName = "port")] + public int? Port { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Port > 64000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 64000); + } + if (Port < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocolType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocolType.cs new file mode 100644 index 000000000000..ac29df496813 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionApplicationProtocolType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for FirewallPolicyRuleConditionApplicationProtocolType. + /// + public static class FirewallPolicyRuleConditionApplicationProtocolType + { + public const string Http = "Http"; + public const string Https = "Https"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionNetworkProtocol.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionNetworkProtocol.cs new file mode 100644 index 000000000000..4a9a3c8608f1 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleConditionNetworkProtocol.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for FirewallPolicyRuleConditionNetworkProtocol. + /// + public static class FirewallPolicyRuleConditionNetworkProtocol + { + public const string TCP = "TCP"; + public const string UDP = "UDP"; + public const string Any = "Any"; + public const string ICMP = "ICMP"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs new file mode 100644 index 000000000000..8e3c08f2c325 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs @@ -0,0 +1,134 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Rule Group resource + /// + [Rest.Serialization.JsonTransformation] + public partial class FirewallPolicyRuleGroup : SubResource + { + /// + /// Initializes a new instance of the FirewallPolicyRuleGroup class. + /// + public FirewallPolicyRuleGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyRuleGroup class. + /// + /// Resource ID. + /// Priority of the Firewall Policy Rule Group + /// resource. + /// Group of Firewall Policy rules. + /// The provisioning state of the + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// Gets name of the resource that is unique within + /// a resource group. This name can be used to access the + /// resource. + /// Gets a unique read-only string that changes + /// whenever the resource is updated. + /// Rule Group type. + public FirewallPolicyRuleGroup(string id = default(string), int? priority = default(int?), IList rules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + : base(id) + { + Priority = priority; + Rules = rules; + ProvisioningState = provisioningState; + Name = name; + Etag = etag; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets priority of the Firewall Policy Rule Group resource. + /// + [JsonProperty(PropertyName = "properties.priority")] + public int? Priority { get; set; } + + /// + /// Gets or sets group of Firewall Policy rules. + /// + [JsonProperty(PropertyName = "properties.rules")] + public IList Rules { get; set; } + + /// + /// Gets or sets the provisioning state of the resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets name of the resource that is unique within a resource group. + /// This name can be used to access the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Gets rule Group type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Priority > 65000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000); + } + if (Priority < 100) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100); + } + if (Rules != null) + { + foreach (var element in Rules) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubIPAddresses.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubIPAddresses.cs new file mode 100644 index 000000000000..1816d1e9693a --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubIPAddresses.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// IP addresses associated with azure firewall. + /// + public partial class HubIPAddresses + { + /// + /// Initializes a new instance of the HubIPAddresses class. + /// + public HubIPAddresses() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HubIPAddresses class. + /// + /// List of Public IP addresses + /// associated with azure firewall. + /// Private IP Address associated with + /// azure firewall. + public HubIPAddresses(IList publicIPAddresses = default(IList), string privateIPAddress = default(string)) + { + PublicIPAddresses = publicIPAddresses; + PrivateIPAddress = privateIPAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of Public IP addresses associated with azure + /// firewall. + /// + [JsonProperty(PropertyName = "publicIPAddresses")] + public IList PublicIPAddresses { get; set; } + + /// + /// Gets or sets private IP Address associated with azure firewall. + /// + [JsonProperty(PropertyName = "privateIPAddress")] + public string PrivateIPAddress { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpAllocationMethod.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPAllocationMethod.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpAllocationMethod.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPAllocationMethod.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs new file mode 100644 index 000000000000..071d1a0b4869 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Rule condition of type network + /// + public partial class NetworkRuleCondition : FirewallPolicyRuleCondition + { + /// + /// Initializes a new instance of the NetworkRuleCondition class. + /// + public NetworkRuleCondition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkRuleCondition class. + /// + /// Name of the rule condition. + /// Description of the rule + /// condition. + /// Array of + /// FirewallPolicyRuleConditionNetworkProtocols. + /// List of source IP addresses for this + /// rule. + /// List of destination IP addresses + /// or Service Tags. + /// List of destination ports. + public NetworkRuleCondition(string name = default(string), string description = default(string), IList ipProtocols = default(IList), IList sourceAddresses = default(IList), IList destinationAddresses = default(IList), IList destinationPorts = default(IList)) + : base(name, description) + { + IpProtocols = ipProtocols; + SourceAddresses = sourceAddresses; + DestinationAddresses = destinationAddresses; + DestinationPorts = destinationPorts; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets array of FirewallPolicyRuleConditionNetworkProtocols. + /// + [JsonProperty(PropertyName = "ipProtocols")] + public IList IpProtocols { get; set; } + + /// + /// Gets or sets list of source IP addresses for this rule. + /// + [JsonProperty(PropertyName = "sourceAddresses")] + public IList SourceAddresses { get; set; } + + /// + /// Gets or sets list of destination IP addresses or Service Tags. + /// + [JsonProperty(PropertyName = "destinationAddresses")] + public IList DestinationAddresses { get; set; } + + /// + /// Gets or sets list of destination ports. + /// + [JsonProperty(PropertyName = "destinationPorts")] + public IList DestinationPorts { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs index a4722b4a17ff..abd9204f1dba 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs @@ -44,16 +44,16 @@ public PrivateEndpoint() /// Gets an array of references to the /// network interfaces created for this private endpoint. /// The provisioning state of the - /// private endpoint. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// private endpoint. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// A grouping of /// information about the connection to the remote resource. /// A grouping of /// information about the connection to the remote resource. Used when /// the network admin does not have access to approve connections to /// the remote resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public PrivateEndpoint(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), Subnet subnet = default(Subnet), IList networkInterfaces = default(IList), string provisioningState = default(string), IList privateLinkServiceConnections = default(IList), IList manualPrivateLinkServiceConnections = default(IList), string etag = default(string)) : base(id, name, type, location, tags) { @@ -86,11 +86,12 @@ public PrivateEndpoint() public IList NetworkInterfaces { get; private set; } /// - /// Gets the provisioning state of the private endpoint. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the private endpoint. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public string ProvisioningState { get; set; } /// /// Gets or sets a grouping of information about the connection to the @@ -108,8 +109,8 @@ public PrivateEndpoint() public IList ManualPrivateLinkServiceConnections { get; set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs index 42ee94474a58..db3bea582abb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs @@ -38,15 +38,24 @@ public PrivateEndpointConnection() /// A collection of /// information about the state of the connection between service /// consumer and provider. + /// The provisioning state of the + /// private endpoint connection. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - public PrivateEndpointConnection(string id = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string name = default(string)) + /// The resource type. + /// A unique read-only string that changes whenever + /// the resource is updated. + public PrivateEndpointConnection(string id = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string provisioningState = default(string), string name = default(string), string type = default(string), string etag = default(string)) : base(id) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; Name = name; + Type = type; + Etag = etag; CustomInit(); } @@ -68,6 +77,14 @@ public PrivateEndpointConnection() [JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")] public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + /// + /// Gets or sets the provisioning state of the private endpoint + /// connection. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + /// /// Gets or sets the name of the resource that is unique within a /// resource group. This name can be used to access the resource. @@ -75,5 +92,18 @@ public PrivateEndpointConnection() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs index a10cd7f2b052..57798274a2e3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs @@ -46,8 +46,8 @@ public PrivateLinkService() /// Gets an array of references to the /// network interfaces created for this private link service. /// The provisioning state of the - /// private link service. Possible values are: 'Updating', 'Succeeded', - /// and 'Failed'. + /// private link service. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// An array of list about /// connections to the private endpoint. /// The visibility list of the private link @@ -56,8 +56,8 @@ public PrivateLinkService() /// link service. /// The list of Fqdn. /// The alias of the private link service. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public PrivateLinkService(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList loadBalancerFrontendIpConfigurations = default(IList), IList ipConfigurations = default(IList), IList networkInterfaces = default(IList), string provisioningState = default(string), IList privateEndpointConnections = default(IList), PrivateLinkServicePropertiesVisibility visibility = default(PrivateLinkServicePropertiesVisibility), PrivateLinkServicePropertiesAutoApproval autoApproval = default(PrivateLinkServicePropertiesAutoApproval), IList fqdns = default(IList), string alias = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -101,11 +101,12 @@ public PrivateLinkService() public IList NetworkInterfaces { get; private set; } /// - /// Gets the provisioning state of the private link service. Possible - /// values are: 'Updating', 'Succeeded', and 'Failed'. + /// Gets or sets the provisioning state of the private link service. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public string ProvisioningState { get; set; } /// /// Gets or sets an array of list about connections to the private @@ -139,8 +140,8 @@ public PrivateLinkService() public string Alias { get; private set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs index 3474fac3646b..71dca0973e6c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs @@ -37,6 +37,9 @@ public PrivateLinkServiceConnection() /// class. /// /// Resource ID. + /// The provisioning state of the + /// private link service connection. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The resource id of private link /// service. /// The ID(s) of the group(s) obtained from the @@ -51,14 +54,20 @@ public PrivateLinkServiceConnection() /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - public PrivateLinkServiceConnection(string id = default(string), string privateLinkServiceId = default(string), IList groupIds = default(IList), string requestMessage = default(string), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string name = default(string)) + /// The resource type. + /// A unique read-only string that changes whenever + /// the resource is updated. + public PrivateLinkServiceConnection(string id = default(string), string provisioningState = default(string), string privateLinkServiceId = default(string), IList groupIds = default(IList), string requestMessage = default(string), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string name = default(string), string type = default(string), string etag = default(string)) : base(id) { + ProvisioningState = provisioningState; PrivateLinkServiceId = privateLinkServiceId; GroupIds = groupIds; RequestMessage = requestMessage; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; Name = name; + Type = type; + Etag = etag; CustomInit(); } @@ -67,6 +76,14 @@ public PrivateLinkServiceConnection() /// partial void CustomInit(); + /// + /// Gets or sets the provisioning state of the private link service + /// connection. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + /// /// Gets or sets the resource id of private link service. /// @@ -101,5 +118,18 @@ public PrivateLinkServiceConnection() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs index ce5697893094..0c3c7b5d410e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Network.Models /// The private link service ip configuration. /// [Rest.Serialization.JsonTransformation] - public partial class PrivateLinkServiceIpConfiguration + public partial class PrivateLinkServiceIpConfiguration : SubResource { /// /// Initializes a new instance of the PrivateLinkServiceIpConfiguration @@ -34,32 +34,39 @@ public PrivateLinkServiceIpConfiguration() /// Initializes a new instance of the PrivateLinkServiceIpConfiguration /// class. /// + /// Resource ID. /// The private IP address of the IP /// configuration. /// The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic' /// The reference of the subnet resource. - /// The reference of the public IP - /// resource. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// Whether the ip configuration is primary or + /// not. + /// The provisioning state of the + /// private link service ip configuration. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Available from Api-Version /// 2016-03-30 onwards, it represents whether the specific /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible /// values include: 'IPv4', 'IPv6' /// The name of private link service ip /// configuration. - public PrivateLinkServiceIpConfiguration(string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), string provisioningState = default(string), string privateIPAddressVersion = default(string), string name = default(string)) + /// A unique read-only string that changes whenever + /// the resource is updated. + /// The resource type. + public PrivateLinkServiceIpConfiguration(string id = default(string), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), bool? primary = default(bool?), string provisioningState = default(string), string privateIPAddressVersion = default(string), string name = default(string), string etag = default(string), string type = default(string)) + : base(id) { PrivateIPAddress = privateIPAddress; PrivateIPAllocationMethod = privateIPAllocationMethod; Subnet = subnet; - PublicIPAddress = publicIPAddress; + Primary = primary; ProvisioningState = provisioningState; PrivateIPAddressVersion = privateIPAddressVersion; Name = name; + Etag = etag; + Type = type; CustomInit(); } @@ -88,14 +95,15 @@ public PrivateLinkServiceIpConfiguration() public Subnet Subnet { get; set; } /// - /// Gets or sets the reference of the public IP resource. + /// Gets or sets whether the ip configuration is primary or not. /// - [JsonProperty(PropertyName = "properties.publicIPAddress")] - public PublicIPAddress PublicIPAddress { get; set; } + [JsonProperty(PropertyName = "properties.primary")] + public bool? Primary { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the private link service ip + /// configuration. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } @@ -114,5 +122,18 @@ public PrivateLinkServiceIpConfiguration() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddress.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddress.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs index dd298535e8ae..c484646758a7 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs @@ -49,6 +49,9 @@ public PublicIPPrefix() /// The allocated Prefix. /// The list of all referenced /// PublicIPAddresses. + /// The reference to + /// load balancer frontend IP configuration associated with the public + /// IP prefix. /// The resource GUID property of the public /// IP prefix resource. /// The provisioning state of the @@ -58,7 +61,7 @@ public PublicIPPrefix() /// the resource is updated. /// A list of availability zones denoting the IP /// allocated for the resource needs to come from. - public PublicIPPrefix(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), PublicIPPrefixSku sku = default(PublicIPPrefixSku), string publicIPAddressVersion = default(string), IList ipTags = default(IList), int? prefixLength = default(int?), string ipPrefix = default(string), IList publicIPAddresses = default(IList), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string), IList zones = default(IList)) + public PublicIPPrefix(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), PublicIPPrefixSku sku = default(PublicIPPrefixSku), string publicIPAddressVersion = default(string), IList ipTags = default(IList), int? prefixLength = default(int?), string ipPrefix = default(string), IList publicIPAddresses = default(IList), SubResource loadBalancerFrontendIpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string), IList zones = default(IList)) : base(id, name, type, location, tags) { Sku = sku; @@ -67,6 +70,7 @@ public PublicIPPrefix() PrefixLength = prefixLength; IpPrefix = ipPrefix; PublicIPAddresses = publicIPAddresses; + LoadBalancerFrontendIpConfiguration = loadBalancerFrontendIpConfiguration; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; Etag = etag; @@ -116,6 +120,13 @@ public PublicIPPrefix() [JsonProperty(PropertyName = "properties.publicIPAddresses")] public IList PublicIPAddresses { get; set; } + /// + /// Gets the reference to load balancer frontend IP configuration + /// associated with the public IP prefix. + /// + [JsonProperty(PropertyName = "properties.loadBalancerFrontendIpConfiguration")] + public SubResource LoadBalancerFrontendIpConfiguration { get; private set; } + /// /// Gets or sets the resource GUID property of the public IP prefix /// resource. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/UnprepareNetworkPoliciesRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/UnprepareNetworkPoliciesRequest.cs new file mode 100644 index 000000000000..74af81b0c4c5 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/UnprepareNetworkPoliciesRequest.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Details of UnprepareNetworkPolicies for Subnet. + /// + public partial class UnprepareNetworkPoliciesRequest + { + /// + /// Initializes a new instance of the UnprepareNetworkPoliciesRequest + /// class. + /// + public UnprepareNetworkPoliciesRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UnprepareNetworkPoliciesRequest + /// class. + /// + /// The name of the service for which subnet + /// is being unprepared for. + public UnprepareNetworkPoliciesRequest(string serviceName = default(string)) + { + ServiceName = serviceName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the service for which subnet is being + /// unprepared for. + /// + [JsonProperty(PropertyName = "serviceName")] + public string ServiceName { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs index 963252593e60..d2e079f690e0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs @@ -193,6 +193,16 @@ public partial class NetworkManagementClient : ServiceClient public virtual IExpressRouteLinksOperations ExpressRouteLinks { get; private set; } + /// + /// Gets the IFirewallPoliciesOperations. + /// + public virtual IFirewallPoliciesOperations FirewallPolicies { get; private set; } + + /// + /// Gets the IFirewallPolicyRuleGroupsOperations. + /// + public virtual IFirewallPolicyRuleGroupsOperations FirewallPolicyRuleGroups { get; private set; } + /// /// Gets the ILoadBalancersOperations. /// @@ -742,6 +752,8 @@ private void Initialize() ExpressRoutePortsLocations = new ExpressRoutePortsLocationsOperations(this); ExpressRoutePorts = new ExpressRoutePortsOperations(this); ExpressRouteLinks = new ExpressRouteLinksOperations(this); + FirewallPolicies = new FirewallPoliciesOperations(this); + FirewallPolicyRuleGroups = new FirewallPolicyRuleGroupsOperations(this); LoadBalancers = new LoadBalancersOperations(this); LoadBalancerBackendAddressPools = new LoadBalancerBackendAddressPoolsOperations(this); LoadBalancerFrontendIPConfigurations = new LoadBalancerFrontendIPConfigurationsOperations(this); @@ -829,6 +841,10 @@ private void Initialize() new Iso8601TimeSpanConverter() } }; + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("ruleType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("ruleType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("ruleConditionType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("ruleConditionType")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperationsExtensions.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperationsExtensions.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperationsExtensions.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs index c541ae2b9728..fadd92b8afbd 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs @@ -48,6 +48,8 @@ public static IEnumerable> ApiInfo_NetworkManageme new Tuple("Network", "ExpressRoutePorts", "2019-06-01"), new Tuple("Network", "ExpressRoutePortsLocations", "2019-06-01"), new Tuple("Network", "ExpressRouteServiceProviders", "2019-06-01"), + new Tuple("Network", "FirewallPolicies", "2019-06-01"), + new Tuple("Network", "FirewallPolicyRuleGroups", "2019-06-01"), new Tuple("Network", "HubVirtualNetworkConnections", "2019-06-01"), new Tuple("Network", "InboundNatRules", "2019-06-01"), new Tuple("Network", "LoadBalancerBackendAddressPools", "2019-06-01"), diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs index 6addc5e6580d..cb28c68ff4b4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs @@ -54,7 +54,10 @@ internal ServiceTagsOperations(NetworkManagementClient client) /// Gets a list of service tag information resources. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a filter + /// based on location, you will get the list of service tags with prefix + /// details across all regions but limited to the cloud that your subscription + /// belongs to). /// /// /// Headers that will be added to request. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs index d575231bde96..be01db34c7b1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs @@ -28,7 +28,10 @@ public static partial class ServiceTagsOperationsExtensions /// The operations group for this extension method. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a filter + /// based on location, you will get the list of service tags with prefix + /// details across all regions but limited to the cloud that your subscription + /// belongs to). /// public static ServiceTagsListResult List(this IServiceTagsOperations operations, string location) { @@ -42,7 +45,10 @@ public static ServiceTagsListResult List(this IServiceTagsOperations operations, /// The operations group for this extension method. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a filter + /// based on location, you will get the list of service tags with prefix + /// details across all regions but limited to the cloud that your subscription + /// belongs to). /// /// /// The cancellation token. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs index f4058762ffbb..ef6da3f0377a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs @@ -342,6 +342,34 @@ internal SubnetsOperations(NetworkManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task UnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Gets all subnets in a virtual network. /// @@ -1149,6 +1177,202 @@ internal SubnetsOperations(NetworkManagementClient client) return _result; } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// 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 BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualNetworkName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualNetworkName"); + } + if (subnetName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "subnetName"); + } + if (unprepareNetworkPoliciesRequestParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "unprepareNetworkPoliciesRequestParameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("virtualNetworkName", virtualNetworkName); + tracingParameters.Add("subnetName", subnetName); + tracingParameters.Add("unprepareNetworkPoliciesRequestParameters", unprepareNetworkPoliciesRequestParameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUnprepareNetworkPolicies", 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.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/UnprepareNetworkPolicies").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualNetworkName}", System.Uri.EscapeDataString(virtualNetworkName)); + _url = _url.Replace("{subnetName}", System.Uri.EscapeDataString(subnetName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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("POST"); + _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(unprepareNetworkPoliciesRequestParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(unprepareNetworkPoliciesRequestParameters, 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 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Gets all subnets in a virtual network. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs index 63b6c096651a..6c640a409b68 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs @@ -217,6 +217,55 @@ public static void PrepareNetworkPolicies(this ISubnetsOperations operations, st (await operations.PrepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, prepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + public static void UnprepareNetworkPolicies(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) + { + operations.UnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters).GetAwaiter().GetResult(); + } + + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// The cancellation token. + /// + public static async Task UnprepareNetworkPoliciesAsync(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.UnprepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Gets all subnets in a virtual network. /// @@ -401,6 +450,55 @@ public static void BeginPrepareNetworkPolicies(this ISubnetsOperations operation (await operations.BeginPrepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, prepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + public static void BeginUnprepareNetworkPolicies(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) + { + operations.BeginUnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters).GetAwaiter().GetResult(); + } + + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUnprepareNetworkPoliciesAsync(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Gets all subnets in a virtual network. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs index 2a076374d44e..e413c2494ac0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs @@ -1304,7 +1304,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs index 05167bd0592a..5fa0da25c916 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs @@ -1917,7 +1917,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperations.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperations.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperationsExtensions.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperationsExtensions.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperationsExtensions.cs From 2087bab98d7b5c5f89f2c2335366b11e058f11b6 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2019 02:22:58 +0000 Subject: [PATCH 07/24] Generated from d4f7403bd98ee407ae076d6316ebd044860476e1 (#48) Add json dataset --- .../src/Generated/Models/JsonDataset.cs | 120 ++++++++++++++++++ .../src/Generated/Models/JsonSink.cs | 97 ++++++++++++++ .../src/Generated/Models/JsonSource.cs | 77 +++++++++++ .../Generated/Models/JsonWriteFilePattern.cs | 22 ++++ .../src/Generated/Models/JsonWriteSettings.cs | 73 +++++++++++ 5 files changed, 389 insertions(+) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteFilePattern.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteSettings.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs new file mode 100644 index 000000000000..f0a13fc24ceb --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs @@ -0,0 +1,120 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Json dataset. + /// + [Newtonsoft.Json.JsonObject("Json")] + [Rest.Serialization.JsonTransformation] + public partial class JsonDataset : Dataset + { + /// + /// Initializes a new instance of the JsonDataset class. + /// + public JsonDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the JsonDataset class. + /// + /// Linked service reference. + /// The location of the json data + /// storage. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The code page name of the preferred + /// encoding. If not specified, the default value is UTF-8, unless BOM + /// denotes another Unicode encoding. Refer to the name column of the + /// table in the following link to set supported values: + /// https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: + /// string (or Expression with resultType string). + /// The data compression method used for the + /// json dataset. + public JsonDataset(LinkedServiceReference linkedServiceName, DatasetLocation location, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object encodingName = default(object), DatasetCompression compression = default(DatasetCompression)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + Location = location; + EncodingName = encodingName; + Compression = compression; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location of the json data storage. + /// + [JsonProperty(PropertyName = "typeProperties.location")] + public DatasetLocation Location { get; set; } + + /// + /// Gets or sets the code page name of the preferred encoding. If not + /// specified, the default value is UTF-8, unless BOM denotes another + /// Unicode encoding. Refer to the name column of the table in the + /// following link to set supported values: + /// https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.encodingName")] + public object EncodingName { get; set; } + + /// + /// Gets or sets the data compression method used for the json dataset. + /// + [JsonProperty(PropertyName = "typeProperties.compression")] + public DatasetCompression Compression { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Location != null) + { + Location.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs new file mode 100644 index 000000000000..ac94b3be6d3e --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs @@ -0,0 +1,97 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Json sink. + /// + public partial class JsonSink : CopySink + { + /// + /// Initializes a new instance of the JsonSink class. + /// + public JsonSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JsonSink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + /// Json store settings. + /// Json format settings. + public JsonSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), JsonWriteSettings formatSettings = default(JsonWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + { + StoreSettings = storeSettings; + FormatSettings = formatSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets json store settings. + /// + [JsonProperty(PropertyName = "storeSettings")] + public StoreWriteSettings StoreSettings { get; set; } + + /// + /// Gets or sets json format settings. + /// + [JsonProperty(PropertyName = "formatSettings")] + public JsonWriteSettings FormatSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + if (FormatSettings != null) + { + FormatSettings.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSource.cs new file mode 100644 index 000000000000..2732f3e4e69d --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSource.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Json source. + /// + public partial class JsonSource : CopySource + { + /// + /// Initializes a new instance of the JsonSource class. + /// + public JsonSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JsonSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Json store settings. + public JsonSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), StoreReadSettings storeSettings = default(StoreReadSettings)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + StoreSettings = storeSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets json store settings. + /// + [JsonProperty(PropertyName = "storeSettings")] + public StoreReadSettings StoreSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteFilePattern.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteFilePattern.cs new file mode 100644 index 000000000000..124f33ec1a7f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteFilePattern.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for JsonWriteFilePattern. + /// + public static class JsonWriteFilePattern + { + public const string SetOfObjects = "setOfObjects"; + public const string ArrayOfObjects = "arrayOfObjects"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteSettings.cs new file mode 100644 index 000000000000..23b2cb664523 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonWriteSettings.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Json write settings. + /// + public partial class JsonWriteSettings : FormatWriteSettings + { + /// + /// Initializes a new instance of the JsonWriteSettings class. + /// + public JsonWriteSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JsonWriteSettings class. + /// + /// The write setting type. + /// Unmatched properties from the + /// message are deserialized this collection + /// File pattern of JSON. This setting + /// controls the way a collection of JSON objects will be treated. The + /// default value is 'setOfObjects'. It is case-sensitive. Possible + /// values include: 'setOfObjects', 'arrayOfObjects' + public JsonWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), string filePattern = default(string)) + : base(type, additionalProperties) + { + FilePattern = filePattern; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets file pattern of JSON. This setting controls the way a + /// collection of JSON objects will be treated. The default value is + /// 'setOfObjects'. It is case-sensitive. Possible values include: + /// 'setOfObjects', 'arrayOfObjects' + /// + [JsonProperty(PropertyName = "filePattern")] + public string FilePattern { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} From fe4e463e2242201f71fca0272af29f4f1e61eed4 Mon Sep 17 00:00:00 2001 From: Anton Evseev Date: Wed, 14 Aug 2019 19:26:49 -0700 Subject: [PATCH 08/24] Re-generated Network SDK (#7295) * Re-generated Network SDK * Update change log --- eng/mgmt/mgmtmetadata/network_resource-manager.txt | 14 ++++++++++++++ .../Generated/SdkInfo_NetworkManagementClient.cs | 11 +++++++++++ .../src/Microsoft.Azure.Management.Network.csproj | 10 ++++++---- .../src/Properties/AssemblyInfo.cs | 2 +- 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 eng/mgmt/mgmtmetadata/network_resource-manager.txt diff --git a/eng/mgmt/mgmtmetadata/network_resource-manager.txt b/eng/mgmt/mgmtmetadata/network_resource-manager.txt new file mode 100644 index 000000000000..39033d9b06a6 --- /dev/null +++ b/eng/mgmt/mgmtmetadata/network_resource-manager.txt @@ -0,0 +1,14 @@ +Installing AutoRest version: latest +AutoRest installed successfully. +Commencing code generation +Generating CSharp code +Executing AutoRest command +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\Projects\azure-sdk-for-net\sdk +2019-08-14 17:37:44 UTC +Azure-rest-api-specs repository information +GitHub fork: Azure +Branch: master +Commit: 9dacca31bc76fc9cc1f59ee62ed1ab1c8f0d61c6 +AutoRest information +Requested version: latest +Bootstrapper version: autorest@2.0.4283 diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs index fadd92b8afbd..19fcffb4a449 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs @@ -108,5 +108,16 @@ public static IEnumerable> ApiInfo_NetworkManageme }.AsEnumerable(); } } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "latest"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\Projects\\azure-sdk-for-net\\sdk"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "9dacca31bc76fc9cc1f59ee62ed1ab1c8f0d61c6"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section } } + diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj b/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj index 28171ec20b98..504d422bdcb8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj @@ -7,13 +7,15 @@ Microsoft.Azure.Management.Network Provides management capabilities for Network services. Microsoft.Azure.Management.Network - 19.13.0-preview + 19.14.0-preview Microsoft Azure Network management;Network;Network management; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs index 8be0898f1ccc..3e75b9bc9c30 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ [assembly: AssemblyDescription("Provides Microsoft Azure Network management functions for managing the Microsoft Azure Network service.")] [assembly: AssemblyVersion("19.5.0.0")] -[assembly: AssemblyFileVersion("19.13.0.0")] +[assembly: AssemblyFileVersion("19.14.0.0")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] From 2fe668492232c1ad953d910382cbf9c25497a7cb Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2019 03:36:50 +0000 Subject: [PATCH 09/24] Generated from ae379484a551ff71b6e2d40bb75ab39f77fbeecb (#70) Update readme.java.md for 2019_06 --- .../src/Generated/AgentPoolsOperations.cs | 465 +++++++++++++++++- .../AgentPoolsOperationsExtensions.cs | 106 ++++ .../Generated/ContainerServicesOperations.cs | 2 +- .../src/Generated/IAgentPoolsOperations.cs | 63 +++ .../Generated/ManagedClustersOperations.cs | 24 +- .../src/Generated/Models/AgentPool.cs | 45 +- .../Models/AgentPoolAvailableVersions.cs | 83 ++++ ...VersionsPropertiesAgentPoolVersionsItem.cs | 70 +++ .../Models/AgentPoolUpgradeProfile.cs | 120 +++++ ...oolUpgradeProfilePropertiesUpgradesItem.cs | 60 +++ .../Models/ContainerServiceNetworkProfile.cs | 15 +- .../src/Generated/Models/ManagedCluster.cs | 15 +- .../ManagedClusterAPIServerAccessProfile.cs | 66 +++ .../Models/ManagedClusterAgentPoolProfile.cs | 14 +- ...anagedClusterAgentPoolProfileProperties.cs | 45 +- .../ManagedClusterLoadBalancerProfile.cs | 100 ++++ ...erLoadBalancerProfileManagedOutboundIPs.cs | 75 +++ ...erLoadBalancerProfileOutboundIPPrefixes.cs | 56 +++ ...edClusterLoadBalancerProfileOutboundIPs.cs | 55 +++ .../src/Generated/Models/ResourceReference.cs | 51 ++ .../Models/ScaleSetEvictionPolicy.cs | 22 + .../src/Generated/Models/ScaleSetPriority.cs | 22 + .../src/Generated/Operations.cs | 2 +- .../SdkInfo_ContainerServiceClient.cs | 8 +- 24 files changed, 1549 insertions(+), 35 deletions(-) create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfile.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfilePropertiesUpgradesItem.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ResourceReference.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetEvictionPolicy.cs create mode 100644 sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetPriority.cs diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs index 50bf7e4b6b92..1d911abb78e4 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs @@ -120,7 +120,7 @@ internal AgentPoolsOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal AgentPoolsOperations(ContainerServiceClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "agentPoolName"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -557,6 +557,463 @@ internal AgentPoolsOperations(ContainerServiceClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Gets upgrade profile for an agent pool. + /// + /// + /// Gets the details of the upgrade profile for an agent pool with a specified + /// resource group and managed cluster name. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + /// + /// 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> GetUpgradeProfileWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (resourceName != null) + { + if (resourceName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceName", 63); + } + if (resourceName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceName, "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); + } + } + if (agentPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "agentPoolName"); + } + string apiVersion = "2019-08-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("agentPoolName", agentPoolName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetUpgradeProfile", 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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{agentPoolName}", System.Uri.EscapeDataString(agentPoolName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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; + } + + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + /// + /// 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> GetAvailableAgentPoolVersionsWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (resourceName != null) + { + if (resourceName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceName", 63); + } + if (resourceName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceName, "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); + } + } + if (agentPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "agentPoolName"); + } + string apiVersion = "2019-08-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("agentPoolName", agentPoolName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAvailableAgentPoolVersions", 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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/availableAgentPoolVersions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{agentPoolName}", System.Uri.EscapeDataString(agentPoolName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(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; + } + /// /// Creates or updates an agent pool. /// @@ -644,7 +1101,7 @@ internal AgentPoolsOperations(ContainerServiceClient client) { parameters.Validate(); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -894,7 +1351,7 @@ internal AgentPoolsOperations(ContainerServiceClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "agentPoolName"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs index 333bc9802a1a..e9bab4e54b14 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs @@ -228,6 +228,112 @@ public static void Delete(this IAgentPoolsOperations operations, string resource (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, agentPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Gets upgrade profile for an agent pool. + /// + /// + /// Gets the details of the upgrade profile for an agent pool with a specified + /// resource group and managed cluster name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + public static AgentPoolUpgradeProfile GetUpgradeProfile(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName) + { + return operations.GetUpgradeProfileAsync(resourceGroupName, resourceName, agentPoolName).GetAwaiter().GetResult(); + } + + /// + /// Gets upgrade profile for an agent pool. + /// + /// + /// Gets the details of the upgrade profile for an agent pool with a specified + /// resource group and managed cluster name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + /// + /// The cancellation token. + /// + public static async Task GetUpgradeProfileAsync(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetUpgradeProfileWithHttpMessagesAsync(resourceGroupName, resourceName, agentPoolName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + public static AgentPoolAvailableVersions GetAvailableAgentPoolVersions(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName) + { + return operations.GetAvailableAgentPoolVersionsAsync(resourceGroupName, resourceName, agentPoolName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + /// + /// The cancellation token. + /// + public static async Task GetAvailableAgentPoolVersionsAsync(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAvailableAgentPoolVersionsWithHttpMessagesAsync(resourceGroupName, resourceName, agentPoolName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates or updates an agent pool. /// diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs index b8ec9621329d..564aab684620 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs @@ -735,7 +735,7 @@ internal ContainerServicesOperations(ContainerServiceClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "location"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs index fe31c66be91b..e496ec668ace 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs @@ -148,6 +148,69 @@ public partial interface IAgentPoolsOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets upgrade profile for an agent pool. + /// + /// + /// Gets the details of the upgrade profile for an agent pool with a + /// specified resource group and managed cluster name. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + /// + /// 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> GetUpgradeProfileWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// Gets a list of supported versions for the specified agent pool. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the managed cluster resource. + /// + /// + /// The name of the agent pool. + /// + /// + /// 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> GetAvailableAgentPoolVersionsWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates or updates an agent pool. /// /// diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs index b42496c1c241..f4c6fb41f833 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs @@ -84,7 +84,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -278,7 +278,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -496,7 +496,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -723,7 +723,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "roleName"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -945,7 +945,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1165,7 +1165,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1385,7 +1385,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1756,7 +1756,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) { parameters.Validate(); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2003,7 +2003,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; TagsObject parameters = new TagsObject(); if (tags != null) { @@ -2231,7 +2231,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"); } } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2441,7 +2441,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) { parameters.Validate(); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2658,7 +2658,7 @@ internal ManagedClustersOperations(ContainerServiceClient client) { parameters.Validate(); } - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs index 62d800ddd453..17ca5dc61071 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs @@ -123,7 +123,17 @@ public AgentPool() /// provisioning state, which only appears in the response. /// (PREVIEW) Availability zones for /// nodes. Must use VirtualMachineScaleSets AgentPoolType. - public AgentPool(int count, string vmSize, string id = default(string), string name = default(string), string type = default(string), int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string agentPoolType = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList)) + /// Enable public IP for nodes + /// ScaleSetPriority to be used to + /// specify virtual machine scale set priority. Default to regular. + /// Possible values include: 'Low', 'Regular' + /// ScaleSetEvictionPolicy to be + /// used to specify eviction policy for low priority virtual machine + /// scale set. Default to Delete. Possible values include: 'Delete', + /// 'Deallocate' + /// Taints added to new nodes during node pool + /// create and scale. For example, key=value:NoSchedule. + public AgentPool(int count, string vmSize, string id = default(string), string name = default(string), string type = default(string), int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string agentPoolType = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), IList nodeTaints = default(IList)) : base(id, name, type) { Count = count; @@ -139,6 +149,10 @@ public AgentPool() OrchestratorVersion = orchestratorVersion; ProvisioningState = provisioningState; AvailabilityZones = availabilityZones; + EnableNodePublicIP = enableNodePublicIP; + ScaleSetPriority = scaleSetPriority; + ScaleSetEvictionPolicy = scaleSetEvictionPolicy; + NodeTaints = nodeTaints; CustomInit(); } @@ -291,6 +305,35 @@ public AgentPool() [JsonProperty(PropertyName = "properties.availabilityZones")] public IList AvailabilityZones { get; set; } + /// + /// Gets or sets enable public IP for nodes + /// + [JsonProperty(PropertyName = "properties.enableNodePublicIP")] + public bool? EnableNodePublicIP { get; set; } + + /// + /// Gets or sets scaleSetPriority to be used to specify virtual machine + /// scale set priority. Default to regular. Possible values include: + /// 'Low', 'Regular' + /// + [JsonProperty(PropertyName = "properties.scaleSetPriority")] + public string ScaleSetPriority { get; set; } + + /// + /// Gets or sets scaleSetEvictionPolicy to be used to specify eviction + /// policy for low priority virtual machine scale set. Default to + /// Delete. Possible values include: 'Delete', 'Deallocate' + /// + [JsonProperty(PropertyName = "properties.scaleSetEvictionPolicy")] + public string ScaleSetEvictionPolicy { get; set; } + + /// + /// Gets or sets taints added to new nodes during node pool create and + /// scale. For example, key=value:NoSchedule. + /// + [JsonProperty(PropertyName = "properties.nodeTaints")] + public IList NodeTaints { get; set; } + /// /// Validate the object. /// diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs new file mode 100644 index 000000000000..aef063574593 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The list of available versions for an agent pool. + /// + [Rest.Serialization.JsonTransformation] + public partial class AgentPoolAvailableVersions + { + /// + /// Initializes a new instance of the AgentPoolAvailableVersions class. + /// + public AgentPoolAvailableVersions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AgentPoolAvailableVersions class. + /// + /// Id of the agent pool available versions. + /// Name of the agent pool available + /// versions. + /// Type of the agent pool available + /// versions. + /// List of versions available for + /// agent pool. + public AgentPoolAvailableVersions(string id = default(string), string name = default(string), string type = default(string), IList agentPoolVersions = default(IList)) + { + Id = id; + Name = name; + Type = type; + AgentPoolVersions = agentPoolVersions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets id of the agent pool available versions. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets name of the agent pool available versions. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets type of the agent pool available versions. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets list of versions available for agent pool. + /// + [JsonProperty(PropertyName = "properties.agentPoolVersions")] + public IList AgentPoolVersions { get; set; } + + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.cs new file mode 100644 index 000000000000..8642c1dbda4c --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem + { + /// + /// Initializes a new instance of the + /// AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem class. + /// + public AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem class. + /// + /// Whether this version is the default + /// agent pool version. + /// Kubernetes version (major, minor, + /// patch). + /// Whether Kubernetes version is currently in + /// preview. + public AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem(bool? defaultProperty = default(bool?), string kubernetesVersion = default(string), bool? isPreview = default(bool?)) + { + DefaultProperty = defaultProperty; + KubernetesVersion = kubernetesVersion; + IsPreview = isPreview; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets whether this version is the default agent pool + /// version. + /// + [JsonProperty(PropertyName = "default")] + public bool? DefaultProperty { get; set; } + + /// + /// Gets or sets kubernetes version (major, minor, patch). + /// + [JsonProperty(PropertyName = "kubernetesVersion")] + public string KubernetesVersion { get; set; } + + /// + /// Gets or sets whether Kubernetes version is currently in preview. + /// + [JsonProperty(PropertyName = "isPreview")] + public bool? IsPreview { get; set; } + + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfile.cs new file mode 100644 index 000000000000..7e876988de79 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfile.cs @@ -0,0 +1,120 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The list of available upgrades for an agent pool. + /// + [Rest.Serialization.JsonTransformation] + public partial class AgentPoolUpgradeProfile + { + /// + /// Initializes a new instance of the AgentPoolUpgradeProfile class. + /// + public AgentPoolUpgradeProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AgentPoolUpgradeProfile class. + /// + /// Kubernetes version (major, minor, + /// patch). + /// OsType to be used to specify os type. Choose + /// from Linux and Windows. Default to Linux. Possible values include: + /// 'Linux', 'Windows' + /// Id of the agent pool upgrade profile. + /// Name of the agent pool upgrade profile. + /// Type of the agent pool upgrade profile. + /// List of orchestrator types and versions + /// available for upgrade. + public AgentPoolUpgradeProfile(string kubernetesVersion, string osType, string id = default(string), string name = default(string), string type = default(string), IList upgrades = default(IList)) + { + Id = id; + Name = name; + Type = type; + KubernetesVersion = kubernetesVersion; + OsType = osType; + Upgrades = upgrades; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets id of the agent pool upgrade profile. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets name of the agent pool upgrade profile. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets type of the agent pool upgrade profile. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets kubernetes version (major, minor, patch). + /// + [JsonProperty(PropertyName = "properties.kubernetesVersion")] + public string KubernetesVersion { get; set; } + + /// + /// Gets or sets osType to be used to specify os type. Choose from + /// Linux and Windows. Default to Linux. Possible values include: + /// 'Linux', 'Windows' + /// + [JsonProperty(PropertyName = "properties.osType")] + public string OsType { get; set; } + + /// + /// Gets or sets list of orchestrator types and versions available for + /// upgrade. + /// + [JsonProperty(PropertyName = "properties.upgrades")] + public IList Upgrades { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (KubernetesVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "KubernetesVersion"); + } + if (OsType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "OsType"); + } + } + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfilePropertiesUpgradesItem.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfilePropertiesUpgradesItem.cs new file mode 100644 index 000000000000..e449e974e445 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfilePropertiesUpgradesItem.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class AgentPoolUpgradeProfilePropertiesUpgradesItem + { + /// + /// Initializes a new instance of the + /// AgentPoolUpgradeProfilePropertiesUpgradesItem class. + /// + public AgentPoolUpgradeProfilePropertiesUpgradesItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// AgentPoolUpgradeProfilePropertiesUpgradesItem class. + /// + /// Kubernetes version (major, minor, + /// patch). + /// Whether Kubernetes version is currently in + /// preview. + public AgentPoolUpgradeProfilePropertiesUpgradesItem(string kubernetesVersion = default(string), bool? isPreview = default(bool?)) + { + KubernetesVersion = kubernetesVersion; + IsPreview = isPreview; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets kubernetes version (major, minor, patch). + /// + [JsonProperty(PropertyName = "kubernetesVersion")] + public string KubernetesVersion { get; set; } + + /// + /// Gets or sets whether Kubernetes version is currently in preview. + /// + [JsonProperty(PropertyName = "isPreview")] + public bool? IsPreview { get; set; } + + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs index 311110d17c1a..0d1e3604982b 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs @@ -51,7 +51,9 @@ public ContainerServiceNetworkProfile() /// ranges or the Kubernetes service address range. /// The load balancer sku for the managed /// cluster. Possible values include: 'standard', 'basic' - public ContainerServiceNetworkProfile(string networkPlugin = default(string), string networkPolicy = default(string), string podCidr = default(string), string serviceCidr = default(string), string dnsServiceIP = default(string), string dockerBridgeCidr = default(string), string loadBalancerSku = default(string)) + /// Profile of the cluster load + /// balancer. + public ContainerServiceNetworkProfile(string networkPlugin = default(string), string networkPolicy = default(string), string podCidr = default(string), string serviceCidr = default(string), string dnsServiceIP = default(string), string dockerBridgeCidr = default(string), string loadBalancerSku = default(string), ManagedClusterLoadBalancerProfile loadBalancerProfile = default(ManagedClusterLoadBalancerProfile)) { NetworkPlugin = networkPlugin; NetworkPolicy = networkPolicy; @@ -60,6 +62,7 @@ public ContainerServiceNetworkProfile() DnsServiceIP = dnsServiceIP; DockerBridgeCidr = dockerBridgeCidr; LoadBalancerSku = loadBalancerSku; + LoadBalancerProfile = loadBalancerProfile; CustomInit(); } @@ -119,6 +122,12 @@ public ContainerServiceNetworkProfile() [JsonProperty(PropertyName = "loadBalancerSku")] public string LoadBalancerSku { get; set; } + /// + /// Gets or sets profile of the cluster load balancer. + /// + [JsonProperty(PropertyName = "loadBalancerProfile")] + public ManagedClusterLoadBalancerProfile LoadBalancerProfile { get; set; } + /// /// Validate the object. /// @@ -155,6 +164,10 @@ public virtual void Validate() throw new ValidationException(ValidationRules.Pattern, "DockerBridgeCidr", "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$"); } } + if (LoadBalancerProfile != null) + { + LoadBalancerProfile.Validate(); + } } } } diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs index 7a4181186b42..7fa8fc43785a 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs @@ -69,11 +69,11 @@ public ManagedCluster() /// configuration. /// Profile of Azure Active Directory /// configuration. - /// (PREVIEW) Authorized IP - /// Ranges to kubernetes API server. + /// Access profile for managed + /// cluster API server. /// The identity of the managed cluster, if /// configured. - public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), int? maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdn = default(string), IList agentPoolProfiles = default(IList), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary addonProfiles = default(IDictionary), string nodeResourceGroup = default(string), bool? enableRBAC = default(bool?), bool? enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), IList apiServerAuthorizedIPRanges = default(IList), ManagedClusterIdentity identity = default(ManagedClusterIdentity)) + public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), int? maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdn = default(string), IList agentPoolProfiles = default(IList), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary addonProfiles = default(IDictionary), string nodeResourceGroup = default(string), bool? enableRBAC = default(bool?), bool? enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), ManagedClusterAPIServerAccessProfile apiServerAccessProfile = default(ManagedClusterAPIServerAccessProfile), ManagedClusterIdentity identity = default(ManagedClusterIdentity)) : base(location, id, name, type, tags) { ProvisioningState = provisioningState; @@ -91,7 +91,7 @@ public ManagedCluster() EnablePodSecurityPolicy = enablePodSecurityPolicy; NetworkProfile = networkProfile; AadProfile = aadProfile; - ApiServerAuthorizedIPRanges = apiServerAuthorizedIPRanges; + ApiServerAccessProfile = apiServerAccessProfile; Identity = identity; CustomInit(); } @@ -201,11 +201,10 @@ public ManagedCluster() public ManagedClusterAADProfile AadProfile { get; set; } /// - /// Gets or sets (PREVIEW) Authorized IP Ranges to kubernetes API - /// server. + /// Gets or sets access profile for managed cluster API server. /// - [JsonProperty(PropertyName = "properties.apiServerAuthorizedIPRanges")] - public IList ApiServerAuthorizedIPRanges { get; set; } + [JsonProperty(PropertyName = "properties.apiServerAccessProfile")] + public ManagedClusterAPIServerAccessProfile ApiServerAccessProfile { get; set; } /// /// Gets or sets the identity of the managed cluster, if configured. diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs new file mode 100644 index 000000000000..a950f33365d1 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Access profile for managed cluster API server. + /// + public partial class ManagedClusterAPIServerAccessProfile + { + /// + /// Initializes a new instance of the + /// ManagedClusterAPIServerAccessProfile class. + /// + public ManagedClusterAPIServerAccessProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ManagedClusterAPIServerAccessProfile class. + /// + /// Authorized IP Ranges to kubernetes + /// API server. + /// Whether to create the cluster as + /// a private cluster or not. + public ManagedClusterAPIServerAccessProfile(IList authorizedIPRanges = default(IList), bool? enablePrivateCluster = default(bool?)) + { + AuthorizedIPRanges = authorizedIPRanges; + EnablePrivateCluster = enablePrivateCluster; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets authorized IP Ranges to kubernetes API server. + /// + [JsonProperty(PropertyName = "authorizedIPRanges")] + public IList AuthorizedIPRanges { get; set; } + + /// + /// Gets or sets whether to create the cluster as a private cluster or + /// not. + /// + [JsonProperty(PropertyName = "enablePrivateCluster")] + public bool? EnablePrivateCluster { get; set; } + + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs index 357545428fe3..107edfb3be3d 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs @@ -120,8 +120,18 @@ public ManagedClusterAgentPoolProfile() /// provisioning state, which only appears in the response. /// (PREVIEW) Availability zones for /// nodes. Must use VirtualMachineScaleSets AgentPoolType. - public ManagedClusterAgentPoolProfile(int count, string vmSize, string name, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList)) - : base(count, vmSize, osDiskSizeGB, vnetSubnetID, maxPods, osType, maxCount, minCount, enableAutoScaling, type, orchestratorVersion, provisioningState, availabilityZones) + /// Enable public IP for nodes + /// ScaleSetPriority to be used to + /// specify virtual machine scale set priority. Default to regular. + /// Possible values include: 'Low', 'Regular' + /// ScaleSetEvictionPolicy to be + /// used to specify eviction policy for low priority virtual machine + /// scale set. Default to Delete. Possible values include: 'Delete', + /// 'Deallocate' + /// Taints added to new nodes during node pool + /// create and scale. For example, key=value:NoSchedule. + public ManagedClusterAgentPoolProfile(int count, string vmSize, string name, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), IList nodeTaints = default(IList)) + : base(count, vmSize, osDiskSizeGB, vnetSubnetID, maxPods, osType, maxCount, minCount, enableAutoScaling, type, orchestratorVersion, provisioningState, availabilityZones, enableNodePublicIP, scaleSetPriority, scaleSetEvictionPolicy, nodeTaints) { Name = name; CustomInit(); diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs index 6e86f0cc9df6..a99b90999b08 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs @@ -118,7 +118,17 @@ public ManagedClusterAgentPoolProfileProperties() /// provisioning state, which only appears in the response. /// (PREVIEW) Availability zones for /// nodes. Must use VirtualMachineScaleSets AgentPoolType. - public ManagedClusterAgentPoolProfileProperties(int count, string vmSize, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList)) + /// Enable public IP for nodes + /// ScaleSetPriority to be used to + /// specify virtual machine scale set priority. Default to regular. + /// Possible values include: 'Low', 'Regular' + /// ScaleSetEvictionPolicy to be + /// used to specify eviction policy for low priority virtual machine + /// scale set. Default to Delete. Possible values include: 'Delete', + /// 'Deallocate' + /// Taints added to new nodes during node pool + /// create and scale. For example, key=value:NoSchedule. + public ManagedClusterAgentPoolProfileProperties(int count, string vmSize, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), IList nodeTaints = default(IList)) { Count = count; VmSize = vmSize; @@ -133,6 +143,10 @@ public ManagedClusterAgentPoolProfileProperties() OrchestratorVersion = orchestratorVersion; ProvisioningState = provisioningState; AvailabilityZones = availabilityZones; + EnableNodePublicIP = enableNodePublicIP; + ScaleSetPriority = scaleSetPriority; + ScaleSetEvictionPolicy = scaleSetEvictionPolicy; + NodeTaints = nodeTaints; CustomInit(); } @@ -285,6 +299,35 @@ public ManagedClusterAgentPoolProfileProperties() [JsonProperty(PropertyName = "availabilityZones")] public IList AvailabilityZones { get; set; } + /// + /// Gets or sets enable public IP for nodes + /// + [JsonProperty(PropertyName = "enableNodePublicIP")] + public bool? EnableNodePublicIP { get; set; } + + /// + /// Gets or sets scaleSetPriority to be used to specify virtual machine + /// scale set priority. Default to regular. Possible values include: + /// 'Low', 'Regular' + /// + [JsonProperty(PropertyName = "scaleSetPriority")] + public string ScaleSetPriority { get; set; } + + /// + /// Gets or sets scaleSetEvictionPolicy to be used to specify eviction + /// policy for low priority virtual machine scale set. Default to + /// Delete. Possible values include: 'Delete', 'Deallocate' + /// + [JsonProperty(PropertyName = "scaleSetEvictionPolicy")] + public string ScaleSetEvictionPolicy { get; set; } + + /// + /// Gets or sets taints added to new nodes during node pool create and + /// scale. For example, key=value:NoSchedule. + /// + [JsonProperty(PropertyName = "nodeTaints")] + public IList NodeTaints { get; set; } + /// /// Validate the object. /// diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs new file mode 100644 index 000000000000..2c9728a8cd0d --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs @@ -0,0 +1,100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Profile of the managed cluster load balancer + /// + public partial class ManagedClusterLoadBalancerProfile + { + /// + /// Initializes a new instance of the ManagedClusterLoadBalancerProfile + /// class. + /// + public ManagedClusterLoadBalancerProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedClusterLoadBalancerProfile + /// class. + /// + /// Desired managed outbound IPs for + /// the cluster load balancer. + /// Desired outbound IP Prefix + /// resources for the cluster load balancer. + /// Desired outbound IP resources for the + /// cluster load balancer. + /// The effective outbound IP + /// resources of the cluster load balancer. + public ManagedClusterLoadBalancerProfile(ManagedClusterLoadBalancerProfileManagedOutboundIPs managedOutboundIPs = default(ManagedClusterLoadBalancerProfileManagedOutboundIPs), ManagedClusterLoadBalancerProfileOutboundIPPrefixes outboundIPPrefixes = default(ManagedClusterLoadBalancerProfileOutboundIPPrefixes), ManagedClusterLoadBalancerProfileOutboundIPs outboundIPs = default(ManagedClusterLoadBalancerProfileOutboundIPs), IList effectiveOutboundIPs = default(IList)) + { + ManagedOutboundIPs = managedOutboundIPs; + OutboundIPPrefixes = outboundIPPrefixes; + OutboundIPs = outboundIPs; + EffectiveOutboundIPs = effectiveOutboundIPs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets desired managed outbound IPs for the cluster load + /// balancer. + /// + [JsonProperty(PropertyName = "managedOutboundIPs")] + public ManagedClusterLoadBalancerProfileManagedOutboundIPs ManagedOutboundIPs { get; set; } + + /// + /// Gets or sets desired outbound IP Prefix resources for the cluster + /// load balancer. + /// + [JsonProperty(PropertyName = "outboundIPPrefixes")] + public ManagedClusterLoadBalancerProfileOutboundIPPrefixes OutboundIPPrefixes { get; set; } + + /// + /// Gets or sets desired outbound IP resources for the cluster load + /// balancer. + /// + [JsonProperty(PropertyName = "outboundIPs")] + public ManagedClusterLoadBalancerProfileOutboundIPs OutboundIPs { get; set; } + + /// + /// Gets or sets the effective outbound IP resources of the cluster + /// load balancer. + /// + [JsonProperty(PropertyName = "effectiveOutboundIPs")] + public IList EffectiveOutboundIPs { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ManagedOutboundIPs != null) + { + ManagedOutboundIPs.Validate(); + } + } + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs new file mode 100644 index 000000000000..d72f7f793e37 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Desired managed outbound IPs for the cluster load balancer. + /// + public partial class ManagedClusterLoadBalancerProfileManagedOutboundIPs + { + /// + /// Initializes a new instance of the + /// ManagedClusterLoadBalancerProfileManagedOutboundIPs class. + /// + public ManagedClusterLoadBalancerProfileManagedOutboundIPs() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ManagedClusterLoadBalancerProfileManagedOutboundIPs class. + /// + /// Desired number of outbound IP created/managed + /// by Azure for the cluster load balancer. Allowed values must be in + /// the range of 1 to 100 (inclusive). The default value is 1. + public ManagedClusterLoadBalancerProfileManagedOutboundIPs(int? count = default(int?)) + { + Count = count; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets desired number of outbound IP created/managed by Azure + /// for the cluster load balancer. Allowed values must be in the range + /// of 1 to 100 (inclusive). The default value is 1. + /// + [JsonProperty(PropertyName = "count")] + public int? Count { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Count > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Count", 100); + } + if (Count < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Count", 1); + } + } + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs new file mode 100644 index 000000000000..e4220de6974b --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Desired outbound IP Prefix resources for the cluster load balancer. + /// + public partial class ManagedClusterLoadBalancerProfileOutboundIPPrefixes + { + /// + /// Initializes a new instance of the + /// ManagedClusterLoadBalancerProfileOutboundIPPrefixes class. + /// + public ManagedClusterLoadBalancerProfileOutboundIPPrefixes() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ManagedClusterLoadBalancerProfileOutboundIPPrefixes class. + /// + /// A list of public IP prefix + /// resources. + public ManagedClusterLoadBalancerProfileOutboundIPPrefixes(IList publicIPPrefixes = default(IList)) + { + PublicIPPrefixes = publicIPPrefixes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a list of public IP prefix resources. + /// + [JsonProperty(PropertyName = "publicIPPrefixes")] + public IList PublicIPPrefixes { get; set; } + + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs new file mode 100644 index 000000000000..8c6863afa7cb --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Desired outbound IP resources for the cluster load balancer. + /// + public partial class ManagedClusterLoadBalancerProfileOutboundIPs + { + /// + /// Initializes a new instance of the + /// ManagedClusterLoadBalancerProfileOutboundIPs class. + /// + public ManagedClusterLoadBalancerProfileOutboundIPs() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ManagedClusterLoadBalancerProfileOutboundIPs class. + /// + /// A list of public IP resources. + public ManagedClusterLoadBalancerProfileOutboundIPs(IList publicIPs = default(IList)) + { + PublicIPs = publicIPs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a list of public IP resources. + /// + [JsonProperty(PropertyName = "publicIPs")] + public IList PublicIPs { get; set; } + + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ResourceReference.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ResourceReference.cs new file mode 100644 index 000000000000..d272c94add12 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ResourceReference.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A reference to an Azure resource. + /// + public partial class ResourceReference + { + /// + /// Initializes a new instance of the ResourceReference class. + /// + public ResourceReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceReference class. + /// + /// The fully qualified Azure resource id. + public ResourceReference(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fully qualified Azure resource id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetEvictionPolicy.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetEvictionPolicy.cs new file mode 100644 index 000000000000..25bd3db49c44 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetEvictionPolicy.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + + /// + /// Defines values for ScaleSetEvictionPolicy. + /// + public static class ScaleSetEvictionPolicy + { + public const string Delete = "Delete"; + public const string Deallocate = "Deallocate"; + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetPriority.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetPriority.cs new file mode 100644 index 000000000000..5edcae14e830 --- /dev/null +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetPriority.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerService.Models +{ + + /// + /// Defines values for ScaleSetPriority. + /// + public static class ScaleSetPriority + { + public const string Low = "Low"; + public const string Regular = "Regular"; + } +} diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs index ec90823197fa..33c25ec737fe 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs @@ -70,7 +70,7 @@ internal Operations(ContainerServiceClient client) /// public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - string apiVersion = "2019-04-01"; + string apiVersion = "2019-08-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs index e35757d72020..2330060e78a7 100644 --- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs +++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs @@ -19,12 +19,12 @@ public static IEnumerable> ApiInfo_ContainerServic { return new Tuple[] { - new Tuple("ContainerService", "AgentPools", "2019-04-01"), + new Tuple("ContainerService", "AgentPools", "2019-08-01"), new Tuple("ContainerService", "ContainerServices", "2017-07-01"), - new Tuple("ContainerService", "ContainerServices", "2019-04-01"), - new Tuple("ContainerService", "ManagedClusters", "2019-04-01"), + new Tuple("ContainerService", "ContainerServices", "2019-08-01"), + new Tuple("ContainerService", "ManagedClusters", "2019-08-01"), new Tuple("ContainerService", "OpenShiftManagedClusters", "2019-04-30"), - new Tuple("ContainerService", "Operations", "2019-04-01"), + new Tuple("ContainerService", "Operations", "2019-08-01"), }.AsEnumerable(); } } From 06cc9d1871d7eb6d79038fa23db932fec164baab Mon Sep 17 00:00:00 2001 From: rocchiele <52761474+rocchiele@users.noreply.github.com> Date: Wed, 14 Aug 2019 23:13:32 -0700 Subject: [PATCH 10/24] Create .NET sdk for sqlvirtualmachine (#7252) * Create sdk/sqlvirtualmachine. * Add PackageReleaseNotes and add update tests. --- .../sqlvirtualmachine_resource-manager.txt | 14 + .../AzSdk.RP.props | 7 + ...oft.Azure.Management.SqlVirtualMachine.sln | 31 + .../AvailabilityGroupListenersOperations.cs | 1108 + ...ilityGroupListenersOperationsExtensions.cs | 347 + .../IAvailabilityGroupListenersOperations.cs | 228 + .../src/Generated/IOperations.cs | 68 + .../ISqlVirtualMachineGroupsOperations.cs | 309 + .../ISqlVirtualMachineManagementClient.cs | 97 + .../ISqlVirtualMachinesOperations.cs | 312 + .../AdditionalFeaturesServerConfigurations.cs | 54 + .../Generated/Models/AutoBackupSettings.cs | 158 + .../Generated/Models/AutoPatchingSettings.cs | 84 + .../Models/AvailabilityGroupListener.cs | 98 + .../Generated/Models/BackupScheduleType.cs | 22 + .../Generated/Models/ClusterConfiguration.cs | 21 + .../Generated/Models/ClusterManagerType.cs | 21 + .../src/Generated/Models/ConnectivityType.cs | 23 + .../src/Generated/Models/DayOfWeek.cs | 90 + .../Generated/Models/DiskConfigurationType.cs | 23 + .../Models/FullBackupFrequencyType.cs | 22 + .../src/Generated/Models/IdentityType.cs | 21 + .../Models/KeyVaultCredentialSettings.cs | 87 + .../Models/LoadBalancerConfiguration.cs | 90 + .../src/Generated/Models/Operation.cs | 84 + .../src/Generated/Models/OperationDisplay.cs | 80 + .../src/Generated/Models/OperationOrigin.cs | 22 + .../src/Generated/Models/Page.cs | 53 + .../src/Generated/Models/PrivateIPAddress.cs | 62 + .../src/Generated/Models/ProxyResource.cs | 46 + .../src/Generated/Models/Resource.cs | 69 + .../src/Generated/Models/ResourceIdentity.cs | 75 + .../src/Generated/Models/ScaleType.cs | 21 + .../ServerConfigurationsManagementSettings.cs | 81 + .../Models/SqlConnectivityUpdateSettings.cs | 81 + .../src/Generated/Models/SqlImageSku.cs | 25 + .../src/Generated/Models/SqlManagementMode.cs | 23 + .../Generated/Models/SqlServerLicenseType.cs | 22 + .../Models/SqlStorageUpdateSettings.cs | 70 + .../Models/SqlVirtualMachineGroup.cs | 132 + .../Models/SqlVirtualMachineGroupUpdate.cs | 55 + .../Models/SqlVirtualMachineModel.cs | 193 + .../Models/SqlVirtualMachineUpdate.cs | 53 + .../Generated/Models/SqlVmGroupImageSku.cs | 22 + .../src/Generated/Models/SqlWorkloadType.cs | 23 + .../Models/SqlWorkloadTypeUpdateSettings.cs | 55 + .../src/Generated/Models/TrackedResource.cs | 79 + .../Generated/Models/WsfcDomainCredentials.cs | 71 + .../src/Generated/Models/WsfcDomainProfile.cs | 126 + .../src/Generated/Operations.cs | 400 + .../src/Generated/OperationsExtensions.cs | 87 + ...kInfo_SqlVirtualMachineManagementClient.cs | 41 + .../SqlVirtualMachineGroupsOperations.cs | 1658 ++ ...irtualMachineGroupsOperationsExtensions.cs | 469 + .../SqlVirtualMachineManagementClient.cs | 382 + .../Generated/SqlVirtualMachinesOperations.cs | 1666 ++ .../SqlVirtualMachinesOperationsExtensions.cs | 475 + ....Azure.Management.SqlVirtualMachine.csproj | 28 + .../src/Properties/AssemblyInfo.cs | 18 + .../src/generate.ps1 | 1 + .../AvailabilityGroupListenersScenarioTest.cs | 47 + ....Management.SqlVirtualMachine.Tests.csproj | 36 + .../tests/OperationsScenarioTests.cs | 23 + .../tests/Properties/AssemblyInfo.cs | 26 + ...eListDeleteAvailabilityGroupListeners.json | 23308 ++++++++++++++++ .../TestListOperations.json | 416 + ...CreateGetDeleteSqlVirtualMachineGroup.json | 1622 ++ ...CreateUpdateGetSqlVirtualMachineGroup.json | 1475 + .../TestListSqlVirtualMachineGroup.json | 1219 + ...reateGetUpdateDeleteSqlVirtualMachine.json | 14142 ++++++++++ .../TestListByGroupSqlVirtualMachine.json | 5380 ++++ .../SqlVirtualMachineGroupScenarioTest.cs | 97 + .../tests/SqlVirtualMachinesScenarioTest.cs | 102 + .../tests/Utilities/Contants.cs | 23 + .../CustomScriptExtensionSettings.cs | 14 + .../tests/Utilities/DSCSettings.cs | 34 + .../tests/Utilities/JoinDomainSettings.cs | 19 + .../tests/Utilities/MockClient.cs | 42 + .../Utilities/SqlVirtualMachineTestBase.cs | 351 + .../Utilities/SqlVirtualMachineTestContext.cs | 89 + .../tests/Utilities/UpdateVNetDnsSettings.cs | 42 + .../tests/Utilities/VirtualMachineTestBase.cs | 341 + 82 files changed, 59031 insertions(+) create mode 100644 eng/mgmt/mgmtmetadata/sqlvirtualmachine_resource-manager.txt create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/AzSdk.RP.props create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/Microsoft.Azure.Management.SqlVirtualMachine.sln create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperationsExtensions.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IAvailabilityGroupListenersOperations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IOperations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineGroupsOperations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineManagementClient.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachinesOperations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AdditionalFeaturesServerConfigurations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoBackupSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoPatchingSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListener.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/BackupScheduleType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterConfiguration.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterManagerType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ConnectivityType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DayOfWeek.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DiskConfigurationType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/FullBackupFrequencyType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/IdentityType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/KeyVaultCredentialSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/LoadBalancerConfiguration.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Operation.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationDisplay.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationOrigin.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Page.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/PrivateIPAddress.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ProxyResource.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Resource.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ResourceIdentity.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ScaleType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ServerConfigurationsManagementSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlConnectivityUpdateSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlImageSku.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlManagementMode.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlServerLicenseType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlStorageUpdateSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroup.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroupUpdate.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineModel.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineUpdate.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVmGroupImageSku.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadType.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadTypeUpdateSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/TrackedResource.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainCredentials.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainProfile.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Operations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/OperationsExtensions.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SdkInfo_SqlVirtualMachineManagementClient.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperationsExtensions.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineManagementClient.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperations.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperationsExtensions.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Microsoft.Azure.Management.SqlVirtualMachine.csproj create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Properties/AssemblyInfo.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/generate.ps1 create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/AvailabilityGroupListenersScenarioTest.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Microsoft.Azure.Management.SqlVirtualMachine.Tests.csproj create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/OperationsScenarioTests.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Properties/AssemblyInfo.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.AvailabilityGroupListenersScenarioTest/TestCreateListDeleteAvailabilityGroupListeners.json create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.OperationsScenarioTests/TestListOperations.json create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateGetDeleteSqlVirtualMachineGroup.json create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateUpdateGetSqlVirtualMachineGroup.json create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestListSqlVirtualMachineGroup.json create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestCreateGetUpdateDeleteSqlVirtualMachine.json create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestListByGroupSqlVirtualMachine.json create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachineGroupScenarioTest.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachinesScenarioTest.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/Contants.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/CustomScriptExtensionSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/DSCSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/JoinDomainSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/MockClient.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestBase.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestContext.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/UpdateVNetDnsSettings.cs create mode 100644 sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/VirtualMachineTestBase.cs diff --git a/eng/mgmt/mgmtmetadata/sqlvirtualmachine_resource-manager.txt b/eng/mgmt/mgmtmetadata/sqlvirtualmachine_resource-manager.txt new file mode 100644 index 000000000000..68b74388b166 --- /dev/null +++ b/eng/mgmt/mgmtmetadata/sqlvirtualmachine_resource-manager.txt @@ -0,0 +1,14 @@ +Installing AutoRest version: latest +AutoRest installed successfully. +Commencing code generation +Generating CSharp code +Executing AutoRest command +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sqlvirtualmachine/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Users\t-elroc\Documents\azure-sdk-for-net\sdk +2019-07-15 21:31:18 UTC +Azure-rest-api-specs repository information +GitHub fork: Azure +Branch: master +Commit: 9d9ee638387862888a72974c98790a63666d427b +AutoRest information +Requested version: latest +Bootstrapper version: autorest@2.0.4283 diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/AzSdk.RP.props b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/AzSdk.RP.props new file mode 100644 index 000000000000..bf077381bb36 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/AzSdk.RP.props @@ -0,0 +1,7 @@ + + + + SqlVirtualMachine_2017-03-01-preview + $(PackageTags);$(CommonTags);$(AzureApiTag); + + \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/Microsoft.Azure.Management.SqlVirtualMachine.sln b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/Microsoft.Azure.Management.SqlVirtualMachine.sln new file mode 100644 index 000000000000..4c4f7967fddd --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/Microsoft.Azure.Management.SqlVirtualMachine.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26228.4 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.SqlVirtualMachine.Tests", "tests\Microsoft.Azure.Management.SqlVirtualMachine.Tests.csproj", "{F857A01A-2955-4FC9-836B-FE7FD80C6CC2}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.SqlVirtualMachine", "src\Microsoft.Azure.Management.SqlVirtualMachine.csproj", "{4BE19A52-27E4-4628-97DB-A4736E4D6326}" +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 + {4BE19A52-27E4-4628-97DB-A4736E4D6326}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4BE19A52-27E4-4628-97DB-A4736E4D6326}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4BE19A52-27E4-4628-97DB-A4736E4D6326}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4BE19A52-27E4-4628-97DB-A4736E4D6326}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C9931AE5-11BD-4A11-A535-85E7E5406D79} + EndGlobalSection +EndGlobal diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperations.cs new file mode 100644 index 000000000000..40df80637135 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperations.cs @@ -0,0 +1,1108 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + 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; + + /// + /// AvailabilityGroupListenersOperations operations. + /// + internal partial class AvailabilityGroupListenersOperations : IServiceOperations, IAvailabilityGroupListenersOperations + { + /// + /// Initializes a new instance of the AvailabilityGroupListenersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AvailabilityGroupListenersOperations(SqlVirtualMachineManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlVirtualMachineManagementClient + /// + public SqlVirtualMachineManagementClient Client { get; private set; } + + /// + /// Gets an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// 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 sqlVirtualMachineGroupName, string availabilityGroupListenerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (availabilityGroupListenerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "availabilityGroupListenerName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + tracingParameters.Add("availabilityGroupListenerName", availabilityGroupListenerName); + 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _url = _url.Replace("{availabilityGroupListenerName}", System.Uri.EscapeDataString(availabilityGroupListenerName)); + _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; + } + + /// + /// Creates or updates an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all availability group listeners in a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// 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>> ListByGroupWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByGroup", 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _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; + } + + /// + /// Creates or updates an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (availabilityGroupListenerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "availabilityGroupListenerName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + tracingParameters.Add("availabilityGroupListenerName", availabilityGroupListenerName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _url = _url.Replace("{availabilityGroupListenerName}", System.Uri.EscapeDataString(availabilityGroupListenerName)); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 != 201) + { + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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; + } + + /// + /// Deletes an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (availabilityGroupListenerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "availabilityGroupListenerName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + tracingParameters.Add("availabilityGroupListenerName", availabilityGroupListenerName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _url = _url.Replace("{availabilityGroupListenerName}", System.Uri.EscapeDataString(availabilityGroupListenerName)); + _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 != 202 && (int)_statusCode != 204) + { + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all availability group listeners in a SQL virtual machine 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>> ListByGroupNextWithHttpMessagesAsync(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, "ListByGroupNext", 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperationsExtensions.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperationsExtensions.cs new file mode 100644 index 000000000000..f81dcd37854f --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/AvailabilityGroupListenersOperationsExtensions.cs @@ -0,0 +1,347 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for AvailabilityGroupListenersOperations. + /// + public static partial class AvailabilityGroupListenersOperationsExtensions + { + /// + /// Gets an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + public static AvailabilityGroupListener Get(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName) + { + return operations.GetAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName).GetAwaiter().GetResult(); + } + + /// + /// Gets an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + public static AvailabilityGroupListener CreateOrUpdate(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + public static void Delete(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName) + { + operations.DeleteAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName).GetAwaiter().GetResult(); + } + + /// + /// Deletes an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all availability group listeners in a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + public static IPage ListByGroup(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName) + { + return operations.ListByGroupAsync(resourceGroupName, sqlVirtualMachineGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all availability group listeners in a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByGroupAsync(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByGroupWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + public static AvailabilityGroupListener BeginCreateOrUpdate(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + public static void BeginDelete(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName) + { + operations.BeginDeleteAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName).GetAwaiter().GetResult(); + } + + /// + /// Deletes an availability group listener. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IAvailabilityGroupListenersOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all availability group listeners in a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByGroupNext(this IAvailabilityGroupListenersOperations operations, string nextPageLink) + { + return operations.ListByGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all availability group listeners in a SQL virtual machine 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> ListByGroupNextAsync(this IAvailabilityGroupListenersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IAvailabilityGroupListenersOperations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IAvailabilityGroupListenersOperations.cs new file mode 100644 index 000000000000..4fb9e321ef43 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IAvailabilityGroupListenersOperations.cs @@ -0,0 +1,228 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AvailabilityGroupListenersOperations operations. + /// + public partial interface IAvailabilityGroupListenersOperations + { + /// + /// Gets an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// 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 sqlVirtualMachineGroupName, string availabilityGroupListenerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// 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 sqlVirtualMachineGroupName, string availabilityGroupListenerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all availability group listeners in a SQL virtual machine + /// group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// 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>> ListByGroupWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// The availability group listener. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, AvailabilityGroupListener parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes an availability group listener. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// Name of the availability group listener. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, string availabilityGroupListenerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all availability group listeners in a SQL virtual machine + /// 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>> ListByGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IOperations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IOperations.cs new file mode 100644 index 000000000000..977a4904d697 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/IOperations.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + 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 SQL 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 SQL 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineGroupsOperations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineGroupsOperations.cs new file mode 100644 index 000000000000..6ca9ec262964 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineGroupsOperations.cs @@ -0,0 +1,309 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SqlVirtualMachineGroupsOperations operations. + /// + public partial interface ISqlVirtualMachineGroupsOperations + { + /// + /// Gets a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// 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 sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// 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 sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// 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 sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all SQL virtual machine groups in a resource group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// 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)); + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// 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)); + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// 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 sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all SQL virtual machine groups in a 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)); + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineManagementClient.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineManagementClient.cs new file mode 100644 index 000000000000..9a420c3abd0f --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachineManagementClient.cs @@ -0,0 +1,97 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// The SQL virtual machine management API provides a RESTful set of web + /// APIs that interact with Azure Compute, Network & Storage services + /// to manage your SQL Server virtual machine. The API enables users to + /// create, delete and retrieve a SQL virtual machine, SQL virtual machine + /// group or availability group listener. + /// + public partial interface ISqlVirtualMachineManagementClient : 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; } + + /// + /// Subscription ID that identifies an Azure subscription. + /// + string SubscriptionId { get; set; } + + /// + /// API version to use for the request. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. 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 IAvailabilityGroupListenersOperations. + /// + IAvailabilityGroupListenersOperations AvailabilityGroupListeners { get; } + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the ISqlVirtualMachineGroupsOperations. + /// + ISqlVirtualMachineGroupsOperations SqlVirtualMachineGroups { get; } + + /// + /// Gets the ISqlVirtualMachinesOperations. + /// + ISqlVirtualMachinesOperations SqlVirtualMachines { get; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachinesOperations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachinesOperations.cs new file mode 100644 index 000000000000..e88b4153da06 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/ISqlVirtualMachinesOperations.cs @@ -0,0 +1,312 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SqlVirtualMachinesOperations operations. + /// + public partial interface ISqlVirtualMachinesOperations + { + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// 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)); + /// + /// Gets a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The child resources to include in the response. + /// + /// + /// 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 sqlVirtualMachineName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// 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 sqlVirtualMachineName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// 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 sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all SQL virtual machines in a resource group. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// 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)); + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// 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 sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// 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)); + /// + /// Gets all SQL virtual machines in a 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)); + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AdditionalFeaturesServerConfigurations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AdditionalFeaturesServerConfigurations.cs new file mode 100644 index 000000000000..9869f0e39b00 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AdditionalFeaturesServerConfigurations.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Additional SQL Server feature settings. + /// + public partial class AdditionalFeaturesServerConfigurations + { + /// + /// Initializes a new instance of the + /// AdditionalFeaturesServerConfigurations class. + /// + public AdditionalFeaturesServerConfigurations() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// AdditionalFeaturesServerConfigurations class. + /// + /// Enable or disable R services (SQL + /// 2016 onwards). + public AdditionalFeaturesServerConfigurations(bool? isRServicesEnabled = default(bool?)) + { + IsRServicesEnabled = isRServicesEnabled; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets enable or disable R services (SQL 2016 onwards). + /// + [JsonProperty(PropertyName = "isRServicesEnabled")] + public bool? IsRServicesEnabled { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoBackupSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoBackupSettings.cs new file mode 100644 index 000000000000..d79a66c9b72f --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoBackupSettings.cs @@ -0,0 +1,158 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Configure backups for databases in your SQL virtual machine. + /// + public partial class AutoBackupSettings + { + /// + /// Initializes a new instance of the AutoBackupSettings class. + /// + public AutoBackupSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AutoBackupSettings class. + /// + /// Enable or disable autobackup on SQL virtual + /// machine. + /// Enable or disable encryption for + /// backup on SQL virtual machine. + /// Retention period of backup: 1-30 + /// days. + /// Storage account url where backup + /// will be taken to. + /// Storage account key where backup + /// will be taken to. + /// Password for encryption on backup. + /// Include or exclude system databases + /// from auto backup. + /// Backup schedule type. Possible + /// values include: 'Manual', 'Automated' + /// Frequency of full backups. In + /// both cases, full backups begin during the next scheduled time + /// window. Possible values include: 'Daily', 'Weekly' + /// Start time of a given day during + /// which full backups can take place. 0-23 hours. + /// Duration of the time window of + /// a given day during which full backups can take place. 1-23 + /// hours. + /// Frequency of log backups. 5-60 + /// minutes. + public AutoBackupSettings(bool? enable = default(bool?), bool? enableEncryption = default(bool?), int? retentionPeriod = default(int?), string storageAccountUrl = default(string), string storageAccessKey = default(string), string password = default(string), bool? backupSystemDbs = default(bool?), string backupScheduleType = default(string), string fullBackupFrequency = default(string), int? fullBackupStartTime = default(int?), int? fullBackupWindowHours = default(int?), int? logBackupFrequency = default(int?)) + { + Enable = enable; + EnableEncryption = enableEncryption; + RetentionPeriod = retentionPeriod; + StorageAccountUrl = storageAccountUrl; + StorageAccessKey = storageAccessKey; + Password = password; + BackupSystemDbs = backupSystemDbs; + BackupScheduleType = backupScheduleType; + FullBackupFrequency = fullBackupFrequency; + FullBackupStartTime = fullBackupStartTime; + FullBackupWindowHours = fullBackupWindowHours; + LogBackupFrequency = logBackupFrequency; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets enable or disable autobackup on SQL virtual machine. + /// + [JsonProperty(PropertyName = "enable")] + public bool? Enable { get; set; } + + /// + /// Gets or sets enable or disable encryption for backup on SQL virtual + /// machine. + /// + [JsonProperty(PropertyName = "enableEncryption")] + public bool? EnableEncryption { get; set; } + + /// + /// Gets or sets retention period of backup: 1-30 days. + /// + [JsonProperty(PropertyName = "retentionPeriod")] + public int? RetentionPeriod { get; set; } + + /// + /// Gets or sets storage account url where backup will be taken to. + /// + [JsonProperty(PropertyName = "storageAccountUrl")] + public string StorageAccountUrl { get; set; } + + /// + /// Gets or sets storage account key where backup will be taken to. + /// + [JsonProperty(PropertyName = "storageAccessKey")] + public string StorageAccessKey { get; set; } + + /// + /// Gets or sets password for encryption on backup. + /// + [JsonProperty(PropertyName = "password")] + public string Password { get; set; } + + /// + /// Gets or sets include or exclude system databases from auto backup. + /// + [JsonProperty(PropertyName = "backupSystemDbs")] + public bool? BackupSystemDbs { get; set; } + + /// + /// Gets or sets backup schedule type. Possible values include: + /// 'Manual', 'Automated' + /// + [JsonProperty(PropertyName = "backupScheduleType")] + public string BackupScheduleType { get; set; } + + /// + /// Gets or sets frequency of full backups. In both cases, full backups + /// begin during the next scheduled time window. Possible values + /// include: 'Daily', 'Weekly' + /// + [JsonProperty(PropertyName = "fullBackupFrequency")] + public string FullBackupFrequency { get; set; } + + /// + /// Gets or sets start time of a given day during which full backups + /// can take place. 0-23 hours. + /// + [JsonProperty(PropertyName = "fullBackupStartTime")] + public int? FullBackupStartTime { get; set; } + + /// + /// Gets or sets duration of the time window of a given day during + /// which full backups can take place. 1-23 hours. + /// + [JsonProperty(PropertyName = "fullBackupWindowHours")] + public int? FullBackupWindowHours { get; set; } + + /// + /// Gets or sets frequency of log backups. 5-60 minutes. + /// + [JsonProperty(PropertyName = "logBackupFrequency")] + public int? LogBackupFrequency { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoPatchingSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoPatchingSettings.cs new file mode 100644 index 000000000000..c222ef328fa8 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AutoPatchingSettings.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Set a patching window during which Windows and SQL patches will be + /// applied. + /// + public partial class AutoPatchingSettings + { + /// + /// Initializes a new instance of the AutoPatchingSettings class. + /// + public AutoPatchingSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AutoPatchingSettings class. + /// + /// Enable or disable autopatching on SQL virtual + /// machine. + /// Day of week to apply the patch on. Possible + /// values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', + /// 'Friday', 'Saturday', 'Sunday' + /// Hour of the day when + /// patching is initiated. Local VM time. + /// Duration of + /// patching. + public AutoPatchingSettings(bool? enable = default(bool?), DayOfWeek? dayOfWeek = default(DayOfWeek?), int? maintenanceWindowStartingHour = default(int?), int? maintenanceWindowDuration = default(int?)) + { + Enable = enable; + DayOfWeek = dayOfWeek; + MaintenanceWindowStartingHour = maintenanceWindowStartingHour; + MaintenanceWindowDuration = maintenanceWindowDuration; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets enable or disable autopatching on SQL virtual machine. + /// + [JsonProperty(PropertyName = "enable")] + public bool? Enable { get; set; } + + /// + /// Gets or sets day of week to apply the patch on. Possible values + /// include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + /// 'Saturday', 'Sunday' + /// + [JsonProperty(PropertyName = "dayOfWeek")] + public DayOfWeek? DayOfWeek { get; set; } + + /// + /// Gets or sets hour of the day when patching is initiated. Local VM + /// time. + /// + [JsonProperty(PropertyName = "maintenanceWindowStartingHour")] + public int? MaintenanceWindowStartingHour { get; set; } + + /// + /// Gets or sets duration of patching. + /// + [JsonProperty(PropertyName = "maintenanceWindowDuration")] + public int? MaintenanceWindowDuration { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListener.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListener.cs new file mode 100644 index 000000000000..362162064f63 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListener.cs @@ -0,0 +1,98 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A SQL Server availability group listener. + /// + [Rest.Serialization.JsonTransformation] + public partial class AvailabilityGroupListener : ProxyResource + { + /// + /// Initializes a new instance of the AvailabilityGroupListener class. + /// + public AvailabilityGroupListener() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AvailabilityGroupListener class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Provisioning state to track the + /// async operation status. + /// Name of the availability + /// group. + /// List of load balancer + /// configurations for an availability group listener. + /// Create a + /// default availability group if it does not exist. + /// Listener port. + public AvailabilityGroupListener(string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string), string availabilityGroupName = default(string), IList loadBalancerConfigurations = default(IList), bool? createDefaultAvailabilityGroupIfNotExist = default(bool?), int? port = default(int?)) + : base(id, name, type) + { + ProvisioningState = provisioningState; + AvailabilityGroupName = availabilityGroupName; + LoadBalancerConfigurations = loadBalancerConfigurations; + CreateDefaultAvailabilityGroupIfNotExist = createDefaultAvailabilityGroupIfNotExist; + Port = port; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets provisioning state to track the async operation status. + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets name of the availability group. + /// + [JsonProperty(PropertyName = "properties.availabilityGroupName")] + public string AvailabilityGroupName { get; set; } + + /// + /// Gets or sets list of load balancer configurations for an + /// availability group listener. + /// + [JsonProperty(PropertyName = "properties.loadBalancerConfigurations")] + public IList LoadBalancerConfigurations { get; set; } + + /// + /// Gets or sets create a default availability group if it does not + /// exist. + /// + [JsonProperty(PropertyName = "properties.createDefaultAvailabilityGroupIfNotExist")] + public bool? CreateDefaultAvailabilityGroupIfNotExist { get; set; } + + /// + /// Gets or sets listener port. + /// + [JsonProperty(PropertyName = "properties.port")] + public int? Port { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/BackupScheduleType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/BackupScheduleType.cs new file mode 100644 index 000000000000..9e3b473a09f0 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/BackupScheduleType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for BackupScheduleType. + /// + public static class BackupScheduleType + { + public const string Manual = "Manual"; + public const string Automated = "Automated"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterConfiguration.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterConfiguration.cs new file mode 100644 index 000000000000..8d2163462092 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterConfiguration.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for ClusterConfiguration. + /// + public static class ClusterConfiguration + { + public const string Domainful = "Domainful"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterManagerType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterManagerType.cs new file mode 100644 index 000000000000..11cd2daecc55 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ClusterManagerType.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for ClusterManagerType. + /// + public static class ClusterManagerType + { + public const string WSFC = "WSFC"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ConnectivityType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ConnectivityType.cs new file mode 100644 index 000000000000..e6140f479368 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ConnectivityType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for ConnectivityType. + /// + public static class ConnectivityType + { + public const string LOCAL = "LOCAL"; + public const string PRIVATE = "PRIVATE"; + public const string PUBLIC = "PUBLIC"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DayOfWeek.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DayOfWeek.cs new file mode 100644 index 000000000000..adedf06db31b --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DayOfWeek.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for DayOfWeek. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum DayOfWeek + { + [EnumMember(Value = "Monday")] + Monday, + [EnumMember(Value = "Tuesday")] + Tuesday, + [EnumMember(Value = "Wednesday")] + Wednesday, + [EnumMember(Value = "Thursday")] + Thursday, + [EnumMember(Value = "Friday")] + Friday, + [EnumMember(Value = "Saturday")] + Saturday, + [EnumMember(Value = "Sunday")] + Sunday + } + internal static class DayOfWeekEnumExtension + { + internal static string ToSerializedValue(this DayOfWeek? value) + { + return value == null ? null : ((DayOfWeek)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this DayOfWeek value) + { + switch( value ) + { + case DayOfWeek.Monday: + return "Monday"; + case DayOfWeek.Tuesday: + return "Tuesday"; + case DayOfWeek.Wednesday: + return "Wednesday"; + case DayOfWeek.Thursday: + return "Thursday"; + case DayOfWeek.Friday: + return "Friday"; + case DayOfWeek.Saturday: + return "Saturday"; + case DayOfWeek.Sunday: + return "Sunday"; + } + return null; + } + + internal static DayOfWeek? ParseDayOfWeek(this string value) + { + switch( value ) + { + case "Monday": + return DayOfWeek.Monday; + case "Tuesday": + return DayOfWeek.Tuesday; + case "Wednesday": + return DayOfWeek.Wednesday; + case "Thursday": + return DayOfWeek.Thursday; + case "Friday": + return DayOfWeek.Friday; + case "Saturday": + return DayOfWeek.Saturday; + case "Sunday": + return DayOfWeek.Sunday; + } + return null; + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DiskConfigurationType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DiskConfigurationType.cs new file mode 100644 index 000000000000..404ae9a83c0b --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/DiskConfigurationType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for DiskConfigurationType. + /// + public static class DiskConfigurationType + { + public const string NEW = "NEW"; + public const string EXTEND = "EXTEND"; + public const string ADD = "ADD"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/FullBackupFrequencyType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/FullBackupFrequencyType.cs new file mode 100644 index 000000000000..26f4b03799cc --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/FullBackupFrequencyType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for FullBackupFrequencyType. + /// + public static class FullBackupFrequencyType + { + public const string Daily = "Daily"; + public const string Weekly = "Weekly"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/IdentityType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/IdentityType.cs new file mode 100644 index 000000000000..cf949823b256 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/IdentityType.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for IdentityType. + /// + public static class IdentityType + { + public const string SystemAssigned = "SystemAssigned"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/KeyVaultCredentialSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/KeyVaultCredentialSettings.cs new file mode 100644 index 000000000000..106071ac69da --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/KeyVaultCredentialSettings.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Configure your SQL virtual machine to be able to connect to the Azure + /// Key Vault service. + /// + public partial class KeyVaultCredentialSettings + { + /// + /// Initializes a new instance of the KeyVaultCredentialSettings class. + /// + public KeyVaultCredentialSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the KeyVaultCredentialSettings class. + /// + /// Enable or disable key vault credential + /// setting. + /// Credential name. + /// Azure Key Vault url. + /// Service principal name to access + /// key vault. + /// Service principal name secret + /// to access key vault. + public KeyVaultCredentialSettings(bool? enable = default(bool?), string credentialName = default(string), string azureKeyVaultUrl = default(string), string servicePrincipalName = default(string), string servicePrincipalSecret = default(string)) + { + Enable = enable; + CredentialName = credentialName; + AzureKeyVaultUrl = azureKeyVaultUrl; + ServicePrincipalName = servicePrincipalName; + ServicePrincipalSecret = servicePrincipalSecret; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets enable or disable key vault credential setting. + /// + [JsonProperty(PropertyName = "enable")] + public bool? Enable { get; set; } + + /// + /// Gets or sets credential name. + /// + [JsonProperty(PropertyName = "credentialName")] + public string CredentialName { get; set; } + + /// + /// Gets or sets azure Key Vault url. + /// + [JsonProperty(PropertyName = "azureKeyVaultUrl")] + public string AzureKeyVaultUrl { get; set; } + + /// + /// Gets or sets service principal name to access key vault. + /// + [JsonProperty(PropertyName = "servicePrincipalName")] + public string ServicePrincipalName { get; set; } + + /// + /// Gets or sets service principal name secret to access key vault. + /// + [JsonProperty(PropertyName = "servicePrincipalSecret")] + public string ServicePrincipalSecret { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/LoadBalancerConfiguration.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/LoadBalancerConfiguration.cs new file mode 100644 index 000000000000..8f6c582c3e5b --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/LoadBalancerConfiguration.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A load balancer configuration for an availability group listener. + /// + public partial class LoadBalancerConfiguration + { + /// + /// Initializes a new instance of the LoadBalancerConfiguration class. + /// + public LoadBalancerConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LoadBalancerConfiguration class. + /// + /// Private IP address. + /// Resource id of the public + /// IP. + /// Resource id of the load + /// balancer. + /// Probe port. + /// List of the SQL virtual + /// machine instance resource id's that are enrolled into the + /// availability group listener. + public LoadBalancerConfiguration(PrivateIPAddress privateIpAddress = default(PrivateIPAddress), string publicIpAddressResourceId = default(string), string loadBalancerResourceId = default(string), int? probePort = default(int?), IList sqlVirtualMachineInstances = default(IList)) + { + PrivateIpAddress = privateIpAddress; + PublicIpAddressResourceId = publicIpAddressResourceId; + LoadBalancerResourceId = loadBalancerResourceId; + ProbePort = probePort; + SqlVirtualMachineInstances = sqlVirtualMachineInstances; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets private IP address. + /// + [JsonProperty(PropertyName = "privateIpAddress")] + public PrivateIPAddress PrivateIpAddress { get; set; } + + /// + /// Gets or sets resource id of the public IP. + /// + [JsonProperty(PropertyName = "publicIpAddressResourceId")] + public string PublicIpAddressResourceId { get; set; } + + /// + /// Gets or sets resource id of the load balancer. + /// + [JsonProperty(PropertyName = "loadBalancerResourceId")] + public string LoadBalancerResourceId { get; set; } + + /// + /// Gets or sets probe port. + /// + [JsonProperty(PropertyName = "probePort")] + public int? ProbePort { get; set; } + + /// + /// Gets or sets list of the SQL virtual machine instance resource id's + /// that are enrolled into the availability group listener. + /// + [JsonProperty(PropertyName = "sqlVirtualMachineInstances")] + public IList SqlVirtualMachineInstances { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Operation.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Operation.cs new file mode 100644 index 000000000000..2751f099330e --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Operation.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// SQL REST API operation definition. + /// + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// The name of the operation being performed on + /// this particular object. + /// The localized display information for this + /// particular operation / action. + /// The intended executor of the operation. + /// Possible values include: 'user', 'system' + /// Additional descriptions for the + /// operation. + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary)) + { + Name = name; + Display = display; + Origin = origin; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name of the operation being performed on this particular + /// object. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the localized display information for this particular + /// operation / action. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; private set; } + + /// + /// Gets the intended executor of the operation. Possible values + /// include: 'user', 'system' + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; private set; } + + /// + /// Gets additional descriptions for the operation. + /// + [JsonProperty(PropertyName = "properties")] + public IDictionary Properties { get; private set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationDisplay.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationDisplay.cs new file mode 100644 index 000000000000..c31d526bb2a0 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationDisplay.cs @@ -0,0 +1,80 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Display metadata associated with the operation. + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// The localized friendly form of the resource + /// provider name. + /// The localized friendly form of the resource + /// type related to this action/operation. + /// The localized friendly name for the + /// operation. + /// The localized friendly description for + /// the operation. + public OperationDisplay(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 the localized friendly form of the resource provider name. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; private set; } + + /// + /// Gets the localized friendly form of the resource type related to + /// this action/operation. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; private set; } + + /// + /// Gets the localized friendly name for the operation. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; private set; } + + /// + /// Gets the localized friendly description for the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationOrigin.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationOrigin.cs new file mode 100644 index 000000000000..fa3620c4c979 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/OperationOrigin.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for OperationOrigin. + /// + public static class OperationOrigin + { + public const string User = "user"; + public const string System = "system"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Page.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Page.cs new file mode 100644 index 000000000000..2e753df97d9a --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Page.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/PrivateIPAddress.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/PrivateIPAddress.cs new file mode 100644 index 000000000000..906da9e214d8 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/PrivateIPAddress.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A private IP address bound to the availability group listener. + /// + public partial class PrivateIPAddress + { + /// + /// Initializes a new instance of the PrivateIPAddress class. + /// + public PrivateIPAddress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateIPAddress class. + /// + /// Private IP address bound to the + /// availability group listener. + /// Subnet used to include private + /// IP. + public PrivateIPAddress(string ipAddress = default(string), string subnetResourceId = default(string)) + { + IpAddress = ipAddress; + SubnetResourceId = subnetResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets private IP address bound to the availability group + /// listener. + /// + [JsonProperty(PropertyName = "ipAddress")] + public string IpAddress { get; set; } + + /// + /// Gets or sets subnet used to include private IP. + /// + [JsonProperty(PropertyName = "subnetResourceId")] + public string SubnetResourceId { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ProxyResource.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ProxyResource.cs new file mode 100644 index 000000000000..20a54c764434 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ProxyResource.cs @@ -0,0 +1,46 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using System.Linq; + + /// + /// ARM proxy resource. + /// + public partial class ProxyResource : Resource + { + /// + /// Initializes a new instance of the ProxyResource class. + /// + public ProxyResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProxyResource class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Resource.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Resource.cs new file mode 100644 index 000000000000..2978fb371763 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/Resource.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// ARM resource. + /// + 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 ID. + /// Resource name. + /// Resource type. + public Resource(string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + 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; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ResourceIdentity.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ResourceIdentity.cs new file mode 100644 index 000000000000..102b8c126f88 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ResourceIdentity.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure Active Directory identity configuration for a resource. + /// + public partial class ResourceIdentity + { + /// + /// Initializes a new instance of the ResourceIdentity class. + /// + public ResourceIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceIdentity class. + /// + /// The Azure Active Directory principal + /// id. + /// The identity type. Set this to 'SystemAssigned' + /// in order to automatically create and assign an Azure Active + /// Directory principal for the resource. Possible values include: + /// 'SystemAssigned' + /// The Azure Active Directory tenant + /// id. + public ResourceIdentity(System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) + { + PrincipalId = principalId; + Type = type; + TenantId = tenantId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the Azure Active Directory principal id. + /// + [JsonProperty(PropertyName = "principalId")] + public System.Guid? PrincipalId { get; private set; } + + /// + /// Gets or sets the identity type. Set this to 'SystemAssigned' in + /// order to automatically create and assign an Azure Active Directory + /// principal for the resource. Possible values include: + /// 'SystemAssigned' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets the Azure Active Directory tenant id. + /// + [JsonProperty(PropertyName = "tenantId")] + public System.Guid? TenantId { get; private set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ScaleType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ScaleType.cs new file mode 100644 index 000000000000..50df5adbf2af --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ScaleType.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for ScaleType. + /// + public static class ScaleType + { + public const string HA = "HA"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ServerConfigurationsManagementSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ServerConfigurationsManagementSettings.cs new file mode 100644 index 000000000000..3f3d466f1cf4 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/ServerConfigurationsManagementSettings.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Set the connectivity, storage and workload settings. + /// + public partial class ServerConfigurationsManagementSettings + { + /// + /// Initializes a new instance of the + /// ServerConfigurationsManagementSettings class. + /// + public ServerConfigurationsManagementSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ServerConfigurationsManagementSettings class. + /// + /// SQL connectivity type + /// settings. + /// SQL workload type + /// settings. + /// SQL storage update + /// settings. + /// Additional SQL + /// feature settings. + public ServerConfigurationsManagementSettings(SqlConnectivityUpdateSettings sqlConnectivityUpdateSettings = default(SqlConnectivityUpdateSettings), SqlWorkloadTypeUpdateSettings sqlWorkloadTypeUpdateSettings = default(SqlWorkloadTypeUpdateSettings), SqlStorageUpdateSettings sqlStorageUpdateSettings = default(SqlStorageUpdateSettings), AdditionalFeaturesServerConfigurations additionalFeaturesServerConfigurations = default(AdditionalFeaturesServerConfigurations)) + { + SqlConnectivityUpdateSettings = sqlConnectivityUpdateSettings; + SqlWorkloadTypeUpdateSettings = sqlWorkloadTypeUpdateSettings; + SqlStorageUpdateSettings = sqlStorageUpdateSettings; + AdditionalFeaturesServerConfigurations = additionalFeaturesServerConfigurations; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SQL connectivity type settings. + /// + [JsonProperty(PropertyName = "sqlConnectivityUpdateSettings")] + public SqlConnectivityUpdateSettings SqlConnectivityUpdateSettings { get; set; } + + /// + /// Gets or sets SQL workload type settings. + /// + [JsonProperty(PropertyName = "sqlWorkloadTypeUpdateSettings")] + public SqlWorkloadTypeUpdateSettings SqlWorkloadTypeUpdateSettings { get; set; } + + /// + /// Gets or sets SQL storage update settings. + /// + [JsonProperty(PropertyName = "sqlStorageUpdateSettings")] + public SqlStorageUpdateSettings SqlStorageUpdateSettings { get; set; } + + /// + /// Gets or sets additional SQL feature settings. + /// + [JsonProperty(PropertyName = "additionalFeaturesServerConfigurations")] + public AdditionalFeaturesServerConfigurations AdditionalFeaturesServerConfigurations { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlConnectivityUpdateSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlConnectivityUpdateSettings.cs new file mode 100644 index 000000000000..c2496ed79be3 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlConnectivityUpdateSettings.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Set the access level and network port settings for SQL Server. + /// + public partial class SqlConnectivityUpdateSettings + { + /// + /// Initializes a new instance of the SqlConnectivityUpdateSettings + /// class. + /// + public SqlConnectivityUpdateSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlConnectivityUpdateSettings + /// class. + /// + /// SQL Server connectivity option. + /// Possible values include: 'LOCAL', 'PRIVATE', 'PUBLIC' + /// SQL Server port. + /// SQL Server sysadmin login to + /// create. + /// SQL Server sysadmin login + /// password. + public SqlConnectivityUpdateSettings(string connectivityType = default(string), int? port = default(int?), string sqlAuthUpdateUserName = default(string), string sqlAuthUpdatePassword = default(string)) + { + ConnectivityType = connectivityType; + Port = port; + SqlAuthUpdateUserName = sqlAuthUpdateUserName; + SqlAuthUpdatePassword = sqlAuthUpdatePassword; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SQL Server connectivity option. Possible values + /// include: 'LOCAL', 'PRIVATE', 'PUBLIC' + /// + [JsonProperty(PropertyName = "connectivityType")] + public string ConnectivityType { get; set; } + + /// + /// Gets or sets SQL Server port. + /// + [JsonProperty(PropertyName = "port")] + public int? Port { get; set; } + + /// + /// Gets or sets SQL Server sysadmin login to create. + /// + [JsonProperty(PropertyName = "sqlAuthUpdateUserName")] + public string SqlAuthUpdateUserName { get; set; } + + /// + /// Gets or sets SQL Server sysadmin login password. + /// + [JsonProperty(PropertyName = "sqlAuthUpdatePassword")] + public string SqlAuthUpdatePassword { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlImageSku.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlImageSku.cs new file mode 100644 index 000000000000..9836f2dd13d3 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlImageSku.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for SqlImageSku. + /// + public static class SqlImageSku + { + public const string Developer = "Developer"; + public const string Express = "Express"; + public const string Standard = "Standard"; + public const string Enterprise = "Enterprise"; + public const string Web = "Web"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlManagementMode.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlManagementMode.cs new file mode 100644 index 000000000000..affbd4d556b0 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlManagementMode.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for SqlManagementMode. + /// + public static class SqlManagementMode + { + public const string Full = "Full"; + public const string LightWeight = "LightWeight"; + public const string NoAgent = "NoAgent"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlServerLicenseType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlServerLicenseType.cs new file mode 100644 index 000000000000..3554357d59e7 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlServerLicenseType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for SqlServerLicenseType. + /// + public static class SqlServerLicenseType + { + public const string PAYG = "PAYG"; + public const string AHUB = "AHUB"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlStorageUpdateSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlStorageUpdateSettings.cs new file mode 100644 index 000000000000..d08b33cf3874 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlStorageUpdateSettings.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Set disk storage settings for SQL Server. + /// + public partial class SqlStorageUpdateSettings + { + /// + /// Initializes a new instance of the SqlStorageUpdateSettings class. + /// + public SqlStorageUpdateSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlStorageUpdateSettings class. + /// + /// Virtual machine disk count. + /// Device id of the first disk to be + /// updated. + /// Disk configuration to apply to + /// SQL Server. Possible values include: 'NEW', 'EXTEND', 'ADD' + public SqlStorageUpdateSettings(int? diskCount = default(int?), int? startingDeviceId = default(int?), string diskConfigurationType = default(string)) + { + DiskCount = diskCount; + StartingDeviceId = startingDeviceId; + DiskConfigurationType = diskConfigurationType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets virtual machine disk count. + /// + [JsonProperty(PropertyName = "diskCount")] + public int? DiskCount { get; set; } + + /// + /// Gets or sets device id of the first disk to be updated. + /// + [JsonProperty(PropertyName = "startingDeviceId")] + public int? StartingDeviceId { get; set; } + + /// + /// Gets or sets disk configuration to apply to SQL Server. Possible + /// values include: 'NEW', 'EXTEND', 'ADD' + /// + [JsonProperty(PropertyName = "diskConfigurationType")] + public string DiskConfigurationType { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroup.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroup.cs new file mode 100644 index 000000000000..9524d5731453 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroup.cs @@ -0,0 +1,132 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A SQL virtual machine group. + /// + [Rest.Serialization.JsonTransformation] + public partial class SqlVirtualMachineGroup : TrackedResource + { + /// + /// Initializes a new instance of the SqlVirtualMachineGroup class. + /// + public SqlVirtualMachineGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlVirtualMachineGroup class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// Provisioning state to track the + /// async operation status. + /// SQL image offer. Examples may include + /// SQL2016-WS2016, SQL2017-WS2016. + /// SQL image sku. Possible values include: + /// 'Developer', 'Enterprise' + /// Scale type. Possible values include: + /// 'HA' + /// Type of cluster manager: Windows + /// Server Failover Cluster (WSFC), implied by the scale type of the + /// group and the OS type. Possible values include: 'WSFC' + /// Cluster type. Possible values + /// include: 'Domainful' + /// Cluster Active Directory domain + /// profile. + public SqlVirtualMachineGroup(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), string sqlImageOffer = default(string), string sqlImageSku = default(string), string scaleType = default(string), string clusterManagerType = default(string), string clusterConfiguration = default(string), WsfcDomainProfile wsfcDomainProfile = default(WsfcDomainProfile)) + : base(location, id, name, type, tags) + { + ProvisioningState = provisioningState; + SqlImageOffer = sqlImageOffer; + SqlImageSku = sqlImageSku; + ScaleType = scaleType; + ClusterManagerType = clusterManagerType; + ClusterConfiguration = clusterConfiguration; + WsfcDomainProfile = wsfcDomainProfile; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets provisioning state to track the async operation status. + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets SQL image offer. Examples may include SQL2016-WS2016, + /// SQL2017-WS2016. + /// + [JsonProperty(PropertyName = "properties.sqlImageOffer")] + public string SqlImageOffer { get; set; } + + /// + /// Gets or sets SQL image sku. Possible values include: 'Developer', + /// 'Enterprise' + /// + [JsonProperty(PropertyName = "properties.sqlImageSku")] + public string SqlImageSku { get; set; } + + /// + /// Gets scale type. Possible values include: 'HA' + /// + [JsonProperty(PropertyName = "properties.scaleType")] + public string ScaleType { get; private set; } + + /// + /// Gets type of cluster manager: Windows Server Failover Cluster + /// (WSFC), implied by the scale type of the group and the OS type. + /// Possible values include: 'WSFC' + /// + [JsonProperty(PropertyName = "properties.clusterManagerType")] + public string ClusterManagerType { get; private set; } + + /// + /// Gets cluster type. Possible values include: 'Domainful' + /// + [JsonProperty(PropertyName = "properties.clusterConfiguration")] + public string ClusterConfiguration { get; private set; } + + /// + /// Gets or sets cluster Active Directory domain profile. + /// + [JsonProperty(PropertyName = "properties.wsfcDomainProfile")] + public WsfcDomainProfile WsfcDomainProfile { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroupUpdate.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroupUpdate.cs new file mode 100644 index 000000000000..cdeebb675248 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineGroupUpdate.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An update to a SQL virtual machine group. + /// + public partial class SqlVirtualMachineGroupUpdate + { + /// + /// Initializes a new instance of the SqlVirtualMachineGroupUpdate + /// class. + /// + public SqlVirtualMachineGroupUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlVirtualMachineGroupUpdate + /// class. + /// + /// Resource tags. + public SqlVirtualMachineGroupUpdate(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineModel.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineModel.cs new file mode 100644 index 000000000000..207c13c0a562 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineModel.cs @@ -0,0 +1,193 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A SQL virtual machine. + /// + [Rest.Serialization.JsonTransformation] + public partial class SqlVirtualMachineModel : TrackedResource + { + /// + /// Initializes a new instance of the SqlVirtualMachineModel class. + /// + public SqlVirtualMachineModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlVirtualMachineModel class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// Azure Active Directory identity of the + /// server. + /// ARM Resource id of + /// underlying virtual machine created from SQL marketplace + /// image. + /// Provisioning state to track the + /// async operation status. + /// SQL image offer. Examples include + /// SQL2016-WS2016, SQL2017-WS2016. + /// SQL Server license type. + /// Possible values include: 'PAYG', 'AHUB' + /// SQL Server Management type. Possible + /// values include: 'Full', 'LightWeight', 'NoAgent' + /// SQL Server edition type. Possible values + /// include: 'Developer', 'Express', 'Standard', 'Enterprise', + /// 'Web' + /// ARM resource id of + /// the SQL virtual machine group this SQL virtual machine is or will + /// be part of. + /// Domain credentials for setting + /// up Windows Server Failover Cluster for SQL availability + /// group. + /// Auto patching settings for + /// applying critical security updates to SQL virtual machine. + /// Auto backup settings for SQL + /// Server. + /// Key vault credential + /// settings. + /// SQL Server + /// configuration management settings. + public SqlVirtualMachineModel(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string virtualMachineResourceId = default(string), string provisioningState = default(string), string sqlImageOffer = default(string), string sqlServerLicenseType = default(string), string sqlManagement = default(string), string sqlImageSku = default(string), string sqlVirtualMachineGroupResourceId = default(string), WsfcDomainCredentials wsfcDomainCredentials = default(WsfcDomainCredentials), AutoPatchingSettings autoPatchingSettings = default(AutoPatchingSettings), AutoBackupSettings autoBackupSettings = default(AutoBackupSettings), KeyVaultCredentialSettings keyVaultCredentialSettings = default(KeyVaultCredentialSettings), ServerConfigurationsManagementSettings serverConfigurationsManagementSettings = default(ServerConfigurationsManagementSettings)) + : base(location, id, name, type, tags) + { + Identity = identity; + VirtualMachineResourceId = virtualMachineResourceId; + ProvisioningState = provisioningState; + SqlImageOffer = sqlImageOffer; + SqlServerLicenseType = sqlServerLicenseType; + SqlManagement = sqlManagement; + SqlImageSku = sqlImageSku; + SqlVirtualMachineGroupResourceId = sqlVirtualMachineGroupResourceId; + WsfcDomainCredentials = wsfcDomainCredentials; + AutoPatchingSettings = autoPatchingSettings; + AutoBackupSettings = autoBackupSettings; + KeyVaultCredentialSettings = keyVaultCredentialSettings; + ServerConfigurationsManagementSettings = serverConfigurationsManagementSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets azure Active Directory identity of the server. + /// + [JsonProperty(PropertyName = "identity")] + public ResourceIdentity Identity { get; set; } + + /// + /// Gets or sets ARM Resource id of underlying virtual machine created + /// from SQL marketplace image. + /// + [JsonProperty(PropertyName = "properties.virtualMachineResourceId")] + public string VirtualMachineResourceId { get; set; } + + /// + /// Gets provisioning state to track the async operation status. + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets SQL image offer. Examples include SQL2016-WS2016, + /// SQL2017-WS2016. + /// + [JsonProperty(PropertyName = "properties.sqlImageOffer")] + public string SqlImageOffer { get; set; } + + /// + /// Gets or sets SQL Server license type. Possible values include: + /// 'PAYG', 'AHUB' + /// + [JsonProperty(PropertyName = "properties.sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + + /// + /// Gets or sets SQL Server Management type. Possible values include: + /// 'Full', 'LightWeight', 'NoAgent' + /// + [JsonProperty(PropertyName = "properties.sqlManagement")] + public string SqlManagement { get; set; } + + /// + /// Gets or sets SQL Server edition type. Possible values include: + /// 'Developer', 'Express', 'Standard', 'Enterprise', 'Web' + /// + [JsonProperty(PropertyName = "properties.sqlImageSku")] + public string SqlImageSku { get; set; } + + /// + /// Gets or sets ARM resource id of the SQL virtual machine group this + /// SQL virtual machine is or will be part of. + /// + [JsonProperty(PropertyName = "properties.sqlVirtualMachineGroupResourceId")] + public string SqlVirtualMachineGroupResourceId { get; set; } + + /// + /// Gets or sets domain credentials for setting up Windows Server + /// Failover Cluster for SQL availability group. + /// + [JsonProperty(PropertyName = "properties.wsfcDomainCredentials")] + public WsfcDomainCredentials WsfcDomainCredentials { get; set; } + + /// + /// Gets or sets auto patching settings for applying critical security + /// updates to SQL virtual machine. + /// + [JsonProperty(PropertyName = "properties.autoPatchingSettings")] + public AutoPatchingSettings AutoPatchingSettings { get; set; } + + /// + /// Gets or sets auto backup settings for SQL Server. + /// + [JsonProperty(PropertyName = "properties.autoBackupSettings")] + public AutoBackupSettings AutoBackupSettings { get; set; } + + /// + /// Gets or sets key vault credential settings. + /// + [JsonProperty(PropertyName = "properties.keyVaultCredentialSettings")] + public KeyVaultCredentialSettings KeyVaultCredentialSettings { get; set; } + + /// + /// Gets or sets SQL Server configuration management settings. + /// + [JsonProperty(PropertyName = "properties.serverConfigurationsManagementSettings")] + public ServerConfigurationsManagementSettings ServerConfigurationsManagementSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineUpdate.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineUpdate.cs new file mode 100644 index 000000000000..c6ae748bf537 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVirtualMachineUpdate.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An update to a SQL virtual machine. + /// + public partial class SqlVirtualMachineUpdate + { + /// + /// Initializes a new instance of the SqlVirtualMachineUpdate class. + /// + public SqlVirtualMachineUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlVirtualMachineUpdate class. + /// + /// Resource tags. + public SqlVirtualMachineUpdate(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVmGroupImageSku.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVmGroupImageSku.cs new file mode 100644 index 000000000000..6845cdcc6108 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlVmGroupImageSku.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for SqlVmGroupImageSku. + /// + public static class SqlVmGroupImageSku + { + public const string Developer = "Developer"; + public const string Enterprise = "Enterprise"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadType.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadType.cs new file mode 100644 index 000000000000..900e3af0d3a0 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + + /// + /// Defines values for SqlWorkloadType. + /// + public static class SqlWorkloadType + { + public const string GENERAL = "GENERAL"; + public const string OLTP = "OLTP"; + public const string DW = "DW"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadTypeUpdateSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadTypeUpdateSettings.cs new file mode 100644 index 000000000000..dadf806d1755 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/SqlWorkloadTypeUpdateSettings.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Set workload type to optimize storage for SQL Server. + /// + public partial class SqlWorkloadTypeUpdateSettings + { + /// + /// Initializes a new instance of the SqlWorkloadTypeUpdateSettings + /// class. + /// + public SqlWorkloadTypeUpdateSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlWorkloadTypeUpdateSettings + /// class. + /// + /// SQL Server workload type. Possible + /// values include: 'GENERAL', 'OLTP', 'DW' + public SqlWorkloadTypeUpdateSettings(string sqlWorkloadType = default(string)) + { + SqlWorkloadType = sqlWorkloadType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SQL Server workload type. Possible values include: + /// 'GENERAL', 'OLTP', 'DW' + /// + [JsonProperty(PropertyName = "sqlWorkloadType")] + public string SqlWorkloadType { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/TrackedResource.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/TrackedResource.cs new file mode 100644 index 000000000000..e38650bd40ed --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/TrackedResource.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// ARM tracked top level resource. + /// + public partial class TrackedResource : Resource + { + /// + /// Initializes a new instance of the TrackedResource class. + /// + public TrackedResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TrackedResource class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, type) + { + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainCredentials.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainCredentials.cs new file mode 100644 index 000000000000..0f22fa30287d --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainCredentials.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Domain credentials for setting up Windows Server Failover Cluster for + /// SQL availability group. + /// + public partial class WsfcDomainCredentials + { + /// + /// Initializes a new instance of the WsfcDomainCredentials class. + /// + public WsfcDomainCredentials() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WsfcDomainCredentials class. + /// + /// Cluster bootstrap + /// account password. + /// Cluster operator + /// account password. + /// SQL service account + /// password. + public WsfcDomainCredentials(string clusterBootstrapAccountPassword = default(string), string clusterOperatorAccountPassword = default(string), string sqlServiceAccountPassword = default(string)) + { + ClusterBootstrapAccountPassword = clusterBootstrapAccountPassword; + ClusterOperatorAccountPassword = clusterOperatorAccountPassword; + SqlServiceAccountPassword = sqlServiceAccountPassword; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets cluster bootstrap account password. + /// + [JsonProperty(PropertyName = "clusterBootstrapAccountPassword")] + public string ClusterBootstrapAccountPassword { get; set; } + + /// + /// Gets or sets cluster operator account password. + /// + [JsonProperty(PropertyName = "clusterOperatorAccountPassword")] + public string ClusterOperatorAccountPassword { get; set; } + + /// + /// Gets or sets SQL service account password. + /// + [JsonProperty(PropertyName = "sqlServiceAccountPassword")] + public string SqlServiceAccountPassword { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainProfile.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainProfile.cs new file mode 100644 index 000000000000..dcd8b8bc91b0 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Models/WsfcDomainProfile.cs @@ -0,0 +1,126 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Models +{ + using Newtonsoft.Json; + using System; + using System.Linq; + + /// + /// Active Directory account details to operate Windows Server Failover + /// Cluster. + /// + public partial class WsfcDomainProfile + { + /// + /// Initializes a new instance of the WsfcDomainProfile class. + /// + public WsfcDomainProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WsfcDomainProfile class. + /// + /// Fully qualified name of the + /// domain. + /// Organizational Unit path in which the nodes + /// and cluster will be present. + /// Account name used for + /// creating cluster (at minimum needs permissions to 'Create Computer + /// Objects' in domain). + /// Account name used for + /// operating cluster i.e. will be part of administrators group on all + /// the participating virtual machines in the cluster. + /// Account name under which SQL + /// service will run on all participating SQL virtual machines in the + /// cluster. + /// Optional path for fileshare + /// witness. + /// Fully qualified ARM resource id of + /// the witness storage account. + /// Primary key of the witness + /// storage account. + public WsfcDomainProfile(string domainFqdn = default(string), string ouPath = default(string), string clusterBootstrapAccount = default(string), string clusterOperatorAccount = default(string), string sqlServiceAccount = default(string), string fileShareWitnessPath = default(string), string storageAccountUrl = default(string), string storageAccountPrimaryKey = default(string)) + { + DomainFqdn = domainFqdn; + OuPath = ouPath; + ClusterBootstrapAccount = clusterBootstrapAccount; + ClusterOperatorAccount = clusterOperatorAccount; + SqlServiceAccount = sqlServiceAccount; + FileShareWitnessPath = fileShareWitnessPath; + StorageAccountUrl = storageAccountUrl; + StorageAccountPrimaryKey = storageAccountPrimaryKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets fully qualified name of the domain. + /// + [JsonProperty(PropertyName = "domainFqdn")] + public string DomainFqdn { get; set; } + + /// + /// Gets or sets organizational Unit path in which the nodes and + /// cluster will be present. + /// + [JsonProperty(PropertyName = "ouPath")] + public string OuPath { get; set; } + + /// + /// Gets or sets account name used for creating cluster (at minimum + /// needs permissions to 'Create Computer Objects' in domain). + /// + [JsonProperty(PropertyName = "clusterBootstrapAccount")] + public string ClusterBootstrapAccount { get; set; } + + /// + /// Gets or sets account name used for operating cluster i.e. will be + /// part of administrators group on all the participating virtual + /// machines in the cluster. + /// + [JsonProperty(PropertyName = "clusterOperatorAccount")] + public string ClusterOperatorAccount { get; set; } + + /// + /// Gets or sets account name under which SQL service will run on all + /// participating SQL virtual machines in the cluster. + /// + [JsonProperty(PropertyName = "sqlServiceAccount")] + public string SqlServiceAccount { get; set; } + + /// + /// Gets or sets optional path for fileshare witness. + /// + [JsonProperty(PropertyName = "fileShareWitnessPath")] + public string FileShareWitnessPath { get; set; } + + /// + /// Gets or sets fully qualified ARM resource id of the witness storage + /// account. + /// + [JsonProperty(PropertyName = "storageAccountUrl")] + public string StorageAccountUrl { get; set; } + + /// + /// Gets or sets primary key of the witness storage account. + /// + [JsonProperty(PropertyName = "storageAccountPrimaryKey")] + public string StorageAccountPrimaryKey { get; set; } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Operations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Operations.cs new file mode 100644 index 000000000000..d2fe5c15a4d6 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/Operations.cs @@ -0,0 +1,400 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + 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(SqlVirtualMachineManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlVirtualMachineManagementClient + /// + public SqlVirtualMachineManagementClient Client { get; private set; } + + /// + /// Lists all of the available SQL 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.SqlVirtualMachine/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 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; + } + + /// + /// Lists all of the available SQL 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 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/OperationsExtensions.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..a5c2be31720b --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/OperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + 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 SQL 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 SQL 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 SQL 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 SQL 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SdkInfo_SqlVirtualMachineManagementClient.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SdkInfo_SqlVirtualMachineManagementClient.cs new file mode 100644 index 000000000000..28950eb76766 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SdkInfo_SqlVirtualMachineManagementClient.cs @@ -0,0 +1,41 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_SqlVirtualMachineManagementClient + { + get + { + return new Tuple[] + { + new Tuple("SqlVirtualMachine", "AvailabilityGroupListeners", "2017-03-01-preview"), + new Tuple("SqlVirtualMachine", "Operations", "2017-03-01-preview"), + new Tuple("SqlVirtualMachine", "SqlVirtualMachineGroups", "2017-03-01-preview"), + new Tuple("SqlVirtualMachine", "SqlVirtualMachines", "2017-03-01-preview"), + }.AsEnumerable(); + } + } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "latest"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sqlvirtualmachine/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Users\\t-elroc\\Documents\\azure-sdk-for-net\\sdk"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "9d9ee638387862888a72974c98790a63666d427b"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section + } +} + diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperations.cs new file mode 100644 index 000000000000..0bc349f36047 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperations.cs @@ -0,0 +1,1658 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + 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; + + /// + /// SqlVirtualMachineGroupsOperations operations. + /// + internal partial class SqlVirtualMachineGroupsOperations : IServiceOperations, ISqlVirtualMachineGroupsOperations + { + /// + /// Initializes a new instance of the SqlVirtualMachineGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SqlVirtualMachineGroupsOperations(SqlVirtualMachineManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlVirtualMachineManagementClient + /// + public SqlVirtualMachineManagementClient Client { get; private set; } + + /// + /// Gets a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// 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 sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _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; + } + + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets all SQL virtual machine groups in a resource group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// 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.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("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.SqlVirtualMachine/sqlVirtualMachineGroups").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; + } + + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups").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; + } + + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 != 201) + { + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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; + } + + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _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 != 202 && (int)_statusCode != 204) + { + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// 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 sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineGroupName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineGroupName", sqlVirtualMachineGroupName); + tracingParameters.Add("parameters", parameters); + 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.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineGroupName}", System.Uri.EscapeDataString(sqlVirtualMachineGroupName)); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + 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; + } + + /// + /// Gets all SQL virtual machine groups in a 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; + } + + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperationsExtensions.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..3e8c4ba95dd6 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineGroupsOperationsExtensions.cs @@ -0,0 +1,469 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SqlVirtualMachineGroupsOperations. + /// + public static partial class SqlVirtualMachineGroupsOperationsExtensions + { + /// + /// Gets a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + public static SqlVirtualMachineGroup Get(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName) + { + return operations.GetAsync(resourceGroupName, sqlVirtualMachineGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + public static SqlVirtualMachineGroup CreateOrUpdate(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + public static void Delete(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName) + { + operations.DeleteAsync(resourceGroupName, sqlVirtualMachineGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + public static SqlVirtualMachineGroup Update(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all SQL virtual machine groups in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + public static IPage ListByResourceGroup(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machine groups in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this ISqlVirtualMachineGroupsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ISqlVirtualMachineGroupsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + public static SqlVirtualMachineGroup BeginCreateOrUpdate(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + public static void BeginDelete(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName) + { + operations.BeginDeleteAsync(resourceGroupName, sqlVirtualMachineGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a SQL virtual machine group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + public static SqlVirtualMachineGroup BeginUpdate(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates SQL virtual machine group tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine group. + /// + /// + /// The SQL virtual machine group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this ISqlVirtualMachineGroupsOperations operations, string resourceGroupName, string sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all SQL virtual machine groups in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this ISqlVirtualMachineGroupsOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machine groups in a 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 ISqlVirtualMachineGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ISqlVirtualMachineGroupsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machine groups in a subscription. + /// + /// + /// 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 ISqlVirtualMachineGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineManagementClient.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineManagementClient.cs new file mode 100644 index 000000000000..1dcc22834360 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachineManagementClient.cs @@ -0,0 +1,382 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + 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; + + /// + /// The SQL virtual machine management API provides a RESTful set of web + /// APIs that interact with Azure Compute, Network & Storage services + /// to manage your SQL Server virtual machine. The API enables users to + /// create, delete and retrieve a SQL virtual machine, SQL virtual machine + /// group or availability group listener. + /// + public partial class SqlVirtualMachineManagementClient : ServiceClient, ISqlVirtualMachineManagementClient, 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; } + + /// + /// Subscription ID that identifies an Azure subscription. + /// + public string SubscriptionId { get; set; } + + /// + /// API version to use for the request. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. 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 IAvailabilityGroupListenersOperations. + /// + public virtual IAvailabilityGroupListenersOperations AvailabilityGroupListeners { get; private set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the ISqlVirtualMachineGroupsOperations. + /// + public virtual ISqlVirtualMachineGroupsOperations SqlVirtualMachineGroups { get; private set; } + + /// + /// Gets the ISqlVirtualMachinesOperations. + /// + public virtual ISqlVirtualMachinesOperations SqlVirtualMachines { get; private set; } + + /// + /// Initializes a new instance of the SqlVirtualMachineManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling SqlVirtualMachineManagementClient.Dispose(). False: will not dispose provided httpClient + protected SqlVirtualMachineManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the SqlVirtualMachineManagementClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected SqlVirtualMachineManagementClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the SqlVirtualMachineManagementClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected SqlVirtualMachineManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the SqlVirtualMachineManagementClient 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 SqlVirtualMachineManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the SqlVirtualMachineManagementClient 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 SqlVirtualMachineManagementClient(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 SqlVirtualMachineManagementClient 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 SqlVirtualMachineManagementClient(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 SqlVirtualMachineManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling SqlVirtualMachineManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public SqlVirtualMachineManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the SqlVirtualMachineManagementClient 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 SqlVirtualMachineManagementClient(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 SqlVirtualMachineManagementClient 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 SqlVirtualMachineManagementClient(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 SqlVirtualMachineManagementClient 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 SqlVirtualMachineManagementClient(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() + { + AvailabilityGroupListeners = new AvailabilityGroupListenersOperations(this); + Operations = new Operations(this); + SqlVirtualMachineGroups = new SqlVirtualMachineGroupsOperations(this); + SqlVirtualMachines = new SqlVirtualMachinesOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2017-03-01-preview"; + 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/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperations.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperations.cs new file mode 100644 index 000000000000..5ce7c101d2d5 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperations.cs @@ -0,0 +1,1666 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + 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; + + /// + /// SqlVirtualMachinesOperations operations. + /// + internal partial class SqlVirtualMachinesOperations : IServiceOperations, ISqlVirtualMachinesOperations + { + /// + /// Initializes a new instance of the SqlVirtualMachinesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SqlVirtualMachinesOperations(SqlVirtualMachineManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlVirtualMachineManagementClient + /// + public SqlVirtualMachineManagementClient Client { get; private set; } + + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines").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; + } + + /// + /// Gets a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The child resources to include in the response. + /// + /// + /// 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 sqlVirtualMachineName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineName", sqlVirtualMachineName); + tracingParameters.Add("expand", expand); + 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.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineName}", System.Uri.EscapeDataString(sqlVirtualMachineName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + 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; + } + + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets all SQL virtual machines in a resource group. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// 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.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("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.SqlVirtualMachine/sqlVirtualMachines").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; + } + + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineName", sqlVirtualMachineName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineName}", System.Uri.EscapeDataString(sqlVirtualMachineName)); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 != 201) + { + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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; + } + + /// + /// Deletes a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string sqlVirtualMachineName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineName", sqlVirtualMachineName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineName}", System.Uri.EscapeDataString(sqlVirtualMachineName)); + _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 != 202 && (int)_statusCode != 204) + { + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates a SQL virtual machine. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// 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 sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (sqlVirtualMachineName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sqlVirtualMachineName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sqlVirtualMachineName", sqlVirtualMachineName); + tracingParameters.Add("parameters", parameters); + 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.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sqlVirtualMachineName}", System.Uri.EscapeDataString(sqlVirtualMachineName)); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + 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; + } + + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// 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; + } + + /// + /// Gets all SQL virtual machines in a 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; + } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperationsExtensions.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperationsExtensions.cs new file mode 100644 index 000000000000..945541322910 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated/SqlVirtualMachinesOperationsExtensions.cs @@ -0,0 +1,475 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.SqlVirtualMachine +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SqlVirtualMachinesOperations. + /// + public static partial class SqlVirtualMachinesOperationsExtensions + { + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this ISqlVirtualMachinesOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ISqlVirtualMachinesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The child resources to include in the response. + /// + public static SqlVirtualMachineModel Get(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, string expand = default(string)) + { + return operations.GetAsync(resourceGroupName, sqlVirtualMachineName, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The child resources to include in the response. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + public static SqlVirtualMachineModel CreateOrUpdate(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, sqlVirtualMachineName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + public static void Delete(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName) + { + operations.DeleteAsync(resourceGroupName, sqlVirtualMachineName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + public static SqlVirtualMachineModel Update(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, sqlVirtualMachineName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all SQL virtual machines in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + public static IPage ListByResourceGroup(this ISqlVirtualMachinesOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machines in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + public static SqlVirtualMachineModel BeginCreateOrUpdate(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, sqlVirtualMachineName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineModel parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + public static void BeginDelete(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName) + { + operations.BeginDeleteAsync(resourceGroupName, sqlVirtualMachineName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + public static SqlVirtualMachineModel BeginUpdate(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, sqlVirtualMachineName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a SQL virtual machine. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group that contains the resource. You can obtain this + /// value from the Azure Resource Manager API or the portal. + /// + /// + /// Name of the SQL virtual machine. + /// + /// + /// The SQL virtual machine. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this ISqlVirtualMachinesOperations operations, string resourceGroupName, string sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, sqlVirtualMachineName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ISqlVirtualMachinesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machines in a subscription. + /// + /// + /// 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 ISqlVirtualMachinesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all SQL virtual machines in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this ISqlVirtualMachinesOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all SQL virtual machines in a 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 ISqlVirtualMachinesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Microsoft.Azure.Management.SqlVirtualMachine.csproj b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Microsoft.Azure.Management.SqlVirtualMachine.csproj new file mode 100644 index 000000000000..e1ac40033956 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Microsoft.Azure.Management.SqlVirtualMachine.csproj @@ -0,0 +1,28 @@ + + + + + + + Microsoft.Azure.Management.SqlVirtualMachine + Microsoft Azure SqlVirtualMachine Library + Microsoft.Azure.Management.SqlVirtualMachine + 1.0.0 + Microsoft Azure Library;SqlVirtualMachine; + + + + + + + $(SdkTargetFx) + + + + + + \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Properties/AssemblyInfo.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..7c00b37f8d6f --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Properties/AssemblyInfo.cs @@ -0,0 +1,18 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// 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: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SqlVirtualMachine.Tests")] +[assembly: AssemblyTrademark("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e84e09ed-08e3-4de4-b769-371ec87c4ee9")] diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/generate.ps1 b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/generate.ps1 new file mode 100644 index 000000000000..ec44c49e9677 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/generate.ps1 @@ -0,0 +1 @@ +Start-AutoRestCodeGeneration -ResourceProvider "sqlvirtualmachine/resource-manager" -AutoRestVersion "latest" -SdkRepoRootPath "." \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/AvailabilityGroupListenersScenarioTest.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/AvailabilityGroupListenersScenarioTest.cs new file mode 100644 index 000000000000..62a8eb40ac22 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/AvailabilityGroupListenersScenarioTest.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.SqlVirtualMachine; +using Microsoft.Azure.Management.SqlVirtualMachine.Models; +using Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities; +using Microsoft.Rest.Azure; +using Xunit; + +namespace SqlVirtualMachine.Tests +{ + public class AvailabilityGroupListenersScenarioTest + { + [Fact] + public void TestCreateListDeleteAvailabilityGroupListeners() + { + using (SqlVirtualMachineTestContext context = new SqlVirtualMachineTestContext(this)) + { + string groupName = "test-group"; + string agListenerName = "AGListener"; + IAvailabilityGroupListenersOperations sqlOperations = context.getSqlClient().AvailabilityGroupListeners; + + // Create AG listener + AvailabilityGroupListener agListener = SqlVirtualMachineTestBase.CreateAGListener(context, agListenerName, groupName); + + // Recover + AvailabilityGroupListener agListener2 = sqlOperations.Get(context.resourceGroup.Name, groupName, agListener.Name); + SqlVirtualMachineTestBase.ValidateAGListener(agListener, agListener2); + + // List + IPage list = sqlOperations.ListByGroup(context.resourceGroup.Name, groupName); + foreach (AvailabilityGroupListener ag in list) + { + if (ag.Id.Equals(agListener.Id)) + { + SqlVirtualMachineTestBase.ValidateAGListener(agListener, ag); + } + } + + // Delete AG listener + sqlOperations.Delete(context.resourceGroup.Name, groupName, agListenerName); + list = sqlOperations.ListByGroup(context.resourceGroup.Name, groupName); + Assert.False(list.GetEnumerator().MoveNext()); + } + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Microsoft.Azure.Management.SqlVirtualMachine.Tests.csproj b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Microsoft.Azure.Management.SqlVirtualMachine.Tests.csproj new file mode 100644 index 000000000000..37f10431457d --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Microsoft.Azure.Management.SqlVirtualMachine.Tests.csproj @@ -0,0 +1,36 @@ + + + + SqlVirtualMachine.Tests + SqlVirtualMachine Tests Class Library + SqlVirtualMachine.Tests + 1.0.0 + true + true + + + + + + + + + + + + + + + + + PreserveNewest + + + + + + + + + + \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/OperationsScenarioTests.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/OperationsScenarioTests.cs new file mode 100644 index 000000000000..96c9b2726a74 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/OperationsScenarioTests.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.SqlVirtualMachine; +using Microsoft.Azure.Management.SqlVirtualMachine.Models; +using Microsoft.Azure.Management.Compute; +using Microsoft.Rest.Azure; +using Xunit; + +namespace SqlVirtualMachine.Tests +{ + public class OperationsScenarioTests + { + [Fact] + public void TestListOperations() + { + using (SqlVirtualMachineTestContext context = new SqlVirtualMachineTestContext(this)) + { + context.getSqlClient().Operations.ListWithHttpMessagesAsync(); + } + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Properties/AssemblyInfo.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..2f571e96a93a --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +using System.Reflection; +using System.Runtime.InteropServices; +using System; +using System.Resources; + +// 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: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Azure .NET SDK")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +[assembly: AssemblyTitle("Microsoft Azure SQL VM Library")] +[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure SQL VM.")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] + diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.AvailabilityGroupListenersScenarioTest/TestCreateListDeleteAvailabilityGroupListeners.json b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.AvailabilityGroupListenersScenarioTest/TestCreateListDeleteAvailabilityGroupListeners.json new file mode 100644 index 000000000000..c8e3c75b24d8 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.AvailabilityGroupListenersScenarioTest/TestCreateListDeleteAvailabilityGroupListeners.json @@ -0,0 +1,23308 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "180b11d8-127e-4536-8992-8595364fe8e3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ab7ac2fa-a041-42e0-9cb5-3099d0477d79" + ], + "x-ms-correlation-request-id": [ + "ab7ac2fa-a041-42e0-9cb5-3099d0477d79" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043638Z:ab7ac2fa-a041-42e0-9cb5-3099d0477d79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:37 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000\",\r\n \"name\": \"sqlvmcrudtest-5000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMT9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67161716-0ce4-4216-9efb-e2ed5f5617fd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "5d66daf0-54e2-4996-89db-a7816286cffc" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/5d66daf0-54e2-4996-89db-a7816286cffc?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "b3e1323e-1778-4ea0-82cf-b4f045ad6b7d" + ], + "x-ms-arm-service-request-id": [ + "cd229a79-50f6-48dc-a84b-047d348fb8f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043640Z:b3e1323e-1778-4ea0-82cf-b4f045ad6b7d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:39 GMT" + ], + "Content-Length": [ + "7458" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"c9e8bdf8-0d58-44a5-8af7-2e51f7ac36fd\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"6fb6c62b-da74-45cc-b261-8f44d5c378a1\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/5d66daf0-54e2-4996-89db-a7816286cffc?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNWQ2NmRhZjAtNTRlMi00OTk2LTg5ZGItYTc4MTYyODZjZmZjP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "370b5e6f-ac63-4bfc-b8df-ba442b43ac8f" + ], + "x-ms-correlation-request-id": [ + "13fe917b-16d6-4bd7-8a12-af6264da6420" + ], + "x-ms-arm-service-request-id": [ + "ad004e3e-68f5-4260-9f52-9ee73320bcff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043643Z:13fe917b-16d6-4bd7-8a12-af6264da6420" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:42 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMT9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\"" + ], + "x-ms-request-id": [ + "ec7149a7-035b-44f1-9343-ca6ed2098d1f" + ], + "x-ms-correlation-request-id": [ + "8b6351c3-930b-4f6e-89dd-4a6e2ade85a0" + ], + "x-ms-arm-service-request-id": [ + "621f9a68-3672-48e4-99b0-9540496a30fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043643Z:8b6351c3-930b-4f6e-89dd-4a6e2ade85a0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:42 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"c9e8bdf8-0d58-44a5-8af7-2e51f7ac36fd\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMT9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "47072a5b-7145-4740-bbf3-e8f56877f22f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\"" + ], + "x-ms-request-id": [ + "8ebc4f57-bd64-4c06-8a36-b8a345a5d14c" + ], + "x-ms-correlation-request-id": [ + "4e020813-cbca-42f5-93b5-56c9ccb02039" + ], + "x-ms-arm-service-request-id": [ + "12e997ee-c884-4f16-bdef-45af577684cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043643Z:4e020813-cbca-42f5-93b5-56c9ccb02039" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:43 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"c9e8bdf8-0d58-44a5-8af7-2e51f7ac36fd\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"c9e8bdf8-0d58-44a5-8af7-2e51f7ac36fd\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\",\r\n \"location\": \"westus\"\r\n }\r\n },\r\n \"name\": \"test-2\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a4e4d6bf-1e5f-4475-b292-f8ef81e33efe" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "8740" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "0c6164a8-7b06-468d-8c60-549db15de45f" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/0c6164a8-7b06-468d-8c60-549db15de45f?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "5627f195-75c1-44ec-893d-a820c55f585f" + ], + "x-ms-arm-service-request-id": [ + "d078acd0-f38b-4c94-9150-62d0592b3c89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043644Z:5627f195-75c1-44ec-893d-a820c55f585f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:43 GMT" + ], + "Content-Length": [ + "1355" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"2a33cad5-0990-4b10-9a39-aaf7c154403d\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"d3c6d468-889e-453b-81dc-daf98dcd38d1\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\",\r\n \"etag\": \"W/\\\"2a33cad5-0990-4b10-9a39-aaf7c154403d\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/0c6164a8-7b06-468d-8c60-549db15de45f?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMGM2MTY0YTgtN2IwNi00NjhkLThjNjAtNTQ5ZGIxNWRlNDVmP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3be3341c-c21e-4334-8a63-fae363b4b555" + ], + "x-ms-correlation-request-id": [ + "bd3a76d8-f479-42e9-8994-00b41609a854" + ], + "x-ms-arm-service-request-id": [ + "526c9a18-4455-49df-9842-472552369894" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043647Z:bd3a76d8-f479-42e9-8994-00b41609a854" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:46 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\"" + ], + "x-ms-request-id": [ + "065bf781-8189-454b-99fe-3f901b717094" + ], + "x-ms-correlation-request-id": [ + "2ed14e02-0c4e-4a16-9598-b5701aa6a945" + ], + "x-ms-arm-service-request-id": [ + "1ae75513-e755-4b2f-870e-d7f7281a5a8d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043647Z:2ed14e02-0c4e-4a16-9598-b5701aa6a945" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:46 GMT" + ], + "Content-Length": [ + "1357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"d3c6d468-889e-453b-81dc-daf98dcd38d1\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "34280d30-b972-4083-9314-d5e76faba9f1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\"" + ], + "x-ms-request-id": [ + "d8fa6b45-f0a9-42e3-803e-75876cb2d420" + ], + "x-ms-correlation-request-id": [ + "a951e13a-2724-4f37-a38a-716e9d4b308d" + ], + "x-ms-arm-service-request-id": [ + "aea95cc8-f6bf-45ce-b01a-dce0b1217c68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043647Z:a951e13a-2724-4f37-a38a-716e9d4b308d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:46 GMT" + ], + "Content-Length": [ + "1357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"d3c6d468-889e-453b-81dc-daf98dcd38d1\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC01P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-6\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "52cbf84a-b146-4ca5-90ef-44ce1d9780a1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "200" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "24d241ce-9240-4cf7-9ad3-85cb45804863" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/24d241ce-9240-4cf7-9ad3-85cb45804863?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "f1482037-e33c-49a4-9cd3-2f990764df0b" + ], + "x-ms-arm-service-request-id": [ + "6dcb9ed0-4983-44f8-8862-31d803012afd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043648Z:f1482037-e33c-49a4-9cd3-2f990764df0b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:48 GMT" + ], + "Content-Length": [ + "783" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-5\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5\",\r\n \"etag\": \"W/\\\"bec2b32c-f363-4dfd-af04-9193057e5520\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"5ff74b1c-072e-4553-996f-6ec52653a44a\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-6\",\r\n \"fqdn\": \"test-6.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/24d241ce-9240-4cf7-9ad3-85cb45804863?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjRkMjQxY2UtOTI0MC00Y2Y3LTlhZDMtODVjYjQ1ODA0ODYzP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7e14db83-6247-4ba2-a111-7b8a6fdc8970" + ], + "x-ms-correlation-request-id": [ + "c2b0a6ff-9545-49af-a1f2-6512aa192150" + ], + "x-ms-arm-service-request-id": [ + "a87ecc45-b1b0-4f5d-8d41-4d6511f61b6b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043649Z:c2b0a6ff-9545-49af-a1f2-6512aa192150" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:49 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC01P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"dc8c9c85-83f9-4d43-8557-b03fc2460e21\"" + ], + "x-ms-request-id": [ + "6d3b2e3c-9603-4997-9253-f6b49826df62" + ], + "x-ms-correlation-request-id": [ + "e4a31178-3679-4086-8dc4-2fac8df93a3a" + ], + "x-ms-arm-service-request-id": [ + "a42ee457-df0a-4fdd-a29e-5e65c89fdde3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043649Z:e4a31178-3679-4086-8dc4-2fac8df93a3a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:49 GMT" + ], + "Content-Length": [ + "784" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-5\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5\",\r\n \"etag\": \"W/\\\"dc8c9c85-83f9-4d43-8557-b03fc2460e21\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"5ff74b1c-072e-4553-996f-6ec52653a44a\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-6\",\r\n \"fqdn\": \"test-6.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC01P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f37cce41-8ce0-47aa-9393-518c8fefa2f3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"dc8c9c85-83f9-4d43-8557-b03fc2460e21\"" + ], + "x-ms-request-id": [ + "b2833285-fb16-4028-a23e-60dc5a8be699" + ], + "x-ms-correlation-request-id": [ + "ecaaa715-87a7-44c9-877a-e354131b4c17" + ], + "x-ms-arm-service-request-id": [ + "56d867d3-b793-4a58-a42e-d82a866bde7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043649Z:ecaaa715-87a7-44c9-877a-e354131b4c17" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:49 GMT" + ], + "Content-Length": [ + "784" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-5\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5\",\r\n \"etag\": \"W/\\\"dc8c9c85-83f9-4d43-8557-b03fc2460e21\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"5ff74b1c-072e-4553-996f-6ec52653a44a\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-6\",\r\n \"fqdn\": \"test-6.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"c9e8bdf8-0d58-44a5-8af7-2e51f7ac36fd\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"2ed132cf-88fd-475f-9158-59edbe5c9d9b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\",\r\n \"location\": \"westus\"\r\n },\r\n \"ipConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-2\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"publicIPAddress\": {\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-6\",\r\n \"fqdn\": \"test-6.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"idleTimeoutInMinutes\": 4,\r\n \"resourceGuid\": \"5ff74b1c-072e-4553-996f-6ec52653a44a\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"dc8c9c85-83f9-4d43-8557-b03fc2460e21\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n }\r\n },\r\n \"name\": \"test-7\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "da4d4958-d44b-410a-82ad-17638d316815" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "9327" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d9a2ccbb-5701-465a-a97f-aa9bcdd40a82" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/d9a2ccbb-5701-465a-a97f-aa9bcdd40a82?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "66dc50f7-93e0-430b-bef0-0da8f41eb0c8" + ], + "x-ms-arm-service-request-id": [ + "f5717ef8-234b-4d57-94fc-4ae8ba56acb1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043650Z:66dc50f7-93e0-430b-bef0-0da8f41eb0c8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:49 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"490936c7-76fe-44ef-ad01-69b07ac4f51f\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\"" + ], + "x-ms-request-id": [ + "273a50d5-2d71-446d-a043-ee34b7945cad" + ], + "x-ms-correlation-request-id": [ + "c5572efb-2909-4fd7-a6dd-aa39892cab72" + ], + "x-ms-arm-service-request-id": [ + "3433d519-e40b-4e43-a615-53a5a669cb27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043650Z:c5572efb-2909-4fd7-a6dd-aa39892cab72" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:49 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"490936c7-76fe-44ef-ad01-69b07ac4f51f\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0512d24d-f8f8-4184-90ec-6446c42c43e4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\"" + ], + "x-ms-request-id": [ + "a1291755-736b-4752-8ad1-1469101b45d0" + ], + "x-ms-correlation-request-id": [ + "80a5df07-a324-42f9-b052-6f9b3f9888b3" + ], + "x-ms-arm-service-request-id": [ + "f4ad15be-468e-4a1a-b698-cda6795a1bb1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043650Z:80a5df07-a324-42f9-b052-6f9b3f9888b3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:50 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"490936c7-76fe-44ef-ad01-69b07ac4f51f\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"8357b5ab-d414-485b-8d1c-8e0a8fed8057\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-5\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/SQL2017-WS2016/skus/Enterprise/versions?$top=1&api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL3B1Ymxpc2hlcnMvTWljcm9zb2Z0U1FMU2VydmVyL2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMvU1FMMjAxNy1XUzIwMTYvc2t1cy9FbnRlcnByaXNlL3ZlcnNpb25zPyR0b3A9MSZhcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a78daf3-0c63-4a46-8717-219e79448eea" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "cf097b76-b9c6-4870-8191-a8cdd13d756c_132037460644438088" + ], + "x-ms-request-id": [ + "c3b496c4-76a7-4e8c-871d-bd80098f82c8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "b2e8e50e-a2eb-455d-822e-31d56b0a1a79" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043650Z:b2e8e50e-a2eb-455d-822e-31d56b0a1a79" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:50 GMT" + ], + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"14.1.190220\",\r\n \"id\": \"/Subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftSQLServer/ArtifactTypes/VMImage/Offers/SQL2017-WS2016/Skus/Enterprise/Versions/14.1.190220\"\r\n }\r\n]", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/SQL2017-WS2016/skus/Enterprise/versions?$top=1&api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL3B1Ymxpc2hlcnMvTWljcm9zb2Z0U1FMU2VydmVyL2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMvU1FMMjAxNy1XUzIwMTYvc2t1cy9FbnRlcnByaXNlL3ZlcnNpb25zPyR0b3A9MSZhcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "caa1a1a5-9101-4847-bf7a-3cc1a2471b3a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "cf097b76-b9c6-4870-8191-a8cdd13d756c_132037460644438088" + ], + "x-ms-request-id": [ + "52732b9c-d8d3-4191-b234-2c955a434c99" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-correlation-request-id": [ + "1a701d44-72de-4e30-b68d-9fe35a0c7c4f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050521Z:1a701d44-72de-4e30-b68d-9fe35a0c7c4f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:21 GMT" + ], + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"14.1.190220\",\r\n \"id\": \"/Subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftSQLServer/ArtifactTypes/VMImage/Offers/SQL2017-WS2016/Skus/Enterprise/Versions/14.1.190220\"\r\n }\r\n]", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/SQL2017-WS2016/skus/Enterprise/versions?$top=1&api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL3B1Ymxpc2hlcnMvTWljcm9zb2Z0U1FMU2VydmVyL2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMvU1FMMjAxNy1XUzIwMTYvc2t1cy9FbnRlcnByaXNlL3ZlcnNpb25zPyR0b3A9MSZhcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ff207be-44fb-4013-b131-cdfafe76a3f0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "cf097b76-b9c6-4870-8191-a8cdd13d756c_132037460644438088" + ], + "x-ms-request-id": [ + "81212b7e-3737-49fe-ab1a-5409b8ded37a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "x-ms-correlation-request-id": [ + "39b75184-9971-46fe-8a4f-cd1cf4fdd7ae" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050902Z:39b75184-9971-46fe-8a4f-cd1cf4fdd7ae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:09:01 GMT" + ], + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"14.1.190220\",\r\n \"id\": \"/Subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftSQLServer/ArtifactTypes/VMImage/Offers/SQL2017-WS2016/Skus/Enterprise/Versions/14.1.190220\"\r\n }\r\n]", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOT9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"FromImage\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"Empty\",\r\n \"diskSizeGB\": 30,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"adminPassword\": \"sql@zure123!\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e31a780e-a359-4b0d-8420-9ce2867ad031" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1332" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/d67092ea-d5cc-45cd-9350-21a614367d8c?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1198" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "d67092ea-d5cc-45cd-9350-21a614367d8c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "1f63931b-a237-45ed-b6b8-0dfef2f4a9e4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043651Z:1f63931b-a237-45ed-b6b8-0dfef2f4a9e4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:51 GMT" + ], + "Content-Length": [ + "1638" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-9\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"92112a73-b1bd-4d9e-b392-a8fb27a38436\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/d67092ea-d5cc-45cd-9350-21a614367d8c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZDY3MDkyZWEtZDVjYy00NWNkLTkzNTAtMjFhNjE0MzY3ZDhjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "70" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29929" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "a0540b02-100e-4e70-b9fa-4ee331a67602" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "d1f05234-e13f-40b3-aa0e-9b07b79a2d6b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043701Z:d1f05234-e13f-40b3-aa0e-9b07b79a2d6b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:37:01 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:36:51.3900566-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"d67092ea-d5cc-45cd-9350-21a614367d8c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/d67092ea-d5cc-45cd-9350-21a614367d8c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZDY3MDkyZWEtZDVjYy00NWNkLTkzNTAtMjFhNjE0MzY3ZDhjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29928" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "846f4f72-fd5c-4b4d-bcb5-c17c9b0aa048" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "dc8bcb68-4b32-456c-9ebf-e78e7d45de67" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043811Z:dc8bcb68-4b32-456c-9ebf-e78e7d45de67" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:38:11 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:36:51.3900566-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"d67092ea-d5cc-45cd-9350-21a614367d8c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/d67092ea-d5cc-45cd-9350-21a614367d8c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZDY3MDkyZWEtZDVjYy00NWNkLTkzNTAtMjFhNjE0MzY3ZDhjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29925" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "b554ecf2-6413-4130-8a68-6fd5f9aa39a6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "91a66010-fdca-4509-8df3-a8d511dd41fd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043921Z:91a66010-fdca-4509-8df3-a8d511dd41fd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:39:21 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:36:51.3900566-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"d67092ea-d5cc-45cd-9350-21a614367d8c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/d67092ea-d5cc-45cd-9350-21a614367d8c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZDY3MDkyZWEtZDVjYy00NWNkLTkzNTAtMjFhNjE0MzY3ZDhjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29931" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "6b036794-db23-4b8d-8d75-0ef3ce668775" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "df8d5418-a501-4220-8108-3a2684b19cf6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044031Z:df8d5418-a501-4220-8108-3a2684b19cf6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:40:31 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:36:51.3900566-07:00\",\r\n \"endTime\": \"2019-08-08T21:39:32.3450654-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"d67092ea-d5cc-45cd-9350-21a614367d8c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOT9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31975" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "672353b3-9feb-44c0-a4fa-b1cd809d5a6e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "661fb867-f954-420c-b69c-751051210738" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044031Z:661fb867-f954-420c-b69c-751051210738" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:40:31 GMT" + ], + "Content-Length": [ + "2181" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-9\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"92112a73-b1bd-4d9e-b392-a8fb27a38436\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"test-9_OsDisk_1_4f4785060388435f9ced7bb278bec6c8\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-9_OsDisk_1_4f4785060388435f9ced7bb278bec6c8\"\r\n },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"test-9_disk2_5de8fccb104d4cd5bd411f31982469cf\",\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-9_disk2_5de8fccb104d4cd5bd411f31982469cf\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/InstallDomainController?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOS9leHRlbnNpb25zL0luc3RhbGxEb21haW5Db250cm9sbGVyP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Powershell\",\r\n \"type\": \"DSC\",\r\n \"typeHandlerVersion\": \"2.71\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\r\n \"ModulesURL\": \"https://sqlvirtualmachine.blob.core.windows.net/clitest/CreateADPDC.ps1.zip\",\r\n \"ConfigurationFunction\": \"CreateADPDC.ps1\\\\CreateADPDC\",\r\n \"Properties\": {\r\n \"DomainName\": \"Domain.com\",\r\n \"Admincreds\": {\r\n \"UserName\": \"myvmadmin\",\r\n \"Password\": \"PrivateSettingsRef:adminPassword\"\r\n }\r\n }\r\n },\r\n \"protectedSettings\": {\r\n \"Items\": {\r\n \"AdminPassword\": \"sql@zure123!\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "959bc485-0bac-4c7b-b26f-abe0531646f4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "681" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1197" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "6945d0d9-1428-4ae5-b510-a127fd6f2db9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "2523e9ae-93b6-4406-bccf-ebe2de93dd5b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044032Z:2523e9ae-93b6-4406-bccf-ebe2de93dd5b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:40:32 GMT" + ], + "Content-Length": [ + "797" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"InstallDomainController\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/InstallDomainController\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Creating\",\r\n \"publisher\": \"Microsoft.Powershell\",\r\n \"type\": \"DSC\",\r\n \"typeHandlerVersion\": \"2.71\",\r\n \"settings\": {\r\n \"ModulesURL\": \"https://sqlvirtualmachine.blob.core.windows.net/clitest/CreateADPDC.ps1.zip\",\r\n \"ConfigurationFunction\": \"CreateADPDC.ps1\\\\CreateADPDC\",\r\n \"Properties\": {\r\n \"DomainName\": \"Domain.com\",\r\n \"Admincreds\": {\r\n \"UserName\": \"myvmadmin\",\r\n \"Password\": \"PrivateSettingsRef:adminPassword\"\r\n }\r\n }\r\n }\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29930" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "2612012f-f58d-4d63-91d7-39fc297f6f32" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "0e4f5c5c-8b9d-46c3-88e5-d4ec25643ad3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044102Z:0e4f5c5c-8b9d-46c3-88e5-d4ec25643ad3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:41:01 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29929" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "2b4c38f2-c981-4fca-9895-589f1d5d4d67" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "11ce1271-e78c-42ac-8b69-b79ba89b4d72" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044132Z:11ce1271-e78c-42ac-8b69-b79ba89b4d72" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:41:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29928" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "c84f2595-a4c9-4694-821f-11a9b5e88ad1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "93da70f2-d7d8-4d8e-aae7-ca3bd45c7c97" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044202Z:93da70f2-d7d8-4d8e-aae7-ca3bd45c7c97" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:42:02 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29927" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "7670edc1-b08f-4323-b7f2-d028af2b6590" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "91cef715-a93f-4545-8955-65768e6c40ca" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044232Z:91cef715-a93f-4545-8955-65768e6c40ca" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:42:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29924" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "959dd4a9-1bba-4405-a8ec-077d0f6b801f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "6880bbd0-76a9-4e73-bd9c-1fa1a62c31d8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044303Z:6880bbd0-76a9-4e73-bd9c-1fa1a62c31d8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:43:02 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29921" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "e0714ccb-9520-4462-a529-8f13bdccc21d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "acb0af60-651f-4cb6-973a-81d514090c02" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044333Z:acb0af60-651f-4cb6-973a-81d514090c02" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:43:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29919" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "6f3b24fc-de19-4108-b04a-1de0407847fc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "9d1ce549-5b3a-4312-b572-eaf90e7167ee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044403Z:9d1ce549-5b3a-4312-b572-eaf90e7167ee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:44:03 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29916" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "5636afc9-ceea-4e65-8d43-820d75bee8f1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "859cae83-fea2-4d13-971f-59b9e678b9b2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044433Z:859cae83-fea2-4d13-971f-59b9e678b9b2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:44:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29915" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "048fdf8a-bf00-4f20-a9b5-da080a551993" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "3b34a2d1-6bf0-4f6c-907e-83fe59180273" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044503Z:3b34a2d1-6bf0-4f6c-907e-83fe59180273" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:45:02 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29913" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "13cef1db-2163-47d8-bb0d-30f185e1d10b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "ac3edb3b-4a23-4ddd-81c3-d4c869a5cbce" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044533Z:ac3edb3b-4a23-4ddd-81c3-d4c869a5cbce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:45:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29910" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "54b2042e-8364-48e7-a165-6db137778bfb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "4f11b222-bdf2-45f9-a9d1-687b5145f7eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044603Z:4f11b222-bdf2-45f9-a9d1-687b5145f7eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:46:03 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29907" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "298abb81-6c60-438a-8c8a-74c0c19d2e63" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "d71f123e-c307-4bc2-889a-0074831c515b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044633Z:d71f123e-c307-4bc2-889a-0074831c515b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:46:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29904" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "f4ac719d-728e-46f4-9534-5a72e97552ca" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "2bf9df96-a2ed-4bb6-a311-af51707ab35c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044703Z:2bf9df96-a2ed-4bb6-a311-af51707ab35c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:47:03 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29901" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "5574cddf-3d8e-4f47-bcd8-6432e936b6f1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "bb5ed38f-5d40-464d-8684-7bcd98b2b517" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044733Z:bb5ed38f-5d40-464d-8684-7bcd98b2b517" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:47:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29898" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "06d3911a-75ab-4256-bf1a-deb33bd5cbf2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "bccb8c50-a6c4-4c4d-8e73-af6c1aa12435" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044803Z:bccb8c50-a6c4-4c4d-8e73-af6c1aa12435" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:48:03 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29895" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "262055fa-52f5-441d-9395-988b404643b1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "cc4a890b-40f5-44ca-be15-506c49930c4f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044833Z:cc4a890b-40f5-44ca-be15-506c49930c4f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:48:33 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29892" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "c76e1a53-4382-46b3-b10e-12cc46add020" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "db8d166c-012f-4089-98da-2413a739c449" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044903Z:db8d166c-012f-4089-98da-2413a739c449" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:49:03 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29890" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "88db3bc4-9fa2-4b6b-8bc2-1c8cd9718dd9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "ded87006-7586-472e-900c-6f6118c87901" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T044934Z:ded87006-7586-472e-900c-6f6118c87901" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:49:33 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29906" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "0c0baf68-f5f6-4e8e-bb62-4d6982dd0636" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "60103b1b-a118-402b-8f3b-674bd7320a6f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045004Z:60103b1b-a118-402b-8f3b-674bd7320a6f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:50:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29903" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "71ee325e-4931-4e8d-959d-2491f5e10e9a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "80423168-debd-414b-82cf-b41320cc68ef" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045034Z:80423168-debd-414b-82cf-b41320cc68ef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:50:33 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29900" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "bc254da5-e1b4-40e9-a4bd-30971056d5a7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "f98f488e-fa2b-45be-850a-0d79185c4e7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045104Z:f98f488e-fa2b-45be-850a-0d79185c4e7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:51:03 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29897" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "f95a90bf-4698-48b1-95fa-2898ee7f8bd6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "ac9e4106-dcc3-41dc-b858-a71f2e050b2e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045134Z:ac9e4106-dcc3-41dc-b858-a71f2e050b2e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:51:34 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29895" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "ca21f19c-f0cb-43a4-ae7c-0ceec9d69614" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "b0d941d9-5b4a-409a-9f63-0ff6c54e982f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045204Z:b0d941d9-5b4a-409a-9f63-0ff6c54e982f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:52:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29892" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "b8933177-3292-4b73-877b-6a8785b5b430" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "4be5877d-0606-4451-8384-cde88ab4e60c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045234Z:4be5877d-0606-4451-8384-cde88ab4e60c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:52:34 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29889" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "db8c1be7-437a-4bed-bc51-ee49c26a82f4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "8ebcc922-2c68-442b-8f98-2516ebad9c02" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045304Z:8ebcc922-2c68-442b-8f98-2516ebad9c02" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:53:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29886" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "8540ee0f-fa54-490c-9c76-9902443f94f4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "63786dd4-5259-4d1d-9b52-a739b003a87f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045334Z:63786dd4-5259-4d1d-9b52-a739b003a87f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:53:34 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29883" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "e4364a4d-071b-48ff-987c-718e302afe2a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "d044bc47-91bf-478a-8888-fca73f39c21a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045404Z:d044bc47-91bf-478a-8888-fca73f39c21a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:54:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29880" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "3920ddfe-ad8b-46f3-988c-e6a82ceebf6c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "06e1029a-f16d-4af3-baf2-d7f4db3742b9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045434Z:06e1029a-f16d-4af3-baf2-d7f4db3742b9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:54:34 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29905" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "4527381f-5163-4ccd-8301-11f25e4107ae" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-correlation-request-id": [ + "d5cfefa8-abd4-4ced-be97-73380485c049" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045504Z:d5cfefa8-abd4-4ced-be97-73380485c049" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:55:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29902" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "eb44c1d3-d325-4a03-917c-9ae01dec2979" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "1444cfb9-b403-4692-b1e2-e4f932543bf6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045535Z:1444cfb9-b403-4692-b1e2-e4f932543bf6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:55:34 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29899" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "22419c67-a5b4-4ce1-876e-9c00f5b5bdbb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "07381baa-a401-4e26-8c59-2112ecd61d50" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045605Z:07381baa-a401-4e26-8c59-2112ecd61d50" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:56:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29896" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "505ef116-2d94-413d-84e8-ae498764c621" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "3a1ffc2d-ca6b-41f3-96df-d46e9ee31136" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045635Z:3a1ffc2d-ca6b-41f3-96df-d46e9ee31136" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:56:34 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29893" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "68e17c12-2452-4fda-a903-d9aa003a2d6d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "672d88fd-63b8-4b0f-9f3c-3f81213b9155" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045705Z:672d88fd-63b8-4b0f-9f3c-3f81213b9155" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:57:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29890" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "e8555000-a2ce-4aef-91ce-51fa0111c650" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "cf679447-b771-4f7f-842f-9c309a3df097" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045735Z:cf679447-b771-4f7f-842f-9c309a3df097" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:57:35 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29887" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "66755df8-9f84-43d8-ac92-5640d7c0c27b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "c8fc3d10-c81e-4eef-b6a4-2ef67273adbd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045805Z:c8fc3d10-c81e-4eef-b6a4-2ef67273adbd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:58:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29884" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "1aa229d9-7d0c-407c-a099-87b12c8ccdf8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-correlation-request-id": [ + "7eaa84df-c2e6-48cf-8f63-26d96288854f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045835Z:7eaa84df-c2e6-48cf-8f63-26d96288854f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:58:35 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29882" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "888cc354-4085-4c52-a9c5-5ca787d2f523" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "ac1e012e-c291-4104-8301-13e8784feebf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045905Z:ac1e012e-c291-4104-8301-13e8784feebf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:59:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29879" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "a94e5541-3467-4b00-b6e0-97cfa377ca18" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "eb9f8e10-f180-4498-9005-d5d5c298a7fc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T045935Z:eb9f8e10-f180-4498-9005-d5d5c298a7fc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:59:34 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29889" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "d366f9c8-f08a-4335-b6e9-e28fa89d1374" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "db512934-95e2-4789-9fae-af4211c4cb53" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050005Z:db512934-95e2-4789-9fae-af4211c4cb53" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:00:05 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29886" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "124bcc7b-f12a-4e12-983d-311ed1a06644" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "7b35250e-a5c2-4c4a-8aee-f7435e7937d0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050035Z:7b35250e-a5c2-4c4a-8aee-f7435e7937d0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:00:35 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29883" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "8da16da8-746b-41f6-be36-74a904a884c0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "495479f8-0b82-481d-9ab1-86d88181f93e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050105Z:495479f8-0b82-481d-9ab1-86d88181f93e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:01:05 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29880" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "beff43a8-ff1a-4c58-809d-9b96a0590a37" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "0f62fe1d-be77-4fae-960e-9a591e93d692" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050136Z:0f62fe1d-be77-4fae-960e-9a591e93d692" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:01:35 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/6945d0d9-1428-4ae5-b510-a127fd6f2db9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjk0NWQwZDktMTQyOC00YWU1LWI1MTAtYTEyN2ZkNmYyZGI5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29878" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "c8d258cd-0e75-4ccc-86a5-49d9e15ba718" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "fd25a409-4e3c-47e3-93c4-7bc3d660e09c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050206Z:fd25a409-4e3c-47e3-93c4-7bc3d660e09c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:02:05 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:40:32.3762957-07:00\",\r\n \"endTime\": \"2019-08-08T22:01:38.3479667-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"6945d0d9-1428-4ae5-b510-a127fd6f2db9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/InstallDomainController?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOS9leHRlbnNpb25zL0luc3RhbGxEb21haW5Db250cm9sbGVyP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31991" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "8636bf37-acbf-44d1-bc8f-9d9184df9e10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-correlation-request-id": [ + "2a343bc9-0e67-4bd6-940a-750f24137821" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050206Z:2a343bc9-0e67-4bd6-940a-750f24137821" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:02:06 GMT" + ], + "Content-Length": [ + "798" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"InstallDomainController\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/InstallDomainController\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Powershell\",\r\n \"type\": \"DSC\",\r\n \"typeHandlerVersion\": \"2.71\",\r\n \"settings\": {\r\n \"ModulesURL\": \"https://sqlvirtualmachine.blob.core.windows.net/clitest/CreateADPDC.ps1.zip\",\r\n \"ConfigurationFunction\": \"CreateADPDC.ps1\\\\CreateADPDC\",\r\n \"Properties\": {\r\n \"DomainName\": \"Domain.com\",\r\n \"Admincreds\": {\r\n \"UserName\": \"myvmadmin\",\r\n \"Password\": \"PrivateSettingsRef:adminPassword\"\r\n }\r\n }\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/Domain?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOS9leHRlbnNpb25zL0RvbWFpbj9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"CustomScriptExtension\",\r\n \"typeHandlerVersion\": \"1.9\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\r\n \"FileUris\": [\r\n \"https://strdstore.blob.core.windows.net/test/UPN.ps1\"\r\n ],\r\n \"CommandToExecute\": \"powershell -ExecutionPolicy Unrestricted -File UPN.ps1 myvmadmin Domain.com sqlservice sql@zure123!\",\r\n \"ContentVersion\": \"1.0.0.0\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cdb7ed97-5f56-446f-8c79-2e0cab4ed01f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "488" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9cd14f0b-47d7-44ed-9c76-d439f71127bc?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1198" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "9cd14f0b-47d7-44ed-9c76-d439f71127bc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "ad66cc88-ed87-449b-aace-25f218a3dcb6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050206Z:ad66cc88-ed87-449b-aace-25f218a3dcb6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:02:06 GMT" + ], + "Content-Length": [ + "722" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"Domain\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/Domain\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Creating\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"CustomScriptExtension\",\r\n \"typeHandlerVersion\": \"1.9\",\r\n \"settings\": {\r\n \"FileUris\": [\r\n \"https://strdstore.blob.core.windows.net/test/UPN.ps1\"\r\n ],\r\n \"CommandToExecute\": \"powershell -ExecutionPolicy Unrestricted -File UPN.ps1 myvmadmin Domain.com sqlservice sql@zure123!\",\r\n \"ContentVersion\": \"1.0.0.0\"\r\n }\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9cd14f0b-47d7-44ed-9c76-d439f71127bc?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOWNkMTRmMGItNDdkNy00NGVkLTljNzYtZDQzOWY3MTEyN2JjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29877" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "ca1da10e-5526-47cd-9607-e1a532b8624b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-correlation-request-id": [ + "f8533d75-0b60-4878-a003-f19921641eea" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050258Z:f8533d75-0b60-4878-a003-f19921641eea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:02:58 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:02:06.4260802-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9cd14f0b-47d7-44ed-9c76-d439f71127bc\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9cd14f0b-47d7-44ed-9c76-d439f71127bc?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOWNkMTRmMGItNDdkNy00NGVkLTljNzYtZDQzOWY3MTEyN2JjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29876" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "0b567acc-29a3-4ec9-bc51-a0e31e9dfa58" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-correlation-request-id": [ + "468a5515-4b2c-48a9-89d8-0725040dd2eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050328Z:468a5515-4b2c-48a9-89d8-0725040dd2eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:03:28 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:02:06.4260802-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9cd14f0b-47d7-44ed-9c76-d439f71127bc\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9cd14f0b-47d7-44ed-9c76-d439f71127bc?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOWNkMTRmMGItNDdkNy00NGVkLTljNzYtZDQzOWY3MTEyN2JjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29874" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "89758129-abbf-46ea-9d57-8b40b0598ae2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "3e7703b7-3c46-4dee-b99d-7d3e099e9154" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050358Z:3e7703b7-3c46-4dee-b99d-7d3e099e9154" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:03:58 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:02:06.4260802-07:00\",\r\n \"endTime\": \"2019-08-08T22:03:46.8948025-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"9cd14f0b-47d7-44ed-9c76-d439f71127bc\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/Domain?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOS9leHRlbnNpb25zL0RvbWFpbj9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31989" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "96a8ac6c-ad0c-42b9-98e2-56a2400960f7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "e7e39f32-fac4-453e-8a46-9652d3aba33a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050358Z:e7e39f32-fac4-453e-8a46-9652d3aba33a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:03:58 GMT" + ], + "Content-Length": [ + "723" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"Domain\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9/extensions/Domain\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"CustomScriptExtension\",\r\n \"typeHandlerVersion\": \"1.9\",\r\n \"settings\": {\r\n \"FileUris\": [\r\n \"https://strdstore.blob.core.windows.net/test/UPN.ps1\"\r\n ],\r\n \"CommandToExecute\": \"powershell -ExecutionPolicy Unrestricted -File UPN.ps1 myvmadmin Domain.com sqlservice sql@zure123!\",\r\n \"ContentVersion\": \"1.0.0.0\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000/providers/Microsoft.Resources/deployments/UpdateVNetDNS?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlJlc291cmNlcy9kZXBsb3ltZW50cy9VcGRhdGVWTmV0RE5TP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"templateLink\": {\r\n \"uri\": \"https://strdstore.blob.core.windows.net/test/DNSserver.json\",\r\n \"contentVersion\": \"1.0.0.0\"\r\n },\r\n \"parameters\": {\r\n \"VirtualNetworkName\": {\r\n \"Value\": \"test-3\"\r\n },\r\n \"VirtualNetworkAddressRange\": {\r\n \"Value\": \"10.0.0.0/16\"\r\n },\r\n \"SubnetName\": {\r\n \"Value\": \"test-2\"\r\n },\r\n \"SubnetRange\": {\r\n \"Value\": \"10.0.0.0/24\"\r\n },\r\n \"DNSServerAddress\": {\r\n \"Value\": [\r\n \"10.0.0.4\"\r\n ]\r\n },\r\n \"NetworkSecurityGroupName\": {\r\n \"Value\": \"test-1\"\r\n },\r\n \"Location\": {\r\n \"Value\": \"westus\"\r\n }\r\n },\r\n \"mode\": \"Incremental\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "04a8f272-cd89-410c-9267-e3b84a1b2e66" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "725" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000/providers/Microsoft.Resources/deployments/UpdateVNetDNS/operationStatuses/08586362798455212249?api-version=2017-05-10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ff4885a4-6842-4b23-86ef-a33811104694" + ], + "x-ms-correlation-request-id": [ + "ff4885a4-6842-4b23-86ef-a33811104694" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050400Z:ff4885a4-6842-4b23-86ef-a33811104694" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:03:59 GMT" + ], + "Content-Length": [ + "1063" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Resources/deployments/UpdateVNetDNS\",\r\n \"name\": \"UpdateVNetDNS\",\r\n \"properties\": {\r\n \"templateLink\": {\r\n \"uri\": \"https://strdstore.blob.core.windows.net/test/DNSserver.json\",\r\n \"contentVersion\": \"1.0.0.0\"\r\n },\r\n \"templateHash\": \"16848870226348053658\",\r\n \"parameters\": {\r\n \"virtualNetworkName\": {\r\n \"type\": \"String\",\r\n \"value\": \"test-3\"\r\n },\r\n \"networkSecurityGroupName\": {\r\n \"type\": \"String\",\r\n \"value\": \"test-1\"\r\n },\r\n \"virtualNetworkAddressRange\": {\r\n \"type\": \"String\",\r\n \"value\": \"10.0.0.0/16\"\r\n },\r\n \"subnetName\": {\r\n \"type\": \"String\",\r\n \"value\": \"test-2\"\r\n },\r\n \"subnetRange\": {\r\n \"type\": \"String\",\r\n \"value\": \"10.0.0.0/24\"\r\n },\r\n \"dnsServerAddress\": {\r\n \"type\": \"Array\",\r\n \"value\": [\r\n \"10.0.0.4\"\r\n ]\r\n },\r\n \"location\": {\r\n \"type\": \"String\",\r\n \"value\": \"westus\"\r\n }\r\n },\r\n \"mode\": \"Incremental\",\r\n \"provisioningState\": \"Accepted\",\r\n \"timestamp\": \"2019-08-09T05:04:00.3169992Z\",\r\n \"duration\": \"PT0.3606081S\",\r\n \"correlationId\": \"ff4885a4-6842-4b23-86ef-a33811104694\",\r\n \"providers\": [\r\n {\r\n \"namespace\": \"Microsoft.Network\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"virtualNetworks\",\r\n \"locations\": [\r\n \"westus\"\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"dependencies\": []\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000/providers/Microsoft.Resources/deployments/UpdateVNetDNS/operationStatuses/08586362798455212249?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlJlc291cmNlcy9kZXBsb3ltZW50cy9VcGRhdGVWTmV0RE5TL29wZXJhdGlvblN0YXR1c2VzLzA4NTg2MzYyNzk4NDU1MjEyMjQ5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "a4ad35aa-dc5a-4d39-b0d9-6adf18058259" + ], + "x-ms-correlation-request-id": [ + "a4ad35aa-dc5a-4d39-b0d9-6adf18058259" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050430Z:a4ad35aa-dc5a-4d39-b0d9-6adf18058259" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "22" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000/providers/Microsoft.Resources/deployments/UpdateVNetDNS?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlJlc291cmNlcy9kZXBsb3ltZW50cy9VcGRhdGVWTmV0RE5TP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "9df1aa3d-ab7c-46f5-9aa3-bdea883c37ab" + ], + "x-ms-correlation-request-id": [ + "9df1aa3d-ab7c-46f5-9aa3-bdea883c37ab" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050430Z:9df1aa3d-ab7c-46f5-9aa3-bdea883c37ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "1230" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Resources/deployments/UpdateVNetDNS\",\r\n \"name\": \"UpdateVNetDNS\",\r\n \"properties\": {\r\n \"templateLink\": {\r\n \"uri\": \"https://strdstore.blob.core.windows.net/test/DNSserver.json\",\r\n \"contentVersion\": \"1.0.0.0\"\r\n },\r\n \"templateHash\": \"16848870226348053658\",\r\n \"parameters\": {\r\n \"virtualNetworkName\": {\r\n \"type\": \"String\",\r\n \"value\": \"test-3\"\r\n },\r\n \"networkSecurityGroupName\": {\r\n \"type\": \"String\",\r\n \"value\": \"test-1\"\r\n },\r\n \"virtualNetworkAddressRange\": {\r\n \"type\": \"String\",\r\n \"value\": \"10.0.0.0/16\"\r\n },\r\n \"subnetName\": {\r\n \"type\": \"String\",\r\n \"value\": \"test-2\"\r\n },\r\n \"subnetRange\": {\r\n \"type\": \"String\",\r\n \"value\": \"10.0.0.0/24\"\r\n },\r\n \"dnsServerAddress\": {\r\n \"type\": \"Array\",\r\n \"value\": [\r\n \"10.0.0.4\"\r\n ]\r\n },\r\n \"location\": {\r\n \"type\": \"String\",\r\n \"value\": \"westus\"\r\n }\r\n },\r\n \"mode\": \"Incremental\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timestamp\": \"2019-08-09T05:04:05.2587816Z\",\r\n \"duration\": \"PT5.3023905S\",\r\n \"correlationId\": \"ff4885a4-6842-4b23-86ef-a33811104694\",\r\n \"providers\": [\r\n {\r\n \"namespace\": \"Microsoft.Network\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"virtualNetworks\",\r\n \"locations\": [\r\n \"westus\"\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"dependencies\": [],\r\n \"outputResources\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest10?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxMD9hcGktdmVyc2lvbj0yMDE5LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f2adb464-e8f6-4fbe-8bd5-56a853beff2f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/e4215cbd-f00c-45f0-9a87-98f076f60429?monitor=true&api-version=2019-04-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "e4215cbd-f00c-45f0-9a87-98f076f60429" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "3b0b4916-3435-4592-ae69-48060c93eda3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050431Z:3b0b4916-3435-4592-ae69-48060c93eda3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:31 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/e4215cbd-f00c-45f0-9a87-98f076f60429?monitor=true&api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy9lNDIxNWNiZC1mMDBjLTQ1ZjAtOWE4Ny05OGYwNzZmNjA0Mjk/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "61ef8be8-a1a0-4998-98ca-9f9d7722c09c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "3f991e51-e82b-49ce-8be7-b092f699b012" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050448Z:3f991e51-e82b-49ce-8be7-b092f699b012" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:48 GMT" + ], + "Content-Length": [ + "1214" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest10\",\r\n \"name\": \"dotnetclienttest10\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T05:04:31.037628Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T05:04:31.037628Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T05:04:30.9751361Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest10.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest10.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest10.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest10.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest10.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest10.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "05fcb9e5-3292-4f7d-b147-c4751a6047f2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5e143549-4fee-4144-a079-b7c110c6ff81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "5b1d98a7-0600-4bc8-bac7-94b1b5629770" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050449Z:5b1d98a7-0600-4bc8-bac7-94b1b5629770" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:49 GMT" + ], + "Content-Length": [ + "1226" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest10\",\r\n \"name\": \"dotnetclienttest10\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T05:04:31.037628Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T05:04:31.037628Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T05:04:30.9751361Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest10.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest10.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest10.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest10.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest10.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest10.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest10?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxMD9hcGktdmVyc2lvbj0yMDE5LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e5966426-46f0-4922-8662-2b471b7592b5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "89e6463a-9ac7-4b59-944a-2be0976a9547" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "4ec35f03-fe23-40f5-a2a1-83c8d8a2cf71" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050449Z:4ec35f03-fe23-40f5-a2a1-83c8d8a2cf71" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:49 GMT" + ], + "Content-Length": [ + "1214" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest10\",\r\n \"name\": \"dotnetclienttest10\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T05:04:31.037628Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T05:04:31.037628Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T05:04:30.9751361Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest10.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest10.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest10.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest10.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest10.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest10.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest10/listKeys?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxMC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE5LTA0LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "417f9960-b1d8-4582-b383-c882167a5c36" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "751cad86-4895-4ac8-80c4-639c3da95a83" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "217b4d75-0c99-462f-8674-d1762698f4de" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050450Z:217b4d75-0c99-462f-8674-d1762698f4de" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:49 GMT" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"YDU3SJVt4wpZDtlbbCfJ0bKK0nkWJhbb+m+lQctPOJTZRPfbMKVZ/mAjQXh0IJO0xTWV0XaejbS2UAwLjqiEKQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"pGVGsQUFM9qW5LoEpQ7lWjuDGa0JmedEH4lI2yp/eqlcKPYsVuh0YeTtXo0c6IdBVW1VnrDvkaFJS9iAUTIFSw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest10/listKeys?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxMC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE5LTA0LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8d8b6459-b4c3-4c34-bb7f-d2cc4fe70659" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cfb34826-7de9-474d-afe3-8bedcadef064" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "431489c1-f848-4bce-9d67-d15cceb1aa8c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050450Z:431489c1-f848-4bce-9d67-d15cceb1aa8c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:49 GMT" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"YDU3SJVt4wpZDtlbbCfJ0bKK0nkWJhbb+m+lQctPOJTZRPfbMKVZ/mAjQXh0IJO0xTWV0XaejbS2UAwLjqiEKQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"pGVGsQUFM9qW5LoEpQ7lWjuDGa0JmedEH4lI2yp/eqlcKPYsVuh0YeTtXo0c6IdBVW1VnrDvkaFJS9iAUTIFSw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"ouPath\": \"\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest10.blob.core.windows.net/\",\r\n \"storageAccountPrimaryKey\": \"YDU3SJVt4wpZDtlbbCfJ0bKK0nkWJhbb+m+lQctPOJTZRPfbMKVZ/mAjQXh0IJO0xTWV0XaejbS2UAwLjqiEKQ==\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a5ef7236-c828-4248-84c6-535b831c7f7c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "593" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/ded0c50c-bd63-4ffc-b078-d21b29695dd3?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "75a29707-5469-4253-8c87-9f10856726d2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "cca5cf34-8343-4f9f-b88a-0b185a8a3543" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050451Z:cca5cf34-8343-4f9f-b88a-0b185a8a3543" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:04:51 GMT" + ], + "Content-Length": [ + "481" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"ProvisioningDomainful\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"storageAccountUrl\": \"https://dotnetclienttest10.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/ded0c50c-bd63-4ffc-b078-d21b29695dd3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZWdyb3VwL29wZXJhdGlvblJlc3VsdHMvZGVkMGM1MGMtYmQ2My00ZmZjLWIwNzgtZDIxYjI5Njk1ZGQzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f8828cbf-4a8a-4f1e-9934-b86b10722868" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "5fb82546-ae90-4a3b-8e0e-8fae99821a3b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050506Z:5fb82546-ae90-4a3b-8e0e-8fae99821a3b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:06 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ded0c50c-bd63-4ffc-b078-d21b29695dd3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T05:04:50.54Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f3fce61c-6ab0-412e-a36c-3a05d7daf459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "0049301a-ab49-4a6f-b71d-181b12d9f1b5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050506Z:0049301a-ab49-4a6f-b71d-181b12d9f1b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:06 GMT" + ], + "Content-Length": [ + "636" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest10.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/test-11?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvYXZhaWxhYmlsaXR5U2V0cy90ZXN0LTExP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"platformUpdateDomainCount\": 2,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \"name\": \"Aligned\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "18373228-186a-4429-8ed4-d89f90a1cca3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "166" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1199" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "badaa3d6-0612-426e-b324-7647a71e70ab" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "68eb7278-efee-41f2-a05b-fe3078b0ed98" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050507Z:68eb7278-efee-41f2-a05b-fe3078b0ed98" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:07 GMT" + ], + "Content-Length": [ + "388" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-11\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/test-11\",\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\": 2,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \"name\": \"Aligned\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d0bad8ff-098f-49e3-9713-9b3e0feeffc2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "201" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "7ef2a652-4728-4463-af97-d028d505d519" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/7ef2a652-4728-4463-af97-d028d505d519?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "76d5a9c6-fa93-464f-abfd-448b6a04b73a" + ], + "x-ms-arm-service-request-id": [ + "5c9ba378-405b-4416-b8a2-3aa3e23adc5c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050508Z:76d5a9c6-fa93-464f-abfd-448b6a04b73a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:08 GMT" + ], + "Content-Length": [ + "787" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-13\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"etag\": \"W/\\\"0dcb5425-0c0b-49a2-99a1-d251a2502044\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"86f8d8a8-5f2a-4f0d-a61a-c6f4dcf769ed\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/7ef2a652-4728-4463-af97-d028d505d519?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvN2VmMmE2NTItNDcyOC00NDYzLWFmOTctZDAyOGQ1MDVkNTE5P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "54fb430d-a360-4031-a613-4ff513dce88b" + ], + "x-ms-correlation-request-id": [ + "803c2dc1-31cb-4fda-8c65-f9f0560eba95" + ], + "x-ms-arm-service-request-id": [ + "bbd68493-ed95-4b32-8a57-d848d2e2c91f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050510Z:803c2dc1-31cb-4fda-8c65-f9f0560eba95" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:09 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"5c2b7a53-f945-4be2-b5f4-17c2f2b49e8e\"" + ], + "x-ms-request-id": [ + "725600c8-8be5-489e-99df-9fc9afcc84e1" + ], + "x-ms-correlation-request-id": [ + "a36b7e27-7e46-4772-a9bd-9f7f618e83bb" + ], + "x-ms-arm-service-request-id": [ + "1c05ea1d-937a-42e4-97e8-e96b231abb95" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050510Z:a36b7e27-7e46-4772-a9bd-9f7f618e83bb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:09 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-13\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"etag\": \"W/\\\"5c2b7a53-f945-4be2-b5f4-17c2f2b49e8e\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"86f8d8a8-5f2a-4f0d-a61a-c6f4dcf769ed\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5522bedb-e274-4241-8f7a-79ac49be2959" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"5c2b7a53-f945-4be2-b5f4-17c2f2b49e8e\"" + ], + "x-ms-request-id": [ + "7d544b46-d0c5-40a4-a3b4-2acedb3178ac" + ], + "x-ms-correlation-request-id": [ + "58dc8129-3a4b-4a02-a15e-cb82add2e2d6" + ], + "x-ms-arm-service-request-id": [ + "4588430e-6fa1-41c4-9bbe-9d809a9f2159" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050510Z:58dc8129-3a4b-4a02-a15e-cb82add2e2d6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:09 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-13\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"etag\": \"W/\\\"5c2b7a53-f945-4be2-b5f4-17c2f2b49e8e\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"86f8d8a8-5f2a-4f0d-a61a-c6f4dcf769ed\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTU/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f04484b8-c13b-4f31-b898-91d5728a0d1a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "ebab00d3-ae94-4b7f-9ce2-6ae6ba207452" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/ebab00d3-ae94-4b7f-9ce2-6ae6ba207452?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "6b811a12-e621-4665-80f1-d8b8a4ff752c" + ], + "x-ms-arm-service-request-id": [ + "d1abbd91-6914-4c96-b455-cdf5235402a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050511Z:6b811a12-e621-4665-80f1-d8b8a4ff752c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:10 GMT" + ], + "Content-Length": [ + "7467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-15\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"3133869f-ea50-4ce1-b650-92068c673668\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"71b2893c-b679-446c-acf0-dd006165bc2a\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/ebab00d3-ae94-4b7f-9ce2-6ae6ba207452?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZWJhYjAwZDMtYWU5NC00YjdmLTljZTItNmFlNmJhMjA3NDUyP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9e02e0f9-e818-4ca0-93e8-c6836312cb9a" + ], + "x-ms-correlation-request-id": [ + "02089b06-5ed2-480f-9d6d-4fb787edb592" + ], + "x-ms-arm-service-request-id": [ + "e4308aaf-7d38-48ee-96fa-2bd370c266ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050514Z:02089b06-5ed2-480f-9d6d-4fb787edb592" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:13 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTU/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"74b902e4-f487-42db-8aa4-9a7892c9226c\"" + ], + "x-ms-request-id": [ + "c4717ff0-13ec-48bb-a132-8c7ccea836c6" + ], + "x-ms-correlation-request-id": [ + "7f9904dd-826e-447e-88f4-48bfb3b06654" + ], + "x-ms-arm-service-request-id": [ + "c5ea21bb-cdb3-4937-97fd-7ed4fa21b54b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050514Z:7f9904dd-826e-447e-88f4-48bfb3b06654" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:13 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-15\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"3133869f-ea50-4ce1-b650-92068c673668\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTU/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96b9c9dc-6186-4ec8-a88a-193434043a9f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"74b902e4-f487-42db-8aa4-9a7892c9226c\"" + ], + "x-ms-request-id": [ + "784f0ffb-9c2e-4e22-b905-a9eddcd8b3eb" + ], + "x-ms-correlation-request-id": [ + "382cdf7d-f79d-4693-8852-71128ebd4926" + ], + "x-ms-arm-service-request-id": [ + "63226a58-4f46-41d4-a7b6-f98387ec9d70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050514Z:382cdf7d-f79d-4693-8852-71128ebd4926" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:13 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-15\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"3133869f-ea50-4ce1-b650-92068c673668\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0xNz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"3133869f-ea50-4ce1-b650-92068c673668\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"74b902e4-f487-42db-8aa4-9a7892c9226c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"location\": \"westus\"\r\n },\r\n \"ipConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-2\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"publicIPAddress\": {\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"idleTimeoutInMinutes\": 4,\r\n \"resourceGuid\": \"86f8d8a8-5f2a-4f0d-a61a-c6f4dcf769ed\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"5c2b7a53-f945-4be2-b5f4-17c2f2b49e8e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n }\r\n },\r\n \"name\": \"test-16\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16b6f607-edfe-4ec7-b9c7-ebbefb43735d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "9339" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ee9834ab-5201-4a89-94ff-bd798810a4bf" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/ee9834ab-5201-4a89-94ff-bd798810a4bf?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "360c6d37-a085-40e2-8945-ee7f438ff191" + ], + "x-ms-arm-service-request-id": [ + "1881381e-a316-41f8-8380-2adb52e74119" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050514Z:360c6d37-a085-40e2-8945-ee7f438ff191" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:14 GMT" + ], + "Content-Length": [ + "1949" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-17\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\",\r\n \"etag\": \"W/\\\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"12d4bfc6-c7a2-40db-8943-9ecd4049116f\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-16\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17/ipConfigurations/test-16\",\r\n \"etag\": \"W/\\\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.5\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0xNz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\"" + ], + "x-ms-request-id": [ + "ccce3e8b-888f-4df9-bcc4-55784382984a" + ], + "x-ms-correlation-request-id": [ + "669a3c99-843c-4f9e-ab74-68877371ec1b" + ], + "x-ms-arm-service-request-id": [ + "fe769045-adf4-4bff-8225-7f057b8e2c66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050515Z:669a3c99-843c-4f9e-ab74-68877371ec1b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:14 GMT" + ], + "Content-Length": [ + "1949" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-17\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\",\r\n \"etag\": \"W/\\\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"12d4bfc6-c7a2-40db-8943-9ecd4049116f\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-16\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17/ipConfigurations/test-16\",\r\n \"etag\": \"W/\\\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.5\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0xNz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "de95ed02-1eea-4dee-b633-709b432bb728" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\"" + ], + "x-ms-request-id": [ + "38cd9499-3790-40d4-96be-8d41302c44e3" + ], + "x-ms-correlation-request-id": [ + "975da2ce-ec11-40d4-81f3-d4aae8071d35" + ], + "x-ms-arm-service-request-id": [ + "2d67707e-afec-475f-809e-2ba07ed640a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050515Z:975da2ce-ec11-40d4-81f3-d4aae8071d35" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:14 GMT" + ], + "Content-Length": [ + "1949" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-17\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\",\r\n \"etag\": \"W/\\\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"12d4bfc6-c7a2-40db-8943-9ecd4049116f\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-16\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17/ipConfigurations/test-16\",\r\n \"etag\": \"W/\\\"b17e7cee-0f53-4f57-b086-1e4f33633dbb\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.5\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xOT9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-20\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a3f1671-7059-4d1c-9a5d-de1fc362a492" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "201" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "16d7c330-4775-441b-a320-f10ba75cedbf" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/16d7c330-4775-441b-a320-f10ba75cedbf?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "93c5f5ba-a2c6-4f47-973e-289f75505e0d" + ], + "x-ms-arm-service-request-id": [ + "f7b25277-cdfa-4fd3-89e1-b129ad8eb809" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050515Z:93c5f5ba-a2c6-4f47-973e-289f75505e0d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:15 GMT" + ], + "Content-Length": [ + "787" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-19\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19\",\r\n \"etag\": \"W/\\\"914d56cf-86ea-46a6-8421-fdb376adc9f5\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"15bb1473-0f33-4ae5-8381-942643e156b4\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-20\",\r\n \"fqdn\": \"test-20.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/16d7c330-4775-441b-a320-f10ba75cedbf?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTZkN2MzMzAtNDc3NS00NDFiLWEzMjAtZjEwYmE3NWNlZGJmP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e0f84207-be52-46f3-b80f-b68f9279ab06" + ], + "x-ms-correlation-request-id": [ + "ea2549d3-7e79-40ee-b211-c6245268b249" + ], + "x-ms-arm-service-request-id": [ + "b3d0ba46-a7e7-4e4c-aa30-db89cc6456b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050516Z:ea2549d3-7e79-40ee-b211-c6245268b249" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:16 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xOT9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"e0525f5c-437d-43a9-a58a-b24b67efb73b\"" + ], + "x-ms-request-id": [ + "4658e6f4-f4b4-45ce-b8c1-d290ea8d6992" + ], + "x-ms-correlation-request-id": [ + "9e3eb43b-85c0-421a-9796-33fcb52f7cb7" + ], + "x-ms-arm-service-request-id": [ + "c917d2f8-6b89-41bf-b17c-f9234b4a49dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050517Z:9e3eb43b-85c0-421a-9796-33fcb52f7cb7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:16 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-19\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19\",\r\n \"etag\": \"W/\\\"e0525f5c-437d-43a9-a58a-b24b67efb73b\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"15bb1473-0f33-4ae5-8381-942643e156b4\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-20\",\r\n \"fqdn\": \"test-20.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xOT9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "776a6fb8-e3a7-4182-88ff-689468a8baca" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"e0525f5c-437d-43a9-a58a-b24b67efb73b\"" + ], + "x-ms-request-id": [ + "93b5935c-5bbd-4369-ad1a-3e82f5a1c164" + ], + "x-ms-correlation-request-id": [ + "a7fcb93e-4fc1-47a7-bed6-8611a2dd0e9b" + ], + "x-ms-arm-service-request-id": [ + "d69c59f9-8b57-4993-b6d4-2fb7311bc67a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050517Z:a7fcb93e-4fc1-47a7-bed6-8611a2dd0e9b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:16 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-19\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19\",\r\n \"etag\": \"W/\\\"e0525f5c-437d-43a9-a58a-b24b67efb73b\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"15bb1473-0f33-4ae5-8381-942643e156b4\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-20\",\r\n \"fqdn\": \"test-20.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f23ae097-4fdd-4f9e-8890-97e2fd8b842b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "33ee3f9e-10f9-4947-8642-cc08399ee0d8" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/33ee3f9e-10f9-4947-8642-cc08399ee0d8?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "40b54f96-2ff1-4bbe-96a9-abb3b26df340" + ], + "x-ms-arm-service-request-id": [ + "55a46ad4-4d9c-49d4-8ae9-044097afcd19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050517Z:40b54f96-2ff1-4bbe-96a9-abb3b26df340" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:17 GMT" + ], + "Content-Length": [ + "7467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-21\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"74b794be-9661-42ab-8106-a70bd1bf8956\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"ae0e1c9b-6455-4ffb-bf09-ecb116bfb286\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/33ee3f9e-10f9-4947-8642-cc08399ee0d8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMzNlZTNmOWUtMTBmOS00OTQ3LTg2NDItY2MwODM5OWVlMGQ4P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3a2203f2-a6b7-4ccc-bad0-eec690f29220" + ], + "x-ms-correlation-request-id": [ + "59062500-2635-484a-8e68-c1f2d0ba4864" + ], + "x-ms-arm-service-request-id": [ + "d1bfe516-97ef-425b-bb96-5b7fc537ef84" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050520Z:59062500-2635-484a-8e68-c1f2d0ba4864" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:20 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"8470b40a-f816-4bcc-bed0-39405e701f39\"" + ], + "x-ms-request-id": [ + "910426c2-1393-4d2e-b13d-fa040333fbc2" + ], + "x-ms-correlation-request-id": [ + "1d68d0b6-8e52-4def-8a3c-5f106af9dce6" + ], + "x-ms-arm-service-request-id": [ + "d7d43b9f-9268-4512-85db-14ef104a0b38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050520Z:1d68d0b6-8e52-4def-8a3c-5f106af9dce6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:20 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-21\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"74b794be-9661-42ab-8106-a70bd1bf8956\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9b8f79c-d875-441d-9f0e-5ae8cc75ac4e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"8470b40a-f816-4bcc-bed0-39405e701f39\"" + ], + "x-ms-request-id": [ + "84038f4f-2bb5-4764-a5c6-358f977df2d4" + ], + "x-ms-correlation-request-id": [ + "0528df4d-d6e7-4bce-af9a-f8b3cdf2ad98" + ], + "x-ms-arm-service-request-id": [ + "0669715f-95b6-487f-a613-1f005f44e340" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050520Z:0528df4d-d6e7-4bce-af9a-f8b3cdf2ad98" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:20 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-21\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"74b794be-9661-42ab-8106-a70bd1bf8956\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0yMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"74b794be-9661-42ab-8106-a70bd1bf8956\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"8470b40a-f816-4bcc-bed0-39405e701f39\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21\",\r\n \"location\": \"westus\"\r\n },\r\n \"ipConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-2\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"publicIPAddress\": {\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-20\",\r\n \"fqdn\": \"test-20.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"idleTimeoutInMinutes\": 4,\r\n \"resourceGuid\": \"15bb1473-0f33-4ae5-8381-942643e156b4\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"e0525f5c-437d-43a9-a58a-b24b67efb73b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n }\r\n },\r\n \"name\": \"test-22\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e1f44da0-79d3-49c6-baec-f04be4f5911e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "9339" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "43052a31-6ab6-4220-aaee-82083a84c8d8" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/43052a31-6ab6-4220-aaee-82083a84c8d8?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "e7f5efa0-5e62-4d4b-9ae1-c2b395367360" + ], + "x-ms-arm-service-request-id": [ + "f05badc4-00c3-4b70-9135-4475ed7dfc1d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050521Z:e7f5efa0-5e62-4d4b-9ae1-c2b395367360" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:20 GMT" + ], + "Content-Length": [ + "1949" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-23\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23\",\r\n \"etag\": \"W/\\\"02a2480a-152d-4292-b41f-a8f7d1d73d20\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"cf1987da-bab3-4add-abad-64c09dfc2671\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-22\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23/ipConfigurations/test-22\",\r\n \"etag\": \"W/\\\"02a2480a-152d-4292-b41f-a8f7d1d73d20\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.6\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0yMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"02a2480a-152d-4292-b41f-a8f7d1d73d20\"" + ], + "x-ms-request-id": [ + "7180c8a9-0b67-4ad3-b84d-e7cd00bd364a" + ], + "x-ms-correlation-request-id": [ + "46e204a1-4f76-4d18-9c56-976aaf6fca16" + ], + "x-ms-arm-service-request-id": [ + "dde798e3-47ba-40b7-9c16-e94d49f645e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050521Z:46e204a1-4f76-4d18-9c56-976aaf6fca16" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:20 GMT" + ], + "Content-Length": [ + "1949" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-23\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23\",\r\n \"etag\": \"W/\\\"02a2480a-152d-4292-b41f-a8f7d1d73d20\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"cf1987da-bab3-4add-abad-64c09dfc2671\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-22\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23/ipConfigurations/test-22\",\r\n \"etag\": \"W/\\\"02a2480a-152d-4292-b41f-a8f7d1d73d20\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.6\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0yMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25a7f02a-63cd-44e7-a13e-04b0dc023555" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"02a2480a-152d-4292-b41f-a8f7d1d73d20\"" + ], + "x-ms-request-id": [ + "120a7884-b567-4402-8fe9-4c8294407d2c" + ], + "x-ms-correlation-request-id": [ + "425bfdbc-e2ba-4b3e-8ba8-8ea1a568fe31" + ], + "x-ms-arm-service-request-id": [ + "e8691667-924a-4040-8888-b391368d86bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050521Z:425bfdbc-e2ba-4b3e-8ba8-8ea1a568fe31" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:20 GMT" + ], + "Content-Length": [ + "1949" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-23\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23\",\r\n \"etag\": \"W/\\\"02a2480a-152d-4292-b41f-a8f7d1d73d20\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"cf1987da-bab3-4add-abad-64c09dfc2671\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-22\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23/ipConfigurations/test-22\",\r\n \"etag\": \"W/\\\"02a2480a-152d-4292-b41f-a8f7d1d73d20\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.6\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-19\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"ndkmnu24ra3ulao21l2y1tjy0b.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-21\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjQ/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"FromImage\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"Empty\",\r\n \"diskSizeGB\": 30,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-24\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"adminPassword\": \"sql@zure123!\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\"\r\n }\r\n ]\r\n },\r\n \"availabilitySet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/test-11\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "986e95ed-991c-4ea2-9e12-0e5309d38885" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1522" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/1137e023-e6d5-4366-8f74-b00cb42e061b?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1198" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "1137e023-e6d5-4366-8f74-b00cb42e061b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "586cb07f-9146-4c20-92d9-2004e7baaeb6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050522Z:586cb07f-9146-4c20-92d9-2004e7baaeb6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:21 GMT" + ], + "Content-Length": [ + "1830" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-24\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"53a4c691-a3e0-4fb5-b496-d6bd563fd3a8\",\r\n \"availabilitySet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/TEST-11\"\r\n },\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-24\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/1137e023-e6d5-4366-8f74-b00cb42e061b?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTEzN2UwMjMtZTZkNS00MzY2LThmNzQtYjAwY2I0MmUwNjFiP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "70" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29874" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "dbe08a1e-cf7a-4efb-8f81-5a0eaee69f9f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "59d6ed75-17fd-4689-ae6a-00228ce88a04" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050532Z:59d6ed75-17fd-4689-ae6a-00228ce88a04" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:05:31 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:05:21.8010609-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1137e023-e6d5-4366-8f74-b00cb42e061b\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/1137e023-e6d5-4366-8f74-b00cb42e061b?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTEzN2UwMjMtZTZkNS00MzY2LThmNzQtYjAwY2I0MmUwNjFiP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29873" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "fcc36b86-2b94-4d9f-9efc-6d06fd199edc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "5a741622-75c9-403f-95a8-99f4b52ac96e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050642Z:5a741622-75c9-403f-95a8-99f4b52ac96e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:06:42 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:05:21.8010609-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1137e023-e6d5-4366-8f74-b00cb42e061b\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/1137e023-e6d5-4366-8f74-b00cb42e061b?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTEzN2UwMjMtZTZkNS00MzY2LThmNzQtYjAwY2I0MmUwNjFiP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29870" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "3b61ab49-edc1-4446-beb1-0cfc354c58e2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-correlation-request-id": [ + "fd94104c-1819-43c2-ad92-6b71412f7204" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050752Z:fd94104c-1819-43c2-ad92-6b71412f7204" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:07:52 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:05:21.8010609-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1137e023-e6d5-4366-8f74-b00cb42e061b\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/1137e023-e6d5-4366-8f74-b00cb42e061b?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTEzN2UwMjMtZTZkNS00MzY2LThmNzQtYjAwY2I0MmUwNjFiP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29866" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "d12ff222-ce70-4d54-8787-95b9f1790a79" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "2f130a25-0196-49b9-8741-cd640b41fed0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050902Z:2f130a25-0196-49b9-8741-cd640b41fed0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:09:01 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:05:21.8010609-07:00\",\r\n \"endTime\": \"2019-08-08T22:08:15.3791488-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"1137e023-e6d5-4366-8f74-b00cb42e061b\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjQ/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31978" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "396d431f-64ae-409b-a40b-e11e3c9d08d1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-correlation-request-id": [ + "c3842ad3-62ce-4353-b1b7-df1ed52d907e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050902Z:c3842ad3-62ce-4353-b1b7-df1ed52d907e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:09:01 GMT" + ], + "Content-Length": [ + "2377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-24\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"53a4c691-a3e0-4fb5-b496-d6bd563fd3a8\",\r\n \"availabilitySet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/TEST-11\"\r\n },\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"test-24_OsDisk_1_f84d6b59ff1e495a860e99519213e2aa\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-24_OsDisk_1_f84d6b59ff1e495a860e99519213e2aa\"\r\n },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"test-24_disk2_8814c7f39ed5431387b23c46f55c60eb\",\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-24_disk2_8814c7f39ed5431387b23c46f55c60eb\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-24\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjU/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"FromImage\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"Empty\",\r\n \"diskSizeGB\": 30,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-25\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"adminPassword\": \"sql@zure123!\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23\"\r\n }\r\n ]\r\n },\r\n \"availabilitySet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/test-11\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "54d6ece8-0899-41c8-bb5c-2d5ff04cabcd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1522" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9f27845e-57b5-4c4d-9351-b610fd117ecc?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1197" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "9f27845e-57b5-4c4d-9351-b610fd117ecc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "7a1f6722-cc32-41ff-8fca-fed53b745e4c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050903Z:7a1f6722-cc32-41ff-8fca-fed53b745e4c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:09:02 GMT" + ], + "Content-Length": [ + "1830" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-25\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"885609f7-bfd8-4ec7-9a51-76e972c658f4\",\r\n \"availabilitySet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/TEST-11\"\r\n },\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-25\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9f27845e-57b5-4c4d-9351-b610fd117ecc?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOWYyNzg0NWUtNTdiNS00YzRkLTkzNTEtYjYxMGZkMTE3ZWNjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "70" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29865" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "48e4da68-8bb6-4c4d-9131-8c2430c3c7a4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-correlation-request-id": [ + "6d70988d-13d5-41e9-b2ea-d7661e0906b7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T050913Z:6d70988d-13d5-41e9-b2ea-d7661e0906b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:09:12 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:09:03.0041356-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9f27845e-57b5-4c4d-9351-b610fd117ecc\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9f27845e-57b5-4c4d-9351-b610fd117ecc?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOWYyNzg0NWUtNTdiNS00YzRkLTkzNTEtYjYxMGZkMTE3ZWNjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29882" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "6d73fe2d-04bb-4ab3-b9a5-50e6ce93204a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-correlation-request-id": [ + "f4d5faa4-30a7-4b95-8378-0125e3173734" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051023Z:f4d5faa4-30a7-4b95-8378-0125e3173734" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:10:23 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:09:03.0041356-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9f27845e-57b5-4c4d-9351-b610fd117ecc\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9f27845e-57b5-4c4d-9351-b610fd117ecc?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOWYyNzg0NWUtNTdiNS00YzRkLTkzNTEtYjYxMGZkMTE3ZWNjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29879" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "a0482d27-e8ac-4240-9c58-cac05366fbea" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-correlation-request-id": [ + "89e1305e-dbba-4870-a43c-66e072c5681d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051133Z:89e1305e-dbba-4870-a43c-66e072c5681d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:11:32 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:09:03.0041356-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9f27845e-57b5-4c4d-9351-b610fd117ecc\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/9f27845e-57b5-4c4d-9351-b610fd117ecc?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOWYyNzg0NWUtNTdiNS00YzRkLTkzNTEtYjYxMGZkMTE3ZWNjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29873" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "1559fd9c-e365-49b7-a7e0-389eb12f7a30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11935" + ], + "x-ms-correlation-request-id": [ + "0c46a254-4283-4b24-ad3a-88a9c811f625" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051243Z:0c46a254-4283-4b24-ad3a-88a9c811f625" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:12:42 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:09:03.0041356-07:00\",\r\n \"endTime\": \"2019-08-08T22:12:26.3195877-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"9f27845e-57b5-4c4d-9351-b610fd117ecc\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjU/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31979" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "9718d8ef-d6ca-49c5-9bef-7530e0af9157" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11934" + ], + "x-ms-correlation-request-id": [ + "eccadf27-dc1a-45f0-b7ba-42abb2e4da25" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051243Z:eccadf27-dc1a-45f0-b7ba-42abb2e4da25" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:12:42 GMT" + ], + "Content-Length": [ + "2377" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-25\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"885609f7-bfd8-4ec7-9a51-76e972c658f4\",\r\n \"availabilitySet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/availabilitySets/TEST-11\"\r\n },\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"test-25_OsDisk_1_d43b040bb4ae4f1ebc18f84bbabfa7aa\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-25_OsDisk_1_d43b040bb4ae4f1ebc18f84bbabfa7aa\"\r\n },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"test-25_disk2_2db86c47d1d7459583b8318903c77e15\",\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-25_disk2_2db86c47d1d7459583b8318903c77e15\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-25\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-23\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"autoPatchingSettings\": {\r\n \"enable\": false\r\n },\r\n \"serverConfigurationsManagementSettings\": {\r\n \"sqlConnectivityUpdateSettings\": {\r\n \"connectivityType\": \"Private\",\r\n \"port\": 1433,\r\n \"sqlAuthUpdateUserName\": \"sqllogin\",\r\n \"sqlAuthUpdatePassword\": \"sql@zure123!\"\r\n },\r\n \"sqlWorkloadTypeUpdateSettings\": {\r\n \"sqlWorkloadType\": \"OLTP\"\r\n },\r\n \"sqlStorageUpdateSettings\": {\r\n \"diskCount\": 1,\r\n \"startingDeviceId\": 2,\r\n \"diskConfigurationType\": \"NEW\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "27e87599-8dbb-43f8-b0d6-1c539144aded" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "926" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "decb1f22-465f-4dc0-93a3-3b2d1e51b3f4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d7ba05b7-6e4c-4ddb-8e29-7246a4452f3b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051245Z:d7ba05b7-6e4c-4ddb-8e29-7246a4452f3b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:12:45 GMT" + ], + "Content-Length": [ + "546" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\",\r\n \"name\": \"test-24\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"wsfcDomainCredentials\": {\r\n \"clusterBootstrapAccountPassword\": \"sql@zure123!\",\r\n \"clusterOperatorAccountPassword\": \"sql@zure123!\",\r\n \"sqlServiceAccountPassword\": \"sql@zure123!\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4c1b6c1a-05b2-49a7-b3e9-fa281d75b5d4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "635" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "10ce9658-a3bb-49b3-a1d7-3c190313619e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "5f1b4f8b-b46d-46bf-9816-d6efc0ef1c7c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052035Z:5f1b4f8b-b46d-46bf-9816-d6efc0ef1c7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:20:34 GMT" + ], + "Content-Length": [ + "741" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"provisioningState\": \"Updating\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\",\r\n \"name\": \"test-24\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "6f4e595b-526e-4107-9737-80c478d494d3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "98e95396-ec95-40c7-bcdd-a913f278c088" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051300Z:98e95396-ec95-40c7-bcdd-a913f278c088" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:13:00 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "23eb6658-8a78-4c73-8621-4bc0178de836" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "d565d88c-9d33-4bc8-92fa-cc31dbad0342" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051315Z:d565d88c-9d33-4bc8-92fa-cc31dbad0342" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:13:15 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "21bdff14-98bd-48fb-b73a-fe84ef54686f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "552875cf-adee-411b-a062-d9f25831d0e7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051330Z:552875cf-adee-411b-a062-d9f25831d0e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:13:30 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "fc89a757-8c42-4916-a74b-3da508eb0b10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "2373163a-3bdf-4cd7-97c6-4ce57e86f3a6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051346Z:2373163a-3bdf-4cd7-97c6-4ce57e86f3a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:13:45 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7a60503f-7d7c-4973-9f0c-0af70415da67" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "e9e54707-f998-4fcf-9950-b52c94cb7438" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051401Z:e9e54707-f998-4fcf-9950-b52c94cb7438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:14:00 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "202acb8a-6000-40fa-89f8-bacff676c60a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "f1baadea-2701-47f9-97f4-56ae6a72321d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051416Z:f1baadea-2701-47f9-97f4-56ae6a72321d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:14:15 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "482a0257-218e-46fc-81f5-c23e6c99c1ea" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "ffc8ef3b-f5a6-470f-8f0c-f838864ab370" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051431Z:ffc8ef3b-f5a6-470f-8f0c-f838864ab370" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:14:30 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "74df2a36-938f-42ee-a9a8-83487e13e904" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "e2fa3895-c0d0-44d5-b88c-3206ad76322e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051446Z:e2fa3895-c0d0-44d5-b88c-3206ad76322e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:14:45 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8140a66a-8f29-4a7a-834e-ac3d34540737" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "e9ea6e76-8043-4cfb-9152-3573aa5802eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051501Z:e9ea6e76-8043-4cfb-9152-3573aa5802eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:15:00 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "3e7922b4-6ba6-4dfe-8db9-3a71c5d59a43" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "26c6502e-7cce-4a25-8565-a763ebb8f436" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051516Z:26c6502e-7cce-4a25-8565-a763ebb8f436" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:15:15 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c45c8919-ef62-492c-b46d-9315140da2a2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "a2b52a56-4cd7-4d00-bffc-2a80c9a9ec6e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051531Z:a2b52a56-4cd7-4d00-bffc-2a80c9a9ec6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:15:30 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0785e274-25f6-4ca0-ae52-82e31f54fd2d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "ea24d665-fd64-43e2-a84f-86f733fdc4aa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051546Z:ea24d665-fd64-43e2-a84f-86f733fdc4aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:15:46 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4c4ebae2-3905-498e-93b6-547ad30b4ddf" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "e72c9b7e-cc1e-4502-aea0-4d0d4d847508" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051601Z:e72c9b7e-cc1e-4502-aea0-4d0d4d847508" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:16:01 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c5f405fd-dbe3-4c25-9f2d-d0de8f189183" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "51fefd00-99ee-4302-aad5-aae19261733f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051616Z:51fefd00-99ee-4302-aad5-aae19261733f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:16:16 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c1de5889-b477-44f7-9178-ea29cddd7c0e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "759c32e2-9449-4744-acd9-b5c6816a0cd5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051631Z:759c32e2-9449-4744-acd9-b5c6816a0cd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:16:31 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "11456f6a-cb39-4a1d-a5bf-19acf98bb677" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "e015ed0c-fe3c-4391-bba7-1b6f37bb73ad" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051646Z:e015ed0c-fe3c-4391-bba7-1b6f37bb73ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:16:45 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "db976ed7-518d-4b9f-b5f1-b47431ec697d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "cfb5065e-b0ed-447b-a6c2-ab07a55aaccf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051702Z:cfb5065e-b0ed-447b-a6c2-ab07a55aaccf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:17:01 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "99842247-1558-4868-b026-7038bbcefe37" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "889481de-38e0-48ab-b0d8-ab2b8efa58cc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051717Z:889481de-38e0-48ab-b0d8-ab2b8efa58cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:17:16 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b4fb4d21-5f3d-41c6-a41b-4e3e2b9c8a6a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "be1897c3-1803-41fb-9970-b38a03508fc1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051732Z:be1897c3-1803-41fb-9970-b38a03508fc1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:17:31 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9f28b3a9-78a8-4ca1-af48-cb2f4977b984" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "f017ff8e-d49b-4a88-9b6b-a06a108df7d4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051747Z:f017ff8e-d49b-4a88-9b6b-a06a108df7d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:17:46 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "02175c9c-3565-4660-a3aa-42c4588acb10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "4bcc5be0-910f-4dd8-b0d0-7adc4679cad6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051802Z:4bcc5be0-910f-4dd8-b0d0-7adc4679cad6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:18:01 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "936e0407-e646-4351-95be-f2b124633f97" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "403188dd-6c4a-4d9e-8288-84747fb989fb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051817Z:403188dd-6c4a-4d9e-8288-84747fb989fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:18:17 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "96738c99-26fd-4691-84c8-6e746f8e1a71" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "b3a513a7-abac-4d7e-8849-4d16297aa7ce" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051832Z:b3a513a7-abac-4d7e-8849-4d16297aa7ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:18:31 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "066070a4-920d-4127-b3a7-92b335dde96b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "75aa9e8d-7805-4fd4-9d6e-f50825720e91" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051847Z:75aa9e8d-7805-4fd4-9d6e-f50825720e91" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:18:46 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/5086e83e-5a89-4809-aad9-e61d49d1ec08?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzUwODZlODNlLTVhODktNDgwOS1hYWQ5LWU2MWQ0OWQxZWMwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e903a329-3607-4c1a-b7f1-f3a722795959" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "bd38ba8e-c0e9-40d3-8d86-41ac29183f47" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051902Z:bd38ba8e-c0e9-40d3-8d86-41ac29183f47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:19:01 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5086e83e-5a89-4809-aad9-e61d49d1ec08\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T05:12:44.707Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2a9e6fb5-c4b5-4d57-ad6d-0787de8028ff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "601bd476-b90c-4fd0-8a93-3378e25a9f83" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051902Z:601bd476-b90c-4fd0-8a93-3378e25a9f83" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:19:01 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\",\r\n \"name\": \"test-24\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6c483996-3d4f-4626-8e43-79c5c8373250" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-correlation-request-id": [ + "c9fd84bb-b152-48e6-8df1-4d582b52d4c1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052952Z:c9fd84bb-b152-48e6-8df1-4d582b52d4c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:29:51 GMT" + ], + "Content-Length": [ + "775" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\",\r\n \"name\": \"test-24\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/joindomain?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjQvZXh0ZW5zaW9ucy9qb2luZG9tYWluP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"JsonADDomainExtension\",\r\n \"typeHandlerVersion\": \"1.3\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\r\n \"Name\": \"Domain.com\",\r\n \"OUPath\": \"\",\r\n \"User\": \"Domain\\\\myvmadmin\",\r\n \"Restart\": \"true\",\r\n \"Options\": \"3\"\r\n },\r\n \"protectedSettings\": {\r\n \"Password\": \"sql@zure123!\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "066d54a9-49ce-4cab-ba37-513596b61266" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "432" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/10030bcb-4499-4ba8-a604-50f3aaaa6433?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1196" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "10030bcb-4499-4ba8-a604-50f3aaaa6433" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5d85276a-c69b-4645-b72b-12ebf794a893" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051903Z:5d85276a-c69b-4645-b72b-12ebf794a893" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:19:03 GMT" + ], + "Content-Length": [ + "605" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"joindomain\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/joindomain\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Creating\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"JsonADDomainExtension\",\r\n \"typeHandlerVersion\": \"1.3\",\r\n \"settings\": {\r\n \"Name\": \"Domain.com\",\r\n \"OUPath\": \"\",\r\n \"User\": \"Domain\\\\myvmadmin\",\r\n \"Restart\": \"true\",\r\n \"Options\": \"3\"\r\n }\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/10030bcb-4499-4ba8-a604-50f3aaaa6433?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTAwMzBiY2ItNDQ5OS00YmE4LWE2MDQtNTBmM2FhYWE2NDMzP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29871" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "1adf8245-15d8-4e52-90c1-d1b3860898b7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "716eb1f8-8898-428f-b3b5-dc9690bf5031" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T051933Z:716eb1f8-8898-428f-b3b5-dc9690bf5031" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:19:33 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:19:03.1798995-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"10030bcb-4499-4ba8-a604-50f3aaaa6433\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/10030bcb-4499-4ba8-a604-50f3aaaa6433?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTAwMzBiY2ItNDQ5OS00YmE4LWE2MDQtNTBmM2FhYWE2NDMzP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29898" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "070c6edf-5b3b-4cfa-8593-5d070f8dc711" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "d6b5ddad-afce-462e-8fd0-c71d3a337a71" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052003Z:d6b5ddad-afce-462e-8fd0-c71d3a337a71" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:20:03 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:19:03.1798995-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"10030bcb-4499-4ba8-a604-50f3aaaa6433\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/10030bcb-4499-4ba8-a604-50f3aaaa6433?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTAwMzBiY2ItNDQ5OS00YmE4LWE2MDQtNTBmM2FhYWE2NDMzP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29896" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "6fa1001c-f447-4984-a190-b50b16f80756" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "d73f5958-f236-43c0-a9b8-72d422f6e48d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052033Z:d73f5958-f236-43c0-a9b8-72d422f6e48d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:20:32 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:19:03.1798995-07:00\",\r\n \"endTime\": \"2019-08-08T22:20:31.4013168-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"10030bcb-4499-4ba8-a604-50f3aaaa6433\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/joindomain?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjQvZXh0ZW5zaW9ucy9qb2luZG9tYWluP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3989,Microsoft.Compute/LowCostGet30Min;31961" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "55e52eaa-4027-4c96-819c-d3470f77bfaa" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "cb1a7644-56c6-4bb5-8ca6-f773b66e41c2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052033Z:cb1a7644-56c6-4bb5-8ca6-f773b66e41c2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:20:32 GMT" + ], + "Content-Length": [ + "606" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"joindomain\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/joindomain\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"JsonADDomainExtension\",\r\n \"typeHandlerVersion\": \"1.3\",\r\n \"settings\": {\r\n \"Name\": \"Domain.com\",\r\n \"OUPath\": \"\",\r\n \"User\": \"Domain\\\\myvmadmin\",\r\n \"Restart\": \"true\",\r\n \"Options\": \"3\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7df7244b-976c-4852-a1cd-d2cc4f81f152" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "666c5e6b-172f-4d48-b116-e7ba87357d78" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052050Z:666c5e6b-172f-4d48-b116-e7ba87357d78" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:20:49 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8b853a9b-f569-4d5e-91e3-e1caed8e59c8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "30727145-a652-4d04-9727-70a93534be23" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052105Z:30727145-a652-4d04-9727-70a93534be23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:21:04 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1d865948-4a6c-41ce-b747-758ac1cc0f3e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "7b851039-2c8c-4485-9793-3094ce6a4d53" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052120Z:7b851039-2c8c-4485-9793-3094ce6a4d53" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:21:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "54bf379f-5255-4286-b1f5-6f9394d8c03d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "65a72255-e7a2-4ed4-8645-d3d8225a178c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052135Z:65a72255-e7a2-4ed4-8645-d3d8225a178c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:21:35 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8149ef07-2a58-42ec-a36a-43f6c971f341" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "34379ec6-1fd3-45f5-938c-db2d2e6bc556" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052150Z:34379ec6-1fd3-45f5-938c-db2d2e6bc556" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:21:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5e199ec7-4584-4d61-a7a2-1d5788bcf6e3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "7dde7533-9c35-409e-995e-4a9b5b0c52ac" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052205Z:7dde7533-9c35-409e-995e-4a9b5b0c52ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:22:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0e90a767-0228-410f-83e1-9d3fd4e8c8a1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "110c521d-6047-4665-a573-baf3082bd5ed" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052220Z:110c521d-6047-4665-a573-baf3082bd5ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:22:19 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1713a996-9229-424f-848e-54178c8e50e5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "26380ea7-f771-4708-9fb9-97dab5a00112" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052235Z:26380ea7-f771-4708-9fb9-97dab5a00112" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:22:35 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b9cc0b2e-d3e8-4bbd-8626-cf1582387a8b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "ea096f29-0577-43a3-803f-766db19de5eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052250Z:ea096f29-0577-43a3-803f-766db19de5eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:22:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "90194f9c-7c43-411a-bd2b-b5bc319a2416" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "462ad191-1be1-4c91-a19e-ce8bd5bbbab9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052305Z:462ad191-1be1-4c91-a19e-ce8bd5bbbab9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:23:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "843cebee-80f7-4c92-922a-2b0c56d5a1b8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "a49f73c4-04b5-42ee-a72e-2fa5e6a4452b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052320Z:a49f73c4-04b5-42ee-a72e-2fa5e6a4452b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:23:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "309cc989-6cdd-4b0c-b936-d7aaebba9fba" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "03ca4cd1-defa-4aeb-801d-86cb0486a2e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052335Z:03ca4cd1-defa-4aeb-801d-86cb0486a2e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:23:35 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d17c5784-7679-4183-bd32-b5057e935edb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "be202e19-d99b-44d9-8b86-291adffb2e91" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052351Z:be202e19-d99b-44d9-8b86-291adffb2e91" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:23:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a8da3bca-87b9-4493-a023-b1b214cd55d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "228e709d-fdfc-4f93-91bd-cf379cb8df9e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052406Z:228e709d-fdfc-4f93-91bd-cf379cb8df9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:24:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "36e33a22-0c9e-4ad6-8c35-2d15a79997a3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "9f612491-48c1-41e9-87f4-1b17c0dcf6fd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052421Z:9f612491-48c1-41e9-87f4-1b17c0dcf6fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:24:21 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "700bc348-88dc-4d2f-bc15-eb67f9eeea8c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-correlation-request-id": [ + "93996f55-3220-46be-9d8e-e23e9ad7e032" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052436Z:93996f55-3220-46be-9d8e-e23e9ad7e032" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:24:36 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5a5cd430-f989-44b7-a0a2-998ef29ca82c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "005e37ca-c3f2-452d-b82f-c93f27ab9fe4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052451Z:005e37ca-c3f2-452d-b82f-c93f27ab9fe4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:24:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "6e594948-8c31-4694-965d-b52fc4ec4da7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "f7a43c62-f0b3-4b68-a42c-22a86dc887b0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052506Z:f7a43c62-f0b3-4b68-a42c-22a86dc887b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:25:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "598aaa7b-97c2-43fd-bf33-e27614c40413" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "1a595d79-d271-4f42-89de-45705eb604a2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052521Z:1a595d79-d271-4f42-89de-45705eb604a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:25:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c206d622-687b-461f-9ac4-813bd081a4a1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "eb614bb0-4d1d-40eb-8546-bd4bd239c3d7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052536Z:eb614bb0-4d1d-40eb-8546-bd4bd239c3d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:25:36 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0c48a3b2-48ef-4bf6-af8f-d93d46b4504f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "ea425595-53e4-4975-a331-9225e022b109" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052551Z:ea425595-53e4-4975-a331-9225e022b109" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:25:51 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c8e48199-5513-4c8b-8b7f-80e816cf78a5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "f65b4340-fb49-4b2c-aa38-2be63298c6d8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052606Z:f65b4340-fb49-4b2c-aa38-2be63298c6d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:26:06 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a4d6c242-cb5f-4c75-8c5c-fbadfa1514af" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "d06e3799-fba8-4233-b3c0-5378cb532729" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052621Z:d06e3799-fba8-4233-b3c0-5378cb532729" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:26:21 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "82196218-2ff1-47c2-b580-527fad585b49" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "965290a0-d3fe-45e6-b709-bfae95edcc64" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052636Z:965290a0-d3fe-45e6-b709-bfae95edcc64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:26:36 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "eecc0025-024c-46c4-8411-367e0509c2d1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-correlation-request-id": [ + "b0f431f3-ee0d-4b51-aa25-c1f9866de969" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052651Z:b0f431f3-ee0d-4b51-aa25-c1f9866de969" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:26:51 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "70593549-e8ff-4458-9d27-6192cfac8636" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-correlation-request-id": [ + "636c4c83-e42d-428b-841c-bd04952185b9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052706Z:636c4c83-e42d-428b-841c-bd04952185b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:27:06 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "51ebfa32-7c32-4e54-baf2-40f17d669aab" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "522cffec-08d6-4800-b977-9d2fa4959a64" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052721Z:522cffec-08d6-4800-b977-9d2fa4959a64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:27:21 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a1715d2c-b768-4c3b-888d-4b0439010387" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "6bc0e442-e2dd-4e86-8f39-b4485b70ad82" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052736Z:6bc0e442-e2dd-4e86-8f39-b4485b70ad82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:27:36 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b1cb35ef-4dbb-4f8d-bcdd-adb01a246271" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "9509770f-6e44-45a8-85b7-6ee50371c783" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052752Z:9509770f-6e44-45a8-85b7-6ee50371c783" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:27:51 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f66a6894-9803-4632-ab8c-80172cf63ae7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "bfe7a644-a932-4d26-93dc-4580d960425d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052807Z:bfe7a644-a932-4d26-93dc-4580d960425d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:28:07 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "01662ae2-ac3e-4fe5-a6b5-df1abdda4b06" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "69fe323b-9a8d-46f3-9088-42ab8df26360" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052822Z:69fe323b-9a8d-46f3-9088-42ab8df26360" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:28:21 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "23147979-57e7-43d8-b31c-b1ed8739fb09" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-correlation-request-id": [ + "6eeaa540-9730-4da7-b080-3119e08844b6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052837Z:6eeaa540-9730-4da7-b080-3119e08844b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:28:36 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "36a409f0-91d7-4af1-81ac-8f760366765e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "47fa1d47-7dbb-4320-9967-6f42724a96ce" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052852Z:47fa1d47-7dbb-4320-9967-6f42724a96ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:28:51 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "46c4de0e-5a24-4f85-94b2-ac9dde5aaecd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "27bb3e5b-5734-4bcd-b7d7-5cb24e586ed8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052907Z:27bb3e5b-5734-4bcd-b7d7-5cb24e586ed8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:29:06 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e5c6e69d-4852-4b40-a9f7-bafaee49edae" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "x-ms-correlation-request-id": [ + "9bd70e51-1596-4d30-8995-c85f043de07e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052922Z:9bd70e51-1596-4d30-8995-c85f043de07e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:29:21 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "91e2dc9c-49e9-459f-b5ea-9948b2e06f61" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-correlation-request-id": [ + "c3d84a5b-58a8-40a1-b611-bc5b3f3c6b24" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052937Z:c3d84a5b-58a8-40a1-b611-bc5b3f3c6b24" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:29:37 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/4d5d5e17-16c3-4dfa-af90-1c34cdd4767a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzRkNWQ1ZTE3LTE2YzMtNGRmYS1hZjkwLTFjMzRjZGQ0NzY3YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2654dc7c-67ff-46ff-ad91-11a8a18b5f3e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-correlation-request-id": [ + "f4045631-48ce-402c-9851-f7957c568405" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052952Z:f4045631-48ce-402c-9851-f7957c568405" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:29:51 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d5d5e17-16c3-4dfa-af90-1c34cdd4767a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T05:20:34.197Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"autoPatchingSettings\": {\r\n \"enable\": false\r\n },\r\n \"serverConfigurationsManagementSettings\": {\r\n \"sqlConnectivityUpdateSettings\": {\r\n \"connectivityType\": \"Private\",\r\n \"port\": 1433,\r\n \"sqlAuthUpdateUserName\": \"sqllogin\",\r\n \"sqlAuthUpdatePassword\": \"sql@zure123!\"\r\n },\r\n \"sqlWorkloadTypeUpdateSettings\": {\r\n \"sqlWorkloadType\": \"OLTP\"\r\n },\r\n \"sqlStorageUpdateSettings\": {\r\n \"diskCount\": 1,\r\n \"startingDeviceId\": 2,\r\n \"diskConfigurationType\": \"NEW\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "36d28721-993a-4077-9710-0c8d8ba9fb12" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "926" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "ac406f0f-1263-4b53-81e3-e32c251d74aa" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "8c6e12fc-c8e7-44c4-84e2-f786d2361422" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T052954Z:8c6e12fc-c8e7-44c4-84e2-f786d2361422" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:29:53 GMT" + ], + "Content-Length": [ + "546" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\",\r\n \"name\": \"test-25\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"wsfcDomainCredentials\": {\r\n \"clusterBootstrapAccountPassword\": \"sql@zure123!\",\r\n \"clusterOperatorAccountPassword\": \"sql@zure123!\",\r\n \"sqlServiceAccountPassword\": \"sql@zure123!\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9d8bfee-cdc3-4c5c-979a-ccda2deba3bd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "635" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "b6c83563-525a-4793-af4c-60c3a43c634e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "c943cd1f-8668-459c-91ef-9519f4b41c86" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053603Z:c943cd1f-8668-459c-91ef-9519f4b41c86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:36:03 GMT" + ], + "Content-Length": [ + "741" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"provisioningState\": \"Updating\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\",\r\n \"name\": \"test-25\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4f0f0105-7af5-40b4-a269-99ee7479fa31" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11935" + ], + "x-ms-correlation-request-id": [ + "d7a28a8f-bed0-46dd-bd3b-cd4b412a5e5f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053009Z:d7a28a8f-bed0-46dd-bd3b-cd4b412a5e5f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:30:09 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7dcd3aeb-9ec0-4250-a696-a31fa070aa92" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11934" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "f3a69e9c-5583-4aad-93ce-b8159b0327dd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053024Z:f3a69e9c-5583-4aad-93ce-b8159b0327dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:30:24 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "eab10901-def8-4b9a-960b-f6c6c7b8c597" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11933" + ], + "x-ms-correlation-request-id": [ + "b0313c94-ff6a-4e89-8738-ce9c8211b8fe" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053039Z:b0313c94-ff6a-4e89-8738-ce9c8211b8fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:30:38 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "138ef790-dc6c-40ce-9127-792fc3c99670" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11932" + ], + "x-ms-correlation-request-id": [ + "9e41f8fa-5af6-4949-a188-ca8ca77469ed" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053054Z:9e41f8fa-5af6-4949-a188-ca8ca77469ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:30:53 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4accffc6-6e03-48ec-9ed4-b6b70fefa897" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11931" + ], + "x-ms-correlation-request-id": [ + "5da77cb4-bbdd-4e28-a27b-932ec4a8fb99" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053109Z:5da77cb4-bbdd-4e28-a27b-932ec4a8fb99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:31:08 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e0d2dde8-8345-4539-bf50-a79152e80455" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11930" + ], + "x-ms-correlation-request-id": [ + "ec9c3ef2-591d-43d8-8b4c-011502e97aa5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053124Z:ec9c3ef2-591d-43d8-8b4c-011502e97aa5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:31:24 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b60a1ec3-a637-416d-a916-ce5bd20d8f33" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11929" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "edb0a7a7-9019-4738-a367-ef3aa54a7c9b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053139Z:edb0a7a7-9019-4738-a367-ef3aa54a7c9b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:31:39 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "953d3eb9-8495-49a3-bc09-a2c44bafa3e3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11928" + ], + "x-ms-correlation-request-id": [ + "182a9821-b6eb-4674-b7d1-54264f11df47" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053154Z:182a9821-b6eb-4674-b7d1-54264f11df47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:31:53 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d05d7797-6b41-45e6-bd59-0f0b163373af" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11927" + ], + "x-ms-correlation-request-id": [ + "7ec383f0-9955-4eae-bebe-0a530d4e3878" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053209Z:7ec383f0-9955-4eae-bebe-0a530d4e3878" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:32:09 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2d1d70c8-eee5-4410-a38f-2621d5f357b6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11926" + ], + "x-ms-correlation-request-id": [ + "cc0da554-8ec3-4ec3-9c1a-ff43b0774c64" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053224Z:cc0da554-8ec3-4ec3-9c1a-ff43b0774c64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:32:24 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2fafdefa-4ead-482c-8c3d-57b2c97edbfa" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11925" + ], + "x-ms-correlation-request-id": [ + "6e52cbd6-cb0e-4b7d-8574-004592b077b7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053239Z:6e52cbd6-cb0e-4b7d-8574-004592b077b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:32:38 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "717ee235-7b0c-4952-ba59-33865f6f9fb6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11924" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "568708a5-0bbf-4840-9fb9-36de0f114ff1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053254Z:568708a5-0bbf-4840-9fb9-36de0f114ff1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:32:54 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "24b335a4-4075-407a-94b0-290af39cd6f3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11923" + ], + "x-ms-correlation-request-id": [ + "a3e34c18-bd76-435a-8619-a54fb75b8595" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053310Z:a3e34c18-bd76-435a-8619-a54fb75b8595" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:33:09 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9727de2c-82a9-49ce-b803-861f259236de" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11922" + ], + "x-ms-correlation-request-id": [ + "6e638fda-24af-4af1-8820-20a35fdebd5d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053325Z:6e638fda-24af-4af1-8820-20a35fdebd5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:33:24 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "86023a14-a7d8-4d7e-b109-6b3a41f32ed8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11921" + ], + "x-ms-correlation-request-id": [ + "523554a6-4909-4426-a36d-cd376e4ee261" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053340Z:523554a6-4909-4426-a36d-cd376e4ee261" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:33:39 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f3b54e9f-6191-4ef7-8e58-a05dfe319021" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11920" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "c2a751eb-0dbf-4393-9d5b-1f7585c15df5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053415Z:c2a751eb-0dbf-4393-9d5b-1f7585c15df5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:34:15 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/6b92101c-6cdc-4d15-b953-0a966ac2e626?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzZiOTIxMDFjLTZjZGMtNGQxNS1iOTUzLTBhOTY2YWMyZTYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "dd4fb05f-c318-40c5-8e2e-138348f41d2c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11919" + ], + "x-ms-correlation-request-id": [ + "3b623d94-dbe0-4e21-93ad-8106cfe43470" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053430Z:3b623d94-dbe0-4e21-93ad-8106cfe43470" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:34:30 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b92101c-6cdc-4d15-b953-0a966ac2e626\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T05:29:53.017Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "34d61ff5-1a38-4b82-86ff-b2fbc6c27332" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11918" + ], + "x-ms-correlation-request-id": [ + "69e71ce9-845d-4143-b462-813bacabbf68" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053430Z:69e71ce9-845d-4143-b462-813bacabbf68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:34:30 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\",\r\n \"name\": \"test-25\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "20fce26b-d2d5-4395-8d72-c2558270d7bd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11888" + ], + "x-ms-correlation-request-id": [ + "82d9edb8-632c-48ab-a759-583473edc1a1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054320Z:82d9edb8-632c-48ab-a759-583473edc1a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:43:19 GMT" + ], + "Content-Length": [ + "775" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\",\r\n \"name\": \"test-25\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25/extensions/joindomain?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjUvZXh0ZW5zaW9ucy9qb2luZG9tYWluP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"JsonADDomainExtension\",\r\n \"typeHandlerVersion\": \"1.3\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\r\n \"Name\": \"Domain.com\",\r\n \"OUPath\": \"\",\r\n \"User\": \"Domain\\\\myvmadmin\",\r\n \"Restart\": \"true\",\r\n \"Options\": \"3\"\r\n },\r\n \"protectedSettings\": {\r\n \"Password\": \"sql@zure123!\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7334e138-044d-403a-a4aa-6495ca90ad25" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "432" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/cbb2409d-c96c-441d-9acf-02a372d65499?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1191" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "cbb2409d-c96c-441d-9acf-02a372d65499" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "02291fa6-5c78-421d-b053-38017580db2e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053431Z:02291fa6-5c78-421d-b053-38017580db2e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:34:30 GMT" + ], + "Content-Length": [ + "605" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"joindomain\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25/extensions/joindomain\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Creating\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"JsonADDomainExtension\",\r\n \"typeHandlerVersion\": \"1.3\",\r\n \"settings\": {\r\n \"Name\": \"Domain.com\",\r\n \"OUPath\": \"\",\r\n \"User\": \"Domain\\\\myvmadmin\",\r\n \"Restart\": \"true\",\r\n \"Options\": \"3\"\r\n }\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/cbb2409d-c96c-441d-9acf-02a372d65499?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2JiMjQwOWQtYzk2Yy00NDFkLTlhY2YtMDJhMzcyZDY1NDk5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29884" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "b39fddec-30a0-4e39-a38c-afab03f6a573" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "d570bec6-4bed-4395-9ee0-4bd9fc1165ac" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053501Z:d570bec6-4bed-4395-9ee0-4bd9fc1165ac" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:35:01 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:34:30.9588525-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"cbb2409d-c96c-441d-9acf-02a372d65499\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/cbb2409d-c96c-441d-9acf-02a372d65499?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2JiMjQwOWQtYzk2Yy00NDFkLTlhY2YtMDJhMzcyZDY1NDk5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29883" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "fde3d610-d2ef-43c1-aa36-e09de414e46f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "4ed5f646-aa40-4c4d-9c97-faab1a3da0e6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053531Z:4ed5f646-aa40-4c4d-9c97-faab1a3da0e6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:35:30 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:34:30.9588525-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"cbb2409d-c96c-441d-9acf-02a372d65499\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/cbb2409d-c96c-441d-9acf-02a372d65499?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2JiMjQwOWQtYzk2Yy00NDFkLTlhY2YtMDJhMzcyZDY1NDk5P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29881" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "5f15f580-12a8-4827-a01f-b92257d98800" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "c2d92747-5922-4dba-84e3-1d1fc72b79dc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053601Z:c2d92747-5922-4dba-84e3-1d1fc72b79dc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:36:01 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:34:30.9588525-07:00\",\r\n \"endTime\": \"2019-08-08T22:35:46.8182428-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"cbb2409d-c96c-441d-9acf-02a372d65499\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25/extensions/joindomain?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjUvZXh0ZW5zaW9ucy9qb2luZG9tYWluP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31940" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "db7f1dc7-09d7-4003-85f5-fd195a08b441" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "78f239f1-646d-4743-b7d5-51454e5d8612" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053601Z:78f239f1-646d-4743-b7d5-51454e5d8612" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:36:01 GMT" + ], + "Content-Length": [ + "606" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"joindomain\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-25/extensions/joindomain\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"JsonADDomainExtension\",\r\n \"typeHandlerVersion\": \"1.3\",\r\n \"settings\": {\r\n \"Name\": \"Domain.com\",\r\n \"OUPath\": \"\",\r\n \"User\": \"Domain\\\\myvmadmin\",\r\n \"Restart\": \"true\",\r\n \"Options\": \"3\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4da9cef2-9a20-44b8-806c-e8ed4f1d5a19" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11917" + ], + "x-ms-correlation-request-id": [ + "7f81ce84-d1b0-44e5-a3b8-7cac7aef52c5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053618Z:7f81ce84-d1b0-44e5-a3b8-7cac7aef52c5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:36:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "29754c8a-6e6e-43a6-b94f-a83a0ad1ae57" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11916" + ], + "x-ms-correlation-request-id": [ + "084f6466-aed0-4a44-8dac-dd2b7fb6a8fe" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053633Z:084f6466-aed0-4a44-8dac-dd2b7fb6a8fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:36:32 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "566ecd71-d885-4bb2-a492-198d2fa40ee9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11915" + ], + "x-ms-correlation-request-id": [ + "84d52fbc-9301-4e5a-abd0-344bbff598fc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053648Z:84d52fbc-9301-4e5a-abd0-344bbff598fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:36:47 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b2b36b48-2c73-4c5f-9877-442960ccc3df" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11914" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "27c6c35a-9b0f-40d7-910f-331148e2a2e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053703Z:27c6c35a-9b0f-40d7-910f-331148e2a2e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:37:03 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "fa65c6aa-c146-4955-a724-6584bdf90440" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11913" + ], + "x-ms-correlation-request-id": [ + "7d96bab0-107d-478f-bc0a-7881ac73196c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053718Z:7d96bab0-107d-478f-bc0a-7881ac73196c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:37:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "77d1de44-898d-4965-bd54-064b272ce4c6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11912" + ], + "x-ms-correlation-request-id": [ + "a9d22419-42dc-4aa9-a5b4-0cc94e961938" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053733Z:a9d22419-42dc-4aa9-a5b4-0cc94e961938" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:37:33 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8edc6bd1-630d-4c3d-9bc9-a52228655d6a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11911" + ], + "x-ms-correlation-request-id": [ + "2795d0a4-75bf-4c30-965b-9d297abcf2de" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053748Z:2795d0a4-75bf-4c30-965b-9d297abcf2de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:37:48 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "12f3dd21-9ad5-4c42-8449-55a795b8e78f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11910" + ], + "x-ms-correlation-request-id": [ + "e2fe39aa-7843-4cdb-98dc-cd2eb379a168" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053803Z:e2fe39aa-7843-4cdb-98dc-cd2eb379a168" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:38:02 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "46dd58c4-fbc7-453c-8d09-e0c1d4b90a9b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11909" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "ffc4af5e-e82f-439d-9365-7547baf11d38" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053818Z:ffc4af5e-e82f-439d-9365-7547baf11d38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:38:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0910253b-dcd9-469c-bbb0-f083b9cebbab" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11908" + ], + "x-ms-correlation-request-id": [ + "a23defe3-7b31-466a-ad9a-d1d4a60988cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053833Z:a23defe3-7b31-466a-ad9a-d1d4a60988cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:38:33 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a58d3b15-879c-42cf-ad95-eeb7519568c3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11907" + ], + "x-ms-correlation-request-id": [ + "10525c42-5cf9-427b-98cc-34a1883c0b08" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053848Z:10525c42-5cf9-427b-98cc-34a1883c0b08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:38:48 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "97f9c1b3-f4a7-4a92-8927-f7f3636cf09b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11906" + ], + "x-ms-correlation-request-id": [ + "147c5ea0-2258-476f-b024-dabcc0177b20" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053904Z:147c5ea0-2258-476f-b024-dabcc0177b20" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:39:03 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "863e41db-db05-4ed9-ae86-af55e28ce70f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11905" + ], + "x-ms-correlation-request-id": [ + "6327b5b3-806e-41b4-8ce1-73db5eaca905" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053919Z:6327b5b3-806e-41b4-8ce1-73db5eaca905" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:39:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "da366eed-187f-40e4-b2db-b13615ca0f5a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11904" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "01ebb5a9-6330-47c3-87b4-4421001151fa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053934Z:01ebb5a9-6330-47c3-87b4-4421001151fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:39:33 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1c7780b7-8ce2-4717-abae-198d976c6862" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11903" + ], + "x-ms-correlation-request-id": [ + "9a9a12a2-2414-457d-b24a-0691762a5aee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T053949Z:9a9a12a2-2414-457d-b24a-0691762a5aee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:39:48 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1d0c09e2-daae-498d-97f5-326fac385fd3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11902" + ], + "x-ms-correlation-request-id": [ + "23ec7dc7-2cc9-46cb-a608-b590fbbf3a77" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054004Z:23ec7dc7-2cc9-46cb-a608-b590fbbf3a77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:40:03 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "52221c4c-1f38-4dd6-8100-04fa12f1adb2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11901" + ], + "x-ms-correlation-request-id": [ + "a335c3d8-041d-4ac7-a119-7d8200ac7990" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054019Z:a335c3d8-041d-4ac7-a119-7d8200ac7990" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:40:19 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "df70ab13-d3c4-4449-a544-5473edecfa4b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11900" + ], + "x-ms-correlation-request-id": [ + "b1bcdb1a-a8b3-4ea4-9179-809d2378ee30" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054034Z:b1bcdb1a-a8b3-4ea4-9179-809d2378ee30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:40:33 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d073533a-da98-4612-99fc-a34c55e8ab3b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11899" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "15266b5c-e292-4202-9f0e-a09d30671964" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054049Z:15266b5c-e292-4202-9f0e-a09d30671964" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:40:48 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "dccbfa74-b7e5-4e4e-8963-e0f4dc90b1e5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11898" + ], + "x-ms-correlation-request-id": [ + "2f8ffc16-309b-46b3-8065-076589657198" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054104Z:2f8ffc16-309b-46b3-8065-076589657198" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:41:04 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1582e73e-a065-464d-8291-0c7fa1987edd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11897" + ], + "x-ms-correlation-request-id": [ + "2805efdb-3e80-4010-a2d5-90b10884caf3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054119Z:2805efdb-3e80-4010-a2d5-90b10884caf3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:41:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ba9ec56b-fbe4-48aa-b928-3ab268e1efbb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11896" + ], + "x-ms-correlation-request-id": [ + "85656d0f-b993-44da-a148-0622e070909c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054134Z:85656d0f-b993-44da-a148-0622e070909c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:41:34 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1422d7d3-31a0-494c-b8e5-77ab6c4cf8bd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11895" + ], + "x-ms-correlation-request-id": [ + "da243d44-9caf-4297-ac20-2ee929920c48" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054149Z:da243d44-9caf-4297-ac20-2ee929920c48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:41:49 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "98e3f78d-fc43-4130-8a47-f35e5b81b73b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11894" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "4ef71ff0-ceb5-4a51-bc8f-c79f05a589f9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054204Z:4ef71ff0-ceb5-4a51-bc8f-c79f05a589f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:42:04 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8be567cb-faa3-402a-bbe9-85d46b4f1a3d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11893" + ], + "x-ms-correlation-request-id": [ + "76b05fb4-811f-4c50-a342-0bab8e0c0dda" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054219Z:76b05fb4-811f-4c50-a342-0bab8e0c0dda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:42:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b609d791-49c6-4f1b-a0fc-cc1037adf252" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11892" + ], + "x-ms-correlation-request-id": [ + "dd20f4a0-c335-44d5-8c38-86a218fd15dc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054234Z:dd20f4a0-c335-44d5-8c38-86a218fd15dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:42:34 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "06465da0-ff5c-45e7-8f19-f43f240b19ac" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11891" + ], + "x-ms-correlation-request-id": [ + "7a1fff9b-b44b-4b5b-b46e-f248db7066a9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054249Z:7a1fff9b-b44b-4b5b-b46e-f248db7066a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:42:49 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4c8dda9b-5d16-484b-916c-52a62aed4d7e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11890" + ], + "x-ms-correlation-request-id": [ + "86ca6c08-f776-4c73-82f2-3d76a7cbb51c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054304Z:86ca6c08-f776-4c73-82f2-3d76a7cbb51c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:43:04 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachine/operationResults/30e29caf-7964-4aad-b91a-46f44dcdb708?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzMwZTI5Y2FmLTc5NjQtNGFhZC1iOTFhLTQ2ZjQ0ZGNkYjcwOD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "17b5847b-9237-400a-928c-58b26c811e95" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11889" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "d84fb4de-eab4-4c08-bdd3-4aaab6e51163" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054319Z:d84fb4de-eab4-4c08-bdd3-4aaab6e51163" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:43:19 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"30e29caf-7964-4aad-b91a-46f44dcdb708\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T05:36:02.27Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbG9hZEJhbGFuY2Vycy90ZXN0LTI2P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-2\",\r\n \"etag\": \"W/\\\"f5e2a8dc-6384-46ee-9ea9-527ab6b746e8\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n }\r\n },\r\n \"name\": \"LoadBalancerFrontEnd\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fa7a73a8-f6ed-455f-8e27-dabfe2e258d6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "954" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "299d33ba-a4b2-4451-9463-691d8c33210f" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/299d33ba-a4b2-4451-9463-691d8c33210f?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "9dfa9343-6b90-463d-82e6-c12f87b73dab" + ], + "x-ms-arm-service-request-id": [ + "b73eac29-ae65-439b-83af-9a306adea46a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054321Z:9dfa9343-6b90-463d-82e6-c12f87b73dab" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:43:20 GMT" + ], + "Content-Length": [ + "1453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-26\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26\",\r\n \"etag\": \"W/\\\"1d6202ba-24c2-4ba6-a743-160f9e1a90af\\\"\",\r\n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"bd3839db-2f64-4f8d-a390-4575849d4add\",\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n \"etag\": \"W/\\\"1d6202ba-24c2-4ba6-a743-160f9e1a90af\\\"\",\r\n \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.7\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\": [],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbG9hZEJhbGFuY2Vycy90ZXN0LTI2P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"1d6202ba-24c2-4ba6-a743-160f9e1a90af\"" + ], + "x-ms-request-id": [ + "dcb8ba70-f6f0-4158-8066-3861b319306b" + ], + "x-ms-correlation-request-id": [ + "e584f36d-1ed2-4e99-a540-8c6b794dbe77" + ], + "x-ms-arm-service-request-id": [ + "5e80e30b-ad3e-4905-b2b3-a24397fd845c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054321Z:e584f36d-1ed2-4e99-a540-8c6b794dbe77" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:43:20 GMT" + ], + "Content-Length": [ + "1453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-26\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26\",\r\n \"etag\": \"W/\\\"1d6202ba-24c2-4ba6-a743-160f9e1a90af\\\"\",\r\n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"bd3839db-2f64-4f8d-a390-4575849d4add\",\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n \"etag\": \"W/\\\"1d6202ba-24c2-4ba6-a743-160f9e1a90af\\\"\",\r\n \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.7\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\": [],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/agCreation?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjQvZXh0ZW5zaW9ucy9hZ0NyZWF0aW9uP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"CustomScriptExtension\",\r\n \"typeHandlerVersion\": \"1.9\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\r\n \"FileUris\": [\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/Deploy.ps1\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm6.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm7.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm8.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/test/sqlvm9.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm10.sql\"\r\n ],\r\n \"CommandToExecute\": \"powershell -ExecutionPolicy Unrestricted -File Deploy.ps1 AvGroup test-24 test-25 sqllogin sql@zure123! Domain\\\\sqlservice\",\r\n \"ContentVersion\": \"1.0.0.0\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "79b1f661-44a1-44c4-8702-2a2a9559b363" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "928" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f4a3a5a8-251f-4648-8ece-1d20b9462a70?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1187" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "f4a3a5a8-251f-4648-8ece-1d20b9462a70" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "8bcbc59e-93e7-49b3-926c-07f1538b31a0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054322Z:8bcbc59e-93e7-49b3-926c-07f1538b31a0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:43:21 GMT" + ], + "Content-Length": [ + "1121" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"agCreation\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/agCreation\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Creating\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"CustomScriptExtension\",\r\n \"typeHandlerVersion\": \"1.9\",\r\n \"settings\": {\r\n \"FileUris\": [\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/Deploy.ps1\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm6.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm7.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm8.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/test/sqlvm9.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm10.sql\"\r\n ],\r\n \"CommandToExecute\": \"powershell -ExecutionPolicy Unrestricted -File Deploy.ps1 AvGroup test-24 test-25 sqllogin sql@zure123! Domain\\\\sqlservice\",\r\n \"ContentVersion\": \"1.0.0.0\"\r\n }\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f4a3a5a8-251f-4648-8ece-1d20b9462a70?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZjRhM2E1YTgtMjUxZi00NjQ4LThlY2UtMWQyMGI5NDYyYTcwP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29857" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "106012a1-295b-4887-9c66-83449820d411" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "a4a46b0a-2666-4a70-b2dc-50f02c033568" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054352Z:a4a46b0a-2666-4a70-b2dc-50f02c033568" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:43:51 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:43:21.8875541-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"f4a3a5a8-251f-4648-8ece-1d20b9462a70\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f4a3a5a8-251f-4648-8ece-1d20b9462a70?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZjRhM2E1YTgtMjUxZi00NjQ4LThlY2UtMWQyMGI5NDYyYTcwP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29855" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "8e494d2b-ea92-45b7-abb5-9889c38e456c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "343d4916-3657-473c-9a93-f3e001ad347d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054422Z:343d4916-3657-473c-9a93-f3e001ad347d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:44:21 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T22:43:21.8875541-07:00\",\r\n \"endTime\": \"2019-08-08T22:43:56.5752405-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"f4a3a5a8-251f-4648-8ece-1d20b9462a70\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/agCreation?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjQvZXh0ZW5zaW9ucy9hZ0NyZWF0aW9uP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31929" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "069dd3b4-25b3-4254-a329-4c2bb9e5e2ed" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "67d53082-22a8-4cae-b0ec-600096b74c19" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054422Z:67d53082-22a8-4cae-b0ec-600096b74c19" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:44:21 GMT" + ], + "Content-Length": [ + "1122" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"agCreation\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-24/extensions/agCreation\",\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Compute\",\r\n \"type\": \"CustomScriptExtension\",\r\n \"typeHandlerVersion\": \"1.9\",\r\n \"settings\": {\r\n \"FileUris\": [\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/Deploy.ps1\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm6.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm7.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm8.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/test/sqlvm9.sql\",\r\n \"https://agtemplatestorage.blob.core.windows.net/templates/sqlvm10.sql\"\r\n ],\r\n \"CommandToExecute\": \"powershell -ExecutionPolicy Unrestricted -File Deploy.ps1 AvGroup test-24 test-25 sqllogin sql@zure123! Domain\\\\sqlservice\",\r\n \"ContentVersion\": \"1.0.0.0\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXAvYXZhaWxhYmlsaXR5R3JvdXBMaXN0ZW5lcnMvQUdMaXN0ZW5lcj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"availabilityGroupName\": \"AvGroup\",\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"privateIpAddress\": {\r\n \"ipAddress\": \"10.0.0.11\",\r\n \"subnetResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"loadBalancerResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26\",\r\n \"probePort\": 59999,\r\n \"sqlVirtualMachineInstances\": [\r\n \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\",\r\n \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\"\r\n ]\r\n }\r\n ],\r\n \"port\": 1433\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "683e4a6b-a09c-4ad1-8431-14e553315110" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "999" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "753796e0-3673-4685-8d7b-3e89df62347e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "cd8687bb-fee4-4e7a-9bd0-d31451df2fe0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054428Z:cd8687bb-fee4-4e7a-9bd0-d31451df2fe0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:44:27 GMT" + ], + "Content-Length": [ + "963" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Provisioning\",\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"privateIpAddress\": {\r\n \"ipAddress\": \"10.0.0.11\",\r\n \"subnetResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"sqlVirtualMachineInstances\": [\r\n \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\",\r\n \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\"\r\n ]\r\n }\r\n ],\r\n \"port\": 1433\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener\",\r\n \"name\": \"AGListener\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f5498c38-d8b3-40ab-833b-d6598dd4dfba" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11887" + ], + "x-ms-correlation-request-id": [ + "2a0beb4f-aed6-4f51-a680-8eeb12583d76" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054443Z:2a0beb4f-aed6-4f51-a680-8eeb12583d76" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:44:42 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8a0c02ed-37aa-46e6-aa7b-e659fe31f911" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11886" + ], + "x-ms-correlation-request-id": [ + "f4551a53-b48a-49d3-9221-e3d4a92eb129" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054458Z:f4551a53-b48a-49d3-9221-e3d4a92eb129" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:44:57 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "881a5e97-7936-4d66-b684-b53976a679ac" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11885" + ], + "x-ms-correlation-request-id": [ + "25551cdd-87ec-43ff-98fd-75d5f47d38ee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054513Z:25551cdd-87ec-43ff-98fd-75d5f47d38ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:45:12 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4957f0e9-3702-4612-a313-44b71f6b7098" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11884" + ], + "x-ms-correlation-request-id": [ + "902e5724-0680-4392-b88d-c3a632c73e01" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054528Z:902e5724-0680-4392-b88d-c3a632c73e01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:45:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "cc6740b5-b07b-4145-ac48-2bffcf03dec6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11883" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "fb612d5e-53da-49c5-9210-73b8bada49e1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054543Z:fb612d5e-53da-49c5-9210-73b8bada49e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:45:42 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5c41e9a8-fd4b-4722-83f6-37f92592205b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11882" + ], + "x-ms-correlation-request-id": [ + "d639ce11-2f76-4c9a-993d-c2c24874dea4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054558Z:d639ce11-2f76-4c9a-993d-c2c24874dea4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:45:57 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c58dd2c2-844f-4cec-abfc-a552e4287bf6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11881" + ], + "x-ms-correlation-request-id": [ + "9f9b8e43-a1ec-4fe7-bf21-afec7705a4a0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054613Z:9f9b8e43-a1ec-4fe7-bf21-afec7705a4a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:46:13 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "130b7d14-c47c-4aeb-ab31-a0e8abcdb466" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11880" + ], + "x-ms-correlation-request-id": [ + "d0c7c2f5-f90d-4f5d-8145-d2b635778369" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054628Z:d0c7c2f5-f90d-4f5d-8145-d2b635778369" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:46:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2e73dc7d-3e1e-444f-bf6b-b326a2d97d29" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11879" + ], + "x-ms-correlation-request-id": [ + "5560cadd-1024-4221-9c61-f778bff3f861" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054643Z:5560cadd-1024-4221-9c61-f778bff3f861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:46:42 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "11230db0-8d7f-4154-8286-21f1a093a4dc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11878" + ], + "x-ms-correlation-request-id": [ + "4c9cb1f5-8c64-4053-83d9-30aa6e4a182e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054658Z:4c9cb1f5-8c64-4053-83d9-30aa6e4a182e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:46:57 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "820ad81d-b0d8-4702-bc59-d15f12e229de" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11877" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "2aff57b5-2331-4a71-9469-73cd6eb926c7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054713Z:2aff57b5-2331-4a71-9469-73cd6eb926c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:47:13 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c3c31d50-597c-47b2-854a-b7588766296e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11876" + ], + "x-ms-correlation-request-id": [ + "ae611510-ef84-4938-90b8-1e787498f421" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054728Z:ae611510-ef84-4938-90b8-1e787498f421" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:47:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a13d8824-236b-45ac-8d04-bac221b54777" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11875" + ], + "x-ms-correlation-request-id": [ + "37dfab6b-1914-4edc-8617-bd02f3c922b2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054743Z:37dfab6b-1914-4edc-8617-bd02f3c922b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:47:42 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1074e82d-144e-4ffd-8995-77e9c0e72224" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11874" + ], + "x-ms-correlation-request-id": [ + "f0137c49-37eb-4ab4-bf74-aa7350657eff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054758Z:f0137c49-37eb-4ab4-bf74-aa7350657eff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:47:58 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5096b691-1f40-4e78-a0f0-7577ca4c3ead" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11873" + ], + "x-ms-correlation-request-id": [ + "96bac583-6f33-4438-8b6c-5ac17e160ee4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054813Z:96bac583-6f33-4438-8b6c-5ac17e160ee4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:48:13 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ed904f57-dccd-4e17-a5cd-639294bbd485" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11872" + ], + "x-ms-correlation-request-id": [ + "be1bf520-b5bd-4779-90bc-6d8ca9c84666" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054828Z:be1bf520-b5bd-4779-90bc-6d8ca9c84666" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:48:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ea1d75c5-598c-4025-a4aa-6f8b0bb1684e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11871" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "b9217450-8d1e-4be6-b2e6-ce79300ae87f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054843Z:b9217450-8d1e-4be6-b2e6-ce79300ae87f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:48:43 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a7f5151b-3198-4841-86d9-4cca94c7bd1e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11870" + ], + "x-ms-correlation-request-id": [ + "de035ca2-9fa8-4fca-aed9-d06531cf124d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054859Z:de035ca2-9fa8-4fca-aed9-d06531cf124d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:48:58 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1e748fac-f748-4983-a49a-2184015c07e8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11869" + ], + "x-ms-correlation-request-id": [ + "0a3e7300-f77f-4c94-a111-3764c46a48f4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054914Z:0a3e7300-f77f-4c94-a111-3764c46a48f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:49:13 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "67ebc564-6ad7-4168-ac12-58c7901ed747" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11868" + ], + "x-ms-correlation-request-id": [ + "aeb4638d-eb97-408d-9472-acd5dcfc9bc6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054929Z:aeb4638d-eb97-408d-9472-acd5dcfc9bc6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:49:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b008bd8c-3038-4d50-811a-d34b513c87f7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11867" + ], + "x-ms-correlation-request-id": [ + "5e586119-aeee-4191-8971-45460dfabe0d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054944Z:5e586119-aeee-4191-8971-45460dfabe0d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:49:43 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "6befb494-52bf-4544-9eb3-c08bcc8fd1d6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11866" + ], + "x-ms-correlation-request-id": [ + "cd6e17ca-709f-4c73-a81a-05f78c968e6a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T054959Z:cd6e17ca-709f-4c73-a81a-05f78c968e6a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:49:58 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c048fa46-39de-4b7e-beb6-b2bb29608602" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11865" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "6c68ee66-e249-440a-bf33-a1e7ec434d5e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055014Z:6c68ee66-e249-440a-bf33-a1e7ec434d5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:50:14 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "16105ccb-8c96-4150-b3b1-2d544156391a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11864" + ], + "x-ms-correlation-request-id": [ + "95c1f153-40c7-41cd-a3cb-9594a3b9b79c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055029Z:95c1f153-40c7-41cd-a3cb-9594a3b9b79c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:50:29 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "95aab38b-2155-4da7-ba2c-22835b61c89f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11863" + ], + "x-ms-correlation-request-id": [ + "8fc45c6e-ac7e-4795-abdb-18b2aa8694dd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055044Z:8fc45c6e-ac7e-4795-abdb-18b2aa8694dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:50:43 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ec2ada91-0fae-4c50-9487-6e88d0b51073" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11862" + ], + "x-ms-correlation-request-id": [ + "8365ca2b-a081-4820-8778-14d96204e72a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055059Z:8365ca2b-a081-4820-8778-14d96204e72a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:50:58 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "14f18599-b69e-41bf-9dfa-03473b3ccff1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11861" + ], + "x-ms-correlation-request-id": [ + "98b5352b-9156-4bc7-a63e-2335a99a7ec6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055114Z:98b5352b-9156-4bc7-a63e-2335a99a7ec6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:51:13 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4584fd93-cdb1-4b77-ad55-aa31b20788c9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11860" + ], + "x-ms-correlation-request-id": [ + "846010f7-bace-4fbc-982c-cf34a19bc66f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055129Z:846010f7-bace-4fbc-982c-cf34a19bc66f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:51:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9ce0e02c-3bce-4716-bddd-68efd95d0fad" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11859" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "f6b9eabb-b5bb-4046-a82b-f3e8920205e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055144Z:f6b9eabb-b5bb-4046-a82b-f3e8920205e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:51:44 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "007ec10b-59ad-4547-b062-e69fafdc85cb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11858" + ], + "x-ms-correlation-request-id": [ + "7b7bd6b5-f5fb-457b-ae87-d4fe6fdef42c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055159Z:7b7bd6b5-f5fb-457b-ae87-d4fe6fdef42c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:51:59 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createavailabilitygrouplistener/operationResults/6ef145ee-470e-49b6-8c42-b2b470affb14?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVhdmFpbGFiaWxpdHlncm91cGxpc3RlbmVyL29wZXJhdGlvblJlc3VsdHMvNmVmMTQ1ZWUtNDcwZS00OWI2LThjNDItYjJiNDcwYWZmYjE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "466b47dc-b44c-48bf-94aa-ddc17aa24a52" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11857" + ], + "x-ms-correlation-request-id": [ + "747d3869-710c-4e96-a88c-761fab4c3201" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055214Z:747d3869-710c-4e96-a88c-761fab4c3201" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:52:14 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6ef145ee-470e-49b6-8c42-b2b470affb14\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T05:44:26.93Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXAvYXZhaWxhYmlsaXR5R3JvdXBMaXN0ZW5lcnMvQUdMaXN0ZW5lcj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c118f4b0-789e-4249-9783-583462c8877f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11856" + ], + "x-ms-correlation-request-id": [ + "f451509b-b536-4d4a-88a5-bc5ceaaf063c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055214Z:f451509b-b536-4d4a-88a5-bc5ceaaf063c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:52:14 GMT" + ], + "Content-Length": [ + "1175" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"availabilityGroupName\": \"AvGroup\",\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"privateIpAddress\": {\r\n \"ipAddress\": \"10.0.0.11\",\r\n \"subnetResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"loadBalancerResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26\",\r\n \"probePort\": 59999,\r\n \"sqlVirtualMachineInstances\": [\r\n \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\",\r\n \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\"\r\n ]\r\n }\r\n ],\r\n \"port\": 1433\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener\",\r\n \"name\": \"AGListener\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXAvYXZhaWxhYmlsaXR5R3JvdXBMaXN0ZW5lcnMvQUdMaXN0ZW5lcj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2c608e5e-8084-4b0b-afe8-e88474409e0a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8a9f1304-e4da-403d-9942-54688426ac4c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11855" + ], + "x-ms-correlation-request-id": [ + "8aa64ad4-985d-46d5-893b-bd4dce5193ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055214Z:8aa64ad4-985d-46d5-893b-bd4dce5193ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:52:14 GMT" + ], + "Content-Length": [ + "1175" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"availabilityGroupName\": \"AvGroup\",\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"privateIpAddress\": {\r\n \"ipAddress\": \"10.0.0.11\",\r\n \"subnetResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"loadBalancerResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26\",\r\n \"probePort\": 59999,\r\n \"sqlVirtualMachineInstances\": [\r\n \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\",\r\n \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\"\r\n ]\r\n }\r\n ],\r\n \"port\": 1433\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener\",\r\n \"name\": \"AGListener\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXAvYXZhaWxhYmlsaXR5R3JvdXBMaXN0ZW5lcnM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ddd0ae87-91b5-4d22-8d45-851beb54cf6d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f815830e-a47b-4338-9af0-09f00e68f0a4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11854" + ], + "x-ms-correlation-request-id": [ + "d4f01649-b723-4df3-9ceb-3a9b0ba0d3d7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055214Z:d4f01649-b723-4df3-9ceb-3a9b0ba0d3d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:52:14 GMT" + ], + "Content-Length": [ + "1187" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"availabilityGroupName\": \"AvGroup\",\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"privateIpAddress\": {\r\n \"ipAddress\": \"10.0.0.11\",\r\n \"subnetResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-2\"\r\n },\r\n \"loadBalancerResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/loadBalancers/test-26\",\r\n \"probePort\": 59999,\r\n \"sqlVirtualMachineInstances\": [\r\n \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-25\",\r\n \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-24\"\r\n ]\r\n }\r\n ],\r\n \"port\": 1433\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener\",\r\n \"name\": \"AGListener\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXAvYXZhaWxhYmlsaXR5R3JvdXBMaXN0ZW5lcnM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2fd52020-114f-453c-81b1-daffa9534793" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2436fa96-73ed-48f7-96ae-dcc280fd0fc3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "364bcb71-2f5b-4803-9a35-5e885363b2e8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055625Z:364bcb71-2f5b-4803-9a35-5e885363b2e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:56:24 GMT" + ], + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group/availabilityGroupListeners/AGListener?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXAvYXZhaWxhYmlsaXR5R3JvdXBMaXN0ZW5lcnMvQUdMaXN0ZW5lcj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d898f571-b2cc-40ac-b579-c40d5fc740c2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "83fea8b2-babe-42ee-b845-c57a0c0390b9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "49ba6115-a1bf-48e3-9276-0bbd9f919872" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055216Z:49ba6115-a1bf-48e3-9276-0bbd9f919872" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:52:15 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5db6c2b2-96bd-48c9-9e2e-1761713bea20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11853" + ], + "x-ms-correlation-request-id": [ + "5c1b1df3-104b-4683-b8e0-c16a957d9c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055231Z:5c1b1df3-104b-4683-b8e0-c16a957d9c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:52:30 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d71dfc6c-22bd-401a-a1fd-02943eac966a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11852" + ], + "x-ms-correlation-request-id": [ + "61180c0a-27cd-41ef-835b-bab524ae2824" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055246Z:61180c0a-27cd-41ef-835b-bab524ae2824" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:52:45 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b6de0911-cc86-4c54-bdea-54038745bffe" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11851" + ], + "x-ms-correlation-request-id": [ + "64d1a5d0-0a3a-4601-a189-b3678f02f377" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055301Z:64d1a5d0-0a3a-4601-a189-b3678f02f377" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:53:01 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "800ec885-f918-4953-a59a-036b29869d19" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11850" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "434955b2-b266-44f3-adea-c1f2f58fb514" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055316Z:434955b2-b266-44f3-adea-c1f2f58fb514" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:53:15 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "823e5c13-0ad1-46c1-82a6-74c0100cae4f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "576a1435-292d-492c-afa3-097a170f37dd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055345Z:576a1435-292d-492c-afa3-097a170f37dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:53:45 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c9cfad7f-274b-4b00-b61a-a905a1dbd9ce" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "d29ef057-c2ed-49cf-a1b9-0dc9f816366f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055424Z:d29ef057-c2ed-49cf-a1b9-0dc9f816366f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:54:23 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "795e3716-a280-4bcd-826d-a79f25d9da4f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "48c056ed-9679-4e93-bd8f-6b4f297f4906" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055439Z:48c056ed-9679-4e93-bd8f-6b4f297f4906" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:54:39 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b88fb1e2-71bd-4588-8603-452e57e5e36b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "a09bbe16-9785-4a8c-b522-cf60342f726f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055454Z:a09bbe16-9785-4a8c-b522-cf60342f726f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:54:54 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5c4d17ab-3911-4db5-a52b-bfcbc0f2a66e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "ea748f9a-dfae-4e4e-a15a-2027a3eba826" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055509Z:ea748f9a-dfae-4e4e-a15a-2027a3eba826" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:55:09 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "17d0a9c8-6839-41a4-a7dc-420c30745132" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "10046df0-3a15-4fff-a39d-03fd04515862" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055524Z:10046df0-3a15-4fff-a39d-03fd04515862" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:55:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "daeb129b-213b-451e-948d-6f3bd9a9f99d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "1b700724-a45f-4195-b311-ab72a0231c21" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055540Z:1b700724-a45f-4195-b311-ab72a0231c21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:55:39 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0706cb4b-58dc-42e8-865e-f0596bd8d247" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "24b0fd85-b956-44e2-8e53-f997cf7f5bca" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055555Z:24b0fd85-b956-44e2-8e53-f997cf7f5bca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:55:54 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "964eab2a-7ea5-4eb3-8987-29319dae8cd4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "eb0c5315-fb4a-4b57-8a0f-2eb7e13943f9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055610Z:eb0c5315-fb4a-4b57-8a0f-2eb7e13943f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:56:09 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8847496e-88b8-4499-be2a-d5f0a6147a1c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "7f2a1729-90e2-43f6-9df3-b82a9d88ff76" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055625Z:7f2a1729-90e2-43f6-9df3-b82a9d88ff76" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:56:24 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/availabilityGroupListenerOperationResults/73f397d5-2318-4c1d-bc64-76da992c6283?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9hdmFpbGFiaWxpdHlHcm91cExpc3RlbmVyT3BlcmF0aW9uUmVzdWx0cy83M2YzOTdkNS0yMzE4LTRjMWQtYmM2NC03NmRhOTkyYzYyODM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "132d7b08-0e61-4a6f-9213-d281000bbdfb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "f253be85-d469-4349-896d-f7d6c99651e9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055625Z:f253be85-d469-4349-896d-f7d6c99651e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:56:24 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5f879346-60d3-4ba3-a2f6-eb205dabcce7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "5ced65bd-df46-4efe-8995-dbc3db00a304" + ], + "x-ms-correlation-request-id": [ + "5ced65bd-df46-4efe-8995-dbc3db00a304" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055625Z:5ced65bd-df46-4efe-8995-dbc3db00a304" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:56:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "e39b41b5-50df-4946-b637-f3e267c99985" + ], + "x-ms-correlation-request-id": [ + "e39b41b5-50df-4946-b637-f3e267c99985" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055640Z:e39b41b5-50df-4946-b637-f3e267c99985" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:56:39 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "e1a9fe76-3383-4f00-a73e-1a343e9a9f33" + ], + "x-ms-correlation-request-id": [ + "e1a9fe76-3383-4f00-a73e-1a343e9a9f33" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055655Z:e1a9fe76-3383-4f00-a73e-1a343e9a9f33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:56:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "bddbb665-df6d-435d-aa47-2c42a6038e58" + ], + "x-ms-correlation-request-id": [ + "bddbb665-df6d-435d-aa47-2c42a6038e58" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055710Z:bddbb665-df6d-435d-aa47-2c42a6038e58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:57:09 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "679cf8b4-9596-4980-8cf9-b760cea321d6" + ], + "x-ms-correlation-request-id": [ + "679cf8b4-9596-4980-8cf9-b760cea321d6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055725Z:679cf8b4-9596-4980-8cf9-b760cea321d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:57:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "8eccbfc1-e584-4b45-bc2a-1fcf2d919f31" + ], + "x-ms-correlation-request-id": [ + "8eccbfc1-e584-4b45-bc2a-1fcf2d919f31" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055740Z:8eccbfc1-e584-4b45-bc2a-1fcf2d919f31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:57:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "4335b342-fd66-4e1c-aec9-f0ce96b0f234" + ], + "x-ms-correlation-request-id": [ + "4335b342-fd66-4e1c-aec9-f0ce96b0f234" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055755Z:4335b342-fd66-4e1c-aec9-f0ce96b0f234" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:57:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "fcf4a808-3d6a-4683-bb85-b5c1563a4ab9" + ], + "x-ms-correlation-request-id": [ + "fcf4a808-3d6a-4683-bb85-b5c1563a4ab9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055810Z:fcf4a808-3d6a-4683-bb85-b5c1563a4ab9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:58:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "f1431c38-20ec-4a26-9917-2f487c00b4b4" + ], + "x-ms-correlation-request-id": [ + "f1431c38-20ec-4a26-9917-2f487c00b4b4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055825Z:f1431c38-20ec-4a26-9917-2f487c00b4b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:58:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "e1166476-bf4f-4b08-b0a5-21e5b4892db8" + ], + "x-ms-correlation-request-id": [ + "e1166476-bf4f-4b08-b0a5-21e5b4892db8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055840Z:e1166476-bf4f-4b08-b0a5-21e5b4892db8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:58:39 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "2c4e3921-e74b-4868-bcc5-d1083e1b9052" + ], + "x-ms-correlation-request-id": [ + "2c4e3921-e74b-4868-bcc5-d1083e1b9052" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055855Z:2c4e3921-e74b-4868-bcc5-d1083e1b9052" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:58:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "41892b1e-3663-4516-81d6-0183bd7bf951" + ], + "x-ms-correlation-request-id": [ + "41892b1e-3663-4516-81d6-0183bd7bf951" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055910Z:41892b1e-3663-4516-81d6-0183bd7bf951" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:59:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "9e435054-ee24-4f81-b2b4-cbf55aefcfb5" + ], + "x-ms-correlation-request-id": [ + "9e435054-ee24-4f81-b2b4-cbf55aefcfb5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055926Z:9e435054-ee24-4f81-b2b4-cbf55aefcfb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:59:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "6199e608-5e7d-43f0-ad10-5c7e9fbb7e28" + ], + "x-ms-correlation-request-id": [ + "6199e608-5e7d-43f0-ad10-5c7e9fbb7e28" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055941Z:6199e608-5e7d-43f0-ad10-5c7e9fbb7e28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:59:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "b02a2098-20b8-4718-80d7-3a729d55451d" + ], + "x-ms-correlation-request-id": [ + "b02a2098-20b8-4718-80d7-3a729d55451d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T055956Z:b02a2098-20b8-4718-80d7-3a729d55451d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 05:59:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "ee346517-557e-4c1e-8172-cb71aae0e5b7" + ], + "x-ms-correlation-request-id": [ + "ee346517-557e-4c1e-8172-cb71aae0e5b7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060011Z:ee346517-557e-4c1e-8172-cb71aae0e5b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:00:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "ef1360f2-2bc6-4ace-ac47-1097794b5ff0" + ], + "x-ms-correlation-request-id": [ + "ef1360f2-2bc6-4ace-ac47-1097794b5ff0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060026Z:ef1360f2-2bc6-4ace-ac47-1097794b5ff0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:00:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "984b809f-5f84-47b9-9335-b93effe181de" + ], + "x-ms-correlation-request-id": [ + "984b809f-5f84-47b9-9335-b93effe181de" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060041Z:984b809f-5f84-47b9-9335-b93effe181de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:00:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "21cb9d3f-92d7-45a3-bb1e-d4b8414fceee" + ], + "x-ms-correlation-request-id": [ + "21cb9d3f-92d7-45a3-bb1e-d4b8414fceee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060056Z:21cb9d3f-92d7-45a3-bb1e-d4b8414fceee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:00:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "d730aa02-980c-45fe-baaa-6ed2c367df27" + ], + "x-ms-correlation-request-id": [ + "d730aa02-980c-45fe-baaa-6ed2c367df27" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060111Z:d730aa02-980c-45fe-baaa-6ed2c367df27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:01:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "99bd852f-b924-46ae-ac77-f67a0319baa1" + ], + "x-ms-correlation-request-id": [ + "99bd852f-b924-46ae-ac77-f67a0319baa1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060126Z:99bd852f-b924-46ae-ac77-f67a0319baa1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:01:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "0a670b71-68ea-4a29-9252-0a72e080152c" + ], + "x-ms-correlation-request-id": [ + "0a670b71-68ea-4a29-9252-0a72e080152c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060141Z:0a670b71-68ea-4a29-9252-0a72e080152c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:01:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "633e11fc-296a-4014-9097-49e8c7018a8e" + ], + "x-ms-correlation-request-id": [ + "633e11fc-296a-4014-9097-49e8c7018a8e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060156Z:633e11fc-296a-4014-9097-49e8c7018a8e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:01:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "6bafd7fa-b334-47c4-9a8f-6df3500d3097" + ], + "x-ms-correlation-request-id": [ + "6bafd7fa-b334-47c4-9a8f-6df3500d3097" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060211Z:6bafd7fa-b334-47c4-9a8f-6df3500d3097" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:02:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "07b59a5f-bcbe-43fa-994f-28fb00e45f0d" + ], + "x-ms-correlation-request-id": [ + "07b59a5f-bcbe-43fa-994f-28fb00e45f0d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060226Z:07b59a5f-bcbe-43fa-994f-28fb00e45f0d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:02:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "951cf54b-b9e0-4e6c-abbc-329c22c9c52d" + ], + "x-ms-correlation-request-id": [ + "951cf54b-b9e0-4e6c-abbc-329c22c9c52d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060241Z:951cf54b-b9e0-4e6c-abbc-329c22c9c52d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:02:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-request-id": [ + "e58a12d3-76c1-4f25-a8fc-c340008daec9" + ], + "x-ms-correlation-request-id": [ + "e58a12d3-76c1-4f25-a8fc-c340008daec9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060256Z:e58a12d3-76c1-4f25-a8fc-c340008daec9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:02:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-request-id": [ + "139dceca-9bfb-424c-8d8b-e67902ab5eb3" + ], + "x-ms-correlation-request-id": [ + "139dceca-9bfb-424c-8d8b-e67902ab5eb3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060311Z:139dceca-9bfb-424c-8d8b-e67902ab5eb3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:03:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-request-id": [ + "5719ef67-e919-45ce-a02a-aa390a2667f0" + ], + "x-ms-correlation-request-id": [ + "5719ef67-e919-45ce-a02a-aa390a2667f0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060326Z:5719ef67-e919-45ce-a02a-aa390a2667f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:03:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-request-id": [ + "224ab49d-dc9d-4cd0-9ee0-5548bdc13ff9" + ], + "x-ms-correlation-request-id": [ + "224ab49d-dc9d-4cd0-9ee0-5548bdc13ff9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060341Z:224ab49d-dc9d-4cd0-9ee0-5548bdc13ff9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:03:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-request-id": [ + "a3dc0289-94e7-4e52-a150-c3cab1ba4a32" + ], + "x-ms-correlation-request-id": [ + "a3dc0289-94e7-4e52-a150-c3cab1ba4a32" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060356Z:a3dc0289-94e7-4e52-a150-c3cab1ba4a32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:03:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-request-id": [ + "9ea1036c-3eb0-465f-bf0b-1fe13ac7bf7f" + ], + "x-ms-correlation-request-id": [ + "9ea1036c-3eb0-465f-bf0b-1fe13ac7bf7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060411Z:9ea1036c-3eb0-465f-bf0b-1fe13ac7bf7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:04:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-request-id": [ + "db2c94d0-319d-4d1c-95d5-8dc717669be4" + ], + "x-ms-correlation-request-id": [ + "db2c94d0-319d-4d1c-95d5-8dc717669be4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060426Z:db2c94d0-319d-4d1c-95d5-8dc717669be4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:04:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-request-id": [ + "5fd1466d-08cf-4e91-b75a-40d686d789d2" + ], + "x-ms-correlation-request-id": [ + "5fd1466d-08cf-4e91-b75a-40d686d789d2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060525Z:5fd1466d-08cf-4e91-b75a-40d686d789d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:05:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-request-id": [ + "28618f69-ffb7-464d-9608-bcdaea14113d" + ], + "x-ms-correlation-request-id": [ + "28618f69-ffb7-464d-9608-bcdaea14113d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060540Z:28618f69-ffb7-464d-9608-bcdaea14113d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:05:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-request-id": [ + "045f77ed-f219-46ca-8b93-1ffb93640caf" + ], + "x-ms-correlation-request-id": [ + "045f77ed-f219-46ca-8b93-1ffb93640caf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060555Z:045f77ed-f219-46ca-8b93-1ffb93640caf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:05:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-request-id": [ + "004026d2-4683-432c-9a47-d08deeb540e1" + ], + "x-ms-correlation-request-id": [ + "004026d2-4683-432c-9a47-d08deeb540e1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060610Z:004026d2-4683-432c-9a47-d08deeb540e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:06:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-request-id": [ + "57baacc9-ad86-4036-8e7c-31a221db469b" + ], + "x-ms-correlation-request-id": [ + "57baacc9-ad86-4036-8e7c-31a221db469b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060626Z:57baacc9-ad86-4036-8e7c-31a221db469b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:06:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-request-id": [ + "c9daa40c-a910-4cb7-8d60-287a4273ff2d" + ], + "x-ms-correlation-request-id": [ + "c9daa40c-a910-4cb7-8d60-287a4273ff2d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060641Z:c9daa40c-a910-4cb7-8d60-287a4273ff2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:06:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-request-id": [ + "4948f987-92ca-46d5-b45e-83013febee64" + ], + "x-ms-correlation-request-id": [ + "4948f987-92ca-46d5-b45e-83013febee64" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060656Z:4948f987-92ca-46d5-b45e-83013febee64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:06:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-request-id": [ + "99dac842-e8c3-4241-8a53-8eb9b73303df" + ], + "x-ms-correlation-request-id": [ + "99dac842-e8c3-4241-8a53-8eb9b73303df" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060711Z:99dac842-e8c3-4241-8a53-8eb9b73303df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:07:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-request-id": [ + "ac358f68-55e5-4542-8d9f-d70405ddd3bc" + ], + "x-ms-correlation-request-id": [ + "ac358f68-55e5-4542-8d9f-d70405ddd3bc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060726Z:ac358f68-55e5-4542-8d9f-d70405ddd3bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:07:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-request-id": [ + "91783d89-187f-4e77-ab02-b8c3dd7aa522" + ], + "x-ms-correlation-request-id": [ + "91783d89-187f-4e77-ab02-b8c3dd7aa522" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060741Z:91783d89-187f-4e77-ab02-b8c3dd7aa522" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:07:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-request-id": [ + "e721d5e2-4475-4263-b3e4-e087de349aeb" + ], + "x-ms-correlation-request-id": [ + "e721d5e2-4475-4263-b3e4-e087de349aeb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060756Z:e721d5e2-4475-4263-b3e4-e087de349aeb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:07:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-request-id": [ + "14bd4ab2-7a9d-484a-bf30-0f1fa362a678" + ], + "x-ms-correlation-request-id": [ + "14bd4ab2-7a9d-484a-bf30-0f1fa362a678" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060811Z:14bd4ab2-7a9d-484a-bf30-0f1fa362a678" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:08:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-request-id": [ + "dcd62645-289e-4a00-9cef-eb492aac2e63" + ], + "x-ms-correlation-request-id": [ + "dcd62645-289e-4a00-9cef-eb492aac2e63" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060826Z:dcd62645-289e-4a00-9cef-eb492aac2e63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:08:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-request-id": [ + "9954ebd4-9823-45bc-85b0-a0a32ae07f6f" + ], + "x-ms-correlation-request-id": [ + "9954ebd4-9823-45bc-85b0-a0a32ae07f6f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060841Z:9954ebd4-9823-45bc-85b0-a0a32ae07f6f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:08:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-request-id": [ + "7ae6b0dc-66ed-40df-b8fe-3a9b8f2144c2" + ], + "x-ms-correlation-request-id": [ + "7ae6b0dc-66ed-40df-b8fe-3a9b8f2144c2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060856Z:7ae6b0dc-66ed-40df-b8fe-3a9b8f2144c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:08:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-request-id": [ + "e0b1d987-ddb0-463a-b3ce-dbfd19669d28" + ], + "x-ms-correlation-request-id": [ + "e0b1d987-ddb0-463a-b3ce-dbfd19669d28" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060911Z:e0b1d987-ddb0-463a-b3ce-dbfd19669d28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:09:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-request-id": [ + "67329313-4013-4213-a5b0-3632fb6b054d" + ], + "x-ms-correlation-request-id": [ + "67329313-4013-4213-a5b0-3632fb6b054d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060926Z:67329313-4013-4213-a5b0-3632fb6b054d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:09:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-request-id": [ + "47738bfd-8137-43cd-ac4b-17cbc48911eb" + ], + "x-ms-correlation-request-id": [ + "47738bfd-8137-43cd-ac4b-17cbc48911eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060941Z:47738bfd-8137-43cd-ac4b-17cbc48911eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:09:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-request-id": [ + "3f28b8c3-94d4-40be-9084-0887e190f86f" + ], + "x-ms-correlation-request-id": [ + "3f28b8c3-94d4-40be-9084-0887e190f86f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T060956Z:3f28b8c3-94d4-40be-9084-0887e190f86f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:09:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-request-id": [ + "e62c9adc-1839-44ea-ba84-c65287eb913f" + ], + "x-ms-correlation-request-id": [ + "e62c9adc-1839-44ea-ba84-c65287eb913f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061011Z:e62c9adc-1839-44ea-ba84-c65287eb913f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:10:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-request-id": [ + "2a391a01-4fa3-4da1-8a9a-b83745cc85cb" + ], + "x-ms-correlation-request-id": [ + "2a391a01-4fa3-4da1-8a9a-b83745cc85cb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061026Z:2a391a01-4fa3-4da1-8a9a-b83745cc85cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:10:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-request-id": [ + "7fb7473f-7279-4e3f-8981-f6295500728a" + ], + "x-ms-correlation-request-id": [ + "7fb7473f-7279-4e3f-8981-f6295500728a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061041Z:7fb7473f-7279-4e3f-8981-f6295500728a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:10:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-request-id": [ + "22bb7fce-3f91-40ff-8fb0-fea02aba381d" + ], + "x-ms-correlation-request-id": [ + "22bb7fce-3f91-40ff-8fb0-fea02aba381d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061056Z:22bb7fce-3f91-40ff-8fb0-fea02aba381d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:10:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-request-id": [ + "ef6350f5-d4c5-42d1-a730-d5e231256eca" + ], + "x-ms-correlation-request-id": [ + "ef6350f5-d4c5-42d1-a730-d5e231256eca" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061111Z:ef6350f5-d4c5-42d1-a730-d5e231256eca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:11:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-request-id": [ + "5c531a10-57b5-41d3-add1-430692b6106f" + ], + "x-ms-correlation-request-id": [ + "5c531a10-57b5-41d3-add1-430692b6106f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061126Z:5c531a10-57b5-41d3-add1-430692b6106f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:11:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-request-id": [ + "5d6d9440-9467-48a2-ae83-4b3c8a505e66" + ], + "x-ms-correlation-request-id": [ + "5d6d9440-9467-48a2-ae83-4b3c8a505e66" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061142Z:5d6d9440-9467-48a2-ae83-4b3c8a505e66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:11:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-request-id": [ + "0dc1ffd1-a4a7-44c3-afeb-7d2eae329826" + ], + "x-ms-correlation-request-id": [ + "0dc1ffd1-a4a7-44c3-afeb-7d2eae329826" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061157Z:0dc1ffd1-a4a7-44c3-afeb-7d2eae329826" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:11:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-request-id": [ + "d511f9dd-e6f3-485c-9369-4e12f7e19291" + ], + "x-ms-correlation-request-id": [ + "d511f9dd-e6f3-485c-9369-4e12f7e19291" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061212Z:d511f9dd-e6f3-485c-9369-4e12f7e19291" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:12:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "x-ms-request-id": [ + "556d74cb-5e94-4286-ab7d-3b699c8b2209" + ], + "x-ms-correlation-request-id": [ + "556d74cb-5e94-4286-ab7d-3b699c8b2209" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061227Z:556d74cb-5e94-4286-ab7d-3b699c8b2209" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:12:27 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-request-id": [ + "77cb2327-6f47-4b8b-805b-453896b00e07" + ], + "x-ms-correlation-request-id": [ + "77cb2327-6f47-4b8b-805b-453896b00e07" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061242Z:77cb2327-6f47-4b8b-805b-453896b00e07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:12:42 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-request-id": [ + "523a8584-483f-41ff-b8a8-5ff34c2efbda" + ], + "x-ms-correlation-request-id": [ + "523a8584-483f-41ff-b8a8-5ff34c2efbda" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061257Z:523a8584-483f-41ff-b8a8-5ff34c2efbda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:12:57 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-request-id": [ + "535df466-ba7d-49b9-a314-ff0369e8c78c" + ], + "x-ms-correlation-request-id": [ + "535df466-ba7d-49b9-a314-ff0369e8c78c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061312Z:535df466-ba7d-49b9-a314-ff0369e8c78c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:13:12 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11935" + ], + "x-ms-request-id": [ + "de8a732e-6979-4933-bdcd-29a7544fe641" + ], + "x-ms-correlation-request-id": [ + "de8a732e-6979-4933-bdcd-29a7544fe641" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061327Z:de8a732e-6979-4933-bdcd-29a7544fe641" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:13:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11934" + ], + "x-ms-request-id": [ + "138b0efe-d964-4c1c-a84c-26e5a141e9d9" + ], + "x-ms-correlation-request-id": [ + "138b0efe-d964-4c1c-a84c-26e5a141e9d9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061342Z:138b0efe-d964-4c1c-a84c-26e5a141e9d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:13:42 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11933" + ], + "x-ms-request-id": [ + "de8cea73-dbbb-4cd0-b302-5e213031b339" + ], + "x-ms-correlation-request-id": [ + "de8cea73-dbbb-4cd0-b302-5e213031b339" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061357Z:de8cea73-dbbb-4cd0-b302-5e213031b339" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:13:57 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11932" + ], + "x-ms-request-id": [ + "733aef50-959b-42b5-afff-2f50cb453206" + ], + "x-ms-correlation-request-id": [ + "733aef50-959b-42b5-afff-2f50cb453206" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061412Z:733aef50-959b-42b5-afff-2f50cb453206" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:14:12 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11931" + ], + "x-ms-request-id": [ + "05ba22fe-ecb7-48f8-ac2b-5175fa341c0f" + ], + "x-ms-correlation-request-id": [ + "05ba22fe-ecb7-48f8-ac2b-5175fa341c0f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061427Z:05ba22fe-ecb7-48f8-ac2b-5175fa341c0f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:14:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11930" + ], + "x-ms-request-id": [ + "0bc53e17-299b-403d-a00b-ec57587e91c9" + ], + "x-ms-correlation-request-id": [ + "0bc53e17-299b-403d-a00b-ec57587e91c9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061442Z:0bc53e17-299b-403d-a00b-ec57587e91c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:14:42 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11929" + ], + "x-ms-request-id": [ + "2f4458f7-d1fc-4631-a148-82ab92080f47" + ], + "x-ms-correlation-request-id": [ + "2f4458f7-d1fc-4631-a148-82ab92080f47" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061457Z:2f4458f7-d1fc-4631-a148-82ab92080f47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:14:57 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11928" + ], + "x-ms-request-id": [ + "6842603a-3807-4aa7-aec9-fb2609aaa4de" + ], + "x-ms-correlation-request-id": [ + "6842603a-3807-4aa7-aec9-fb2609aaa4de" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061512Z:6842603a-3807-4aa7-aec9-fb2609aaa4de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:12 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11927" + ], + "x-ms-request-id": [ + "f3db98b8-6dd3-405c-8728-9374a8755985" + ], + "x-ms-correlation-request-id": [ + "f3db98b8-6dd3-405c-8728-9374a8755985" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061513Z:f3db98b8-6dd3-405c-8728-9374a8755985" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:12 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "0009fc4d-e310-4e40-8e63-c48a23e9cdc1" + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.OperationsScenarioTests/TestListOperations.json b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.OperationsScenarioTests/TestListOperations.json new file mode 100644 index 000000000000..c9226ce73f21 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.OperationsScenarioTests/TestListOperations.json @@ -0,0 +1,416 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e44b3c3c-ccb9-4235-9229-915baeb7055a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "e7ca006c-9319-4f0a-9e19-f68c36ff0111" + ], + "x-ms-correlation-request-id": [ + "e7ca006c-9319-4f0a-9e19-f68c36ff0111" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T215333Z:e7ca006c-9319-4f0a-9e19-f68c36ff0111" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 21:53:32 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000\",\r\n \"name\": \"sqlvmcrudtest-5000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/providers/Microsoft.SqlVirtualMachine/operations?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvb3BlcmF0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "350790f4-1c5a-42a0-9731-9adda84ae83a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "af82d31a-1680-4523-a8a9-637eb2800495" + ], + "x-ms-correlation-request-id": [ + "af82d31a-1680-4523-a8a9-637eb2800495" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T215333Z:af82d31a-1680-4523-a8a9-637eb2800495" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 21:53:33 GMT" + ], + "Connection": [ + "close" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "390" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/read\",\r\n \"display\": {\r\n \"resource\": \"SQL VirtualMachine Group\",\r\n \"operation\": \"Get SQL VirtualMachine Group details\",\r\n \"description\": \"Retrives details of SQL VirtualMachine Group\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/write\",\r\n \"display\": {\r\n \"resource\": \"SQL VirtualMachine Group\",\r\n \"operation\": \"Create a new or update existing SQL VirtualMachine Group\",\r\n \"description\": \"Create a new or change properties of existing SQL VirtualMachine Group\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/delete\",\r\n \"display\": {\r\n \"resource\": \"SQL VirtualMachine Group\",\r\n \"operation\": \"Delete existing SQL VirtualMachine Group\",\r\n \"description\": \"Delete existing SQL VirtualMachine Group\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners/read\",\r\n \"display\": {\r\n \"resource\": \"SQL AvailabilityGroup Listener\",\r\n \"operation\": \"Get AvailabilityGroup Listener details\",\r\n \"description\": \"Retrieves details of SQL AvailabilityGroup Listener on a given SQL VirtualMachine Group\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners/write\",\r\n \"display\": {\r\n \"resource\": \"SQL AvailabilityGroup Listener\",\r\n \"operation\": \"Create new or update exising AvailabilityGroup Listener\",\r\n \"description\": \"Create a new or change properties of existing SQL AvailabilityGroup Listener\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners/delete\",\r\n \"display\": {\r\n \"resource\": \"SQL AvailabilityGroup Listener\",\r\n \"operation\": \"Delete existing AvailabilityGroup Listener\",\r\n \"description\": \"Delete existing AvailabilityGroup Listener\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/locations/availabilityGroupListenerOperationResults/read\",\r\n \"display\": {\r\n \"resource\": \"SQL AvailabilityGroup Listener\",\r\n \"operation\": \"Get AvailabilityGroup Listener operation result\",\r\n \"description\": \"Get result of an AvailabilityGroup Listener operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/operations/read\",\r\n \"display\": {\r\n \"resource\": \"Available REST operations\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/locations/sqlVirtualMachineGroupOperationResults/read\",\r\n \"display\": {\r\n \"resource\": \"SQL VirtualMachine Group\",\r\n \"operation\": \"Get SQL VirtualMachine Group operation result\",\r\n \"description\": \"Get result of a SQL VirtualMachine Group operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines/read\",\r\n \"display\": {\r\n \"operation\": \"Get SQL VirtualMachine Instance details\",\r\n \"description\": \"Retrieves details of SQL VirtualMachine\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines/write\",\r\n \"display\": {\r\n \"operation\": \"Create new or update existing SQL VirtualMachine\",\r\n \"description\": \"Create a new or change properties of existing SQL VirtualMachine\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines/delete\",\r\n \"display\": {\r\n \"operation\": \"Delete exisiting SQL VirtualMachine\",\r\n \"description\": \"Delete exisiting SQL VirtualMachine\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.SqlVirtualMachine/locations/sqlVirtualMachineOperationResults/read\",\r\n \"display\": {\r\n \"resource\": \"SQL VirtualMachine\",\r\n \"operation\": \"Get SQL VirtualMachine operation result\",\r\n \"description\": \"Get result of SQL VirtualMachine operation\"\r\n }\r\n }\r\n ]\r\n}\r\n\r\n", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d7bfd5f6-beb9-411c-af09-e0da69c2e99d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "7c700516-0a3b-4a1a-8422-48d86c91f735" + ], + "x-ms-correlation-request-id": [ + "7c700516-0a3b-4a1a-8422-48d86c91f735" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T215333Z:7c700516-0a3b-4a1a-8422-48d86c91f735" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 21:53:33 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "44644d07-f662-47b2-bd35-2d1c78bb57ff" + ], + "x-ms-correlation-request-id": [ + "44644d07-f662-47b2-bd35-2d1c78bb57ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T215348Z:44644d07-f662-47b2-bd35-2d1c78bb57ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 21:53:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "3e49619e-2095-45ca-8a01-f081d706b3e5" + ], + "x-ms-correlation-request-id": [ + "3e49619e-2095-45ca-8a01-f081d706b3e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T215403Z:3e49619e-2095-45ca-8a01-f081d706b3e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 21:54:03 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "ea40dd72-a7ce-466b-8e56-403160704efa" + ], + "x-ms-correlation-request-id": [ + "ea40dd72-a7ce-466b-8e56-403160704efa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T215418Z:ea40dd72-a7ce-466b-8e56-403160704efa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 21:54:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "8cbb3558-58b5-4978-b26e-91eeb7c4d617" + ], + "x-ms-correlation-request-id": [ + "8cbb3558-58b5-4978-b26e-91eeb7c4d617" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T215418Z:8cbb3558-58b5-4978-b26e-91eeb7c4d617" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 21:54:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "0009fc4d-e310-4e40-8e63-c48a23e9cdc1" + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateGetDeleteSqlVirtualMachineGroup.json b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateGetDeleteSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..6f7460a1a415 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateGetDeleteSqlVirtualMachineGroup.json @@ -0,0 +1,1622 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "664ccdb2-7f1a-40c3-a94b-4ca406445b7f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "2b9eb4d4-3777-403e-9254-5aeceec838ea" + ], + "x-ms-correlation-request-id": [ + "2b9eb4d4-3777-403e-9254-5aeceec838ea" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061754Z:2b9eb4d4-3777-403e-9254-5aeceec838ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:17:54 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000\",\r\n \"name\": \"sqlvmcrudtest-5000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8911cf81-704d-4b4d-99e7-e474df4bac1c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/2f32e611-6a19-4e5b-ac1b-dc8e71e6bcde?monitor=true&api-version=2019-04-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "2f32e611-6a19-4e5b-ac1b-dc8e71e6bcde" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "63dba5b3-9d82-4154-a914-634bb66d0658" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061755Z:63dba5b3-9d82-4154-a914-634bb66d0658" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:17:55 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/2f32e611-6a19-4e5b-ac1b-dc8e71e6bcde?monitor=true&api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy8yZjMyZTYxMS02YTE5LTRlNWItYWMxYi1kYzhlNzFlNmJjZGU/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "686fe3c0-93c7-486e-a93f-a72d1bf777fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "e761d740-f2cc-4d21-861f-dff77524e3ea" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061813Z:e761d740-f2cc-4d21-861f-dff77524e3ea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:12 GMT" + ], + "Content-Length": [ + "1206" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:17:55.4375981Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:17:55.4375981Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T06:17:55.3750997Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae480dac-2948-4fcc-b1f8-d3588ac20ace" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a3b582c7-32f2-4057-a0bc-882dafb7b117" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "b3da1577-0f3c-462d-8798-52ef7db398b4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061814Z:b3da1577-0f3c-462d-8798-52ef7db398b4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:13 GMT" + ], + "Content-Length": [ + "1218" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:17:55.4375981Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:17:55.4375981Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T06:17:55.3750997Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e0b48348-4e97-4a6f-ba28-4e7401f848d0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b49c46b1-de08-4578-bb75-dbefc8a98770" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "1c98d832-e88d-4b0a-852e-0106ab13b9bf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061814Z:1c98d832-e88d-4b0a-852e-0106ab13b9bf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:13 GMT" + ], + "Content-Length": [ + "1206" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:17:55.4375981Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:17:55.4375981Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T06:17:55.3750997Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1/listKeys?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "15b51682-dd1c-42b9-8ea9-73bb079e2c15" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "11ce1c30-c7e4-47c6-8fd9-49ef0313779e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d17d9f4f-4eeb-48ef-9da5-2ad925049e8d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061814Z:d17d9f4f-4eeb-48ef-9da5-2ad925049e8d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:13 GMT" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"ln8C6aQGOmitcX4lDugOZABtC//xXp8gEpXNGriKg11lt9dAo9xJcivuTMbfkfBrlh3D+an4fG6hO7jroM064w==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"jiDlxQld2Rbx5cKUkOqmULzvdhv+4WhWtQyapY/I5bN7CagW71eL0duEPlUcridsLKTuju2B8aOJAU9DVrcdmg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"storageAccountPrimaryKey\": \"ln8C6aQGOmitcX4lDugOZABtC//xXp8gEpXNGriKg11lt9dAo9xJcivuTMbfkfBrlh3D+an4fG6hO7jroM064w==\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "62ea7c12-50d3-45c4-b03a-aa7fcd659a7a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "513" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/f23da9f8-d991-4d23-bb4d-be5c271b46c9?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "c60996f4-fca7-421e-909b-0666ee459885" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "e9de952f-c536-41f3-b65f-7ba5bc922d65" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061816Z:e9de952f-c536-41f3-b65f-7ba5bc922d65" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:16 GMT" + ], + "Content-Length": [ + "480" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"ProvisioningDomainful\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/f23da9f8-d991-4d23-bb4d-be5c271b46c9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZWdyb3VwL29wZXJhdGlvblJlc3VsdHMvZjIzZGE5ZjgtZDk5MS00ZDIzLWJiNGQtYmU1YzI3MWI0NmM5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8c8f01d8-b999-4bd1-9d54-0e6156bd057b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "8083b3b4-8d9a-4f47-995c-ca70b4c06cc9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061831Z:8083b3b4-8d9a-4f47-995c-ca70b4c06cc9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:31 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f23da9f8-d991-4d23-bb4d-be5c271b46c9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T06:18:15.67Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e188709f-4e34-4fb4-9dcc-b2f0d51f6828" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "f0b5901b-c5c9-434b-a2f1-41945f51d8b7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061832Z:f0b5901b-c5c9-434b-a2f1-41945f51d8b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:31 GMT" + ], + "Content-Length": [ + "586" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d8c2d8b6-c193-4865-902a-386b1dc515dd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2f10933e-1828-40d3-9ff2-581b8ff1d23e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "6c3080b6-beb9-4ffa-8c7c-2c88e55e2358" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061832Z:6c3080b6-beb9-4ffa-8c7c-2c88e55e2358" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:31 GMT" + ], + "Content-Length": [ + "586" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c1929add-f878-4045-8e6e-6bd8f169175a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/sqlVirtualMachineGroupOperationResults/bcec4337-7767-482a-bd1f-3cba21896c5b?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a5767f7f-a2e4-4d7d-8ae9-e14f53ab25d5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "ee0da518-30c3-45e5-916f-bde615e53b27" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061833Z:ee0da518-30c3-45e5-916f-bde615e53b27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:32 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/sqlVirtualMachineGroupOperationResults/bcec4337-7767-482a-bd1f-3cba21896c5b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9zcWxWaXJ0dWFsTWFjaGluZUdyb3VwT3BlcmF0aW9uUmVzdWx0cy9iY2VjNDMzNy03NzY3LTQ4MmEtYmQxZi0zY2JhMjE4OTZjNWI/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "16545335-6938-48fe-8bf6-c2eb71edd12d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "d62e2d81-13ac-4c16-892d-c7477e707212" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061848Z:d62e2d81-13ac-4c16-892d-c7477e707212" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:48 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/sqlVirtualMachineGroupOperationResults/bcec4337-7767-482a-bd1f-3cba21896c5b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9zcWxWaXJ0dWFsTWFjaGluZUdyb3VwT3BlcmF0aW9uUmVzdWx0cy9iY2VjNDMzNy03NzY3LTQ4MmEtYmQxZi0zY2JhMjE4OTZjNWI/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9e214b3f-5f22-409b-ae1d-db7254e77465" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "ca7b33a4-cab5-4d1c-9fb9-3a681291e323" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061848Z:ca7b33a4-cab5-4d1c-9fb9-3a681291e323" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:48 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ee56737b-9f20-4482-a551-7ee7263f566d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4058c442-fb79-4951-a734-5e23842352e5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "3c9d469e-5028-4826-a098-8d2f33e75b9f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061848Z:3c9d469e-5028-4826-a098-8d2f33e75b9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:48 GMT" + ], + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dc04423d-4bf0-4a42-8a57-a301dc01e5d4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "e3c1d898-1a3d-4b08-a839-53dba1965969" + ], + "x-ms-correlation-request-id": [ + "e3c1d898-1a3d-4b08-a839-53dba1965969" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061848Z:e3c1d898-1a3d-4b08-a839-53dba1965969" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:18:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "db42024d-3dc6-4993-9e27-ccf17e873d9a" + ], + "x-ms-correlation-request-id": [ + "db42024d-3dc6-4993-9e27-ccf17e873d9a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061903Z:db42024d-3dc6-4993-9e27-ccf17e873d9a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:19:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "6f5d7587-2eea-43c5-8cbb-7d6d12e9f5b9" + ], + "x-ms-correlation-request-id": [ + "6f5d7587-2eea-43c5-8cbb-7d6d12e9f5b9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061918Z:6f5d7587-2eea-43c5-8cbb-7d6d12e9f5b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:19:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "9ecaaac3-bd97-4310-bcbd-e2e8af3ad8c2" + ], + "x-ms-correlation-request-id": [ + "9ecaaac3-bd97-4310-bcbd-e2e8af3ad8c2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061933Z:9ecaaac3-bd97-4310-bcbd-e2e8af3ad8c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:19:33 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "a76dbda1-1a60-449f-be44-c4a1716b3e9f" + ], + "x-ms-correlation-request-id": [ + "a76dbda1-1a60-449f-be44-c4a1716b3e9f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061948Z:a76dbda1-1a60-449f-be44-c4a1716b3e9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:19:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "4b09ad6d-cd80-4c37-8099-eb561ff5bc07" + ], + "x-ms-correlation-request-id": [ + "4b09ad6d-cd80-4c37-8099-eb561ff5bc07" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062003Z:4b09ad6d-cd80-4c37-8099-eb561ff5bc07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:20:03 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "5a1759fe-5f0a-4fe0-a40a-9d40367c9f75" + ], + "x-ms-correlation-request-id": [ + "5a1759fe-5f0a-4fe0-a40a-9d40367c9f75" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062018Z:5a1759fe-5f0a-4fe0-a40a-9d40367c9f75" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:20:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "d2dc49f9-5d93-4a2b-a65e-1f2203f633a4" + ], + "x-ms-correlation-request-id": [ + "d2dc49f9-5d93-4a2b-a65e-1f2203f633a4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062033Z:d2dc49f9-5d93-4a2b-a65e-1f2203f633a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:20:33 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "33d6440b-dcfd-43c5-955d-887948072ab4" + ], + "x-ms-correlation-request-id": [ + "33d6440b-dcfd-43c5-955d-887948072ab4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062048Z:33d6440b-dcfd-43c5-955d-887948072ab4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:20:48 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "91445b95-ef0d-4e9c-b8e8-1dcce1709d1d" + ], + "x-ms-correlation-request-id": [ + "91445b95-ef0d-4e9c-b8e8-1dcce1709d1d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062104Z:91445b95-ef0d-4e9c-b8e8-1dcce1709d1d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:21:03 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "575e2336-a2c3-421a-930d-d702946e086b" + ], + "x-ms-correlation-request-id": [ + "575e2336-a2c3-421a-930d-d702946e086b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062119Z:575e2336-a2c3-421a-930d-d702946e086b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:21:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "0a07e2e5-4a9c-4f18-84b9-69707c4c811f" + ], + "x-ms-correlation-request-id": [ + "0a07e2e5-4a9c-4f18-84b9-69707c4c811f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062134Z:0a07e2e5-4a9c-4f18-84b9-69707c4c811f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:21:33 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "bfced3b9-b324-4a2e-8b1d-f2f1601202bb" + ], + "x-ms-correlation-request-id": [ + "bfced3b9-b324-4a2e-8b1d-f2f1601202bb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T062134Z:bfced3b9-b324-4a2e-8b1d-f2f1601202bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:21:33 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "0009fc4d-e310-4e40-8e63-c48a23e9cdc1" + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateUpdateGetSqlVirtualMachineGroup.json b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateUpdateGetSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..768b6fd1896d --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestCreateUpdateGetSqlVirtualMachineGroup.json @@ -0,0 +1,1475 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "86557c02-54c1-45f6-85a8-a58c50c6ca9b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c5586619-51c9-40c8-8c2c-48b9b4d7991a" + ], + "x-ms-correlation-request-id": [ + "c5586619-51c9-40c8-8c2c-48b9b4d7991a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170455Z:c5586619-51c9-40c8-8c2c-48b9b4d7991a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:04:55 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000\",\r\n \"name\": \"sqlvmcrudtest-5000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "31732c2c-1e6a-4ab2-a3d3-73c99198a49e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/7f6f88b5-78ce-465e-aff3-8de44cef4e36?monitor=true&api-version=2019-04-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "7f6f88b5-78ce-465e-aff3-8de44cef4e36" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "0186b882-6ec1-4913-83c9-46395a9f47d0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170457Z:0186b882-6ec1-4913-83c9-46395a9f47d0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:04:56 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/7f6f88b5-78ce-465e-aff3-8de44cef4e36?monitor=true&api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy83ZjZmODhiNS03OGNlLTQ2NWUtYWZmMy04ZGU0NGNlZjRlMzY/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/7f6f88b5-78ce-465e-aff3-8de44cef4e36?monitor=true&api-version=2019-04-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "947a3c09-eba0-43c9-81b6-f3e294f3b0e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "2855d779-f6c0-47bd-ae18-5119f3a2ae05" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170514Z:2855d779-f6c0-47bd-ae18-5119f3a2ae05" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:13 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/7f6f88b5-78ce-465e-aff3-8de44cef4e36?monitor=true&api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy83ZjZmODhiNS03OGNlLTQ2NWUtYWZmMy04ZGU0NGNlZjRlMzY/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/7f6f88b5-78ce-465e-aff3-8de44cef4e36?monitor=true&api-version=2019-04-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "6b6f2041-7486-4e2b-ad02-2991591f4c9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "7af65e04-8cce-4a71-b4fc-4ba3ed06d306" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170517Z:7af65e04-8cce-4a71-b4fc-4ba3ed06d306" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:16 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/7f6f88b5-78ce-465e-aff3-8de44cef4e36?monitor=true&api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy83ZjZmODhiNS03OGNlLTQ2NWUtYWZmMy04ZGU0NGNlZjRlMzY/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "caf77784-d450-43f4-83eb-991496260636" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "2a0b62fe-8c5c-496c-bee7-5a01f42e9d8f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170520Z:2a0b62fe-8c5c-496c-bee7-5a01f42e9d8f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:19 GMT" + ], + "Content-Length": [ + "1206" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-12T17:04:56.7655414Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-12T17:04:56.7655414Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-12T17:04:56.6873925Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7dcef3e5-3de8-4806-b758-352f2b235ff5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c57260b6-fa12-446f-8eb5-bff82368224d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "ad4f252b-1e89-43dc-ace8-e215c1fe3d72" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170521Z:ad4f252b-1e89-43dc-ace8-e215c1fe3d72" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:20 GMT" + ], + "Content-Length": [ + "1218" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-12T17:04:56.7655414Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-12T17:04:56.7655414Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-12T17:04:56.6873925Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3cb02dce-11ec-4629-9a98-0d445613ed7b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b4719601-0b8e-4033-970b-dde14317b7aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "b62feede-15a1-4389-8746-1977c0ead3f7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170521Z:b62feede-15a1-4389-8746-1977c0ead3f7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:20 GMT" + ], + "Content-Length": [ + "1206" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-12T17:04:56.7655414Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-12T17:04:56.7655414Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-12T17:04:56.6873925Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1/listKeys?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3769a06c-c654-48f7-8325-1e9eeb6a6fa4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f8a0ebb7-b5a2-45a1-a89a-63b3343dd1fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "3372c25a-bf27-4318-bdb4-57ca447ceb43" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170521Z:3372c25a-bf27-4318-bdb4-57ca447ceb43" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:21 GMT" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"fmYCfM9xaqEr4VW3/TH56t7xR/Rfjwast6ZK19+fN0P5qyovp+/KvDZ0ev+Y2Rc/RoPocFtYyqbaVvixCmhTaw==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"dsQzzn0ouua6Ud9tccPl1o4zl5d6C8oCfpbqSCGFHpSc/tKes+1rQp2HjcF1c0CGpoSxt00i+sRVOWtZdn5OcQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"storageAccountPrimaryKey\": \"fmYCfM9xaqEr4VW3/TH56t7xR/Rfjwast6ZK19+fN0P5qyovp+/KvDZ0ev+Y2Rc/RoPocFtYyqbaVvixCmhTaw==\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c41bd41d-474d-4e62-adbd-ec8c099a9172" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "513" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/64f46959-07f7-4473-95b3-ea40d0216901?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "92755dc7-9d0d-45be-bb7a-c65e86a6c8c7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "74c7d089-6e82-482c-b62c-da2bd929f59d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170523Z:74c7d089-6e82-482c-b62c-da2bd929f59d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:23 GMT" + ], + "Content-Length": [ + "480" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"ProvisioningDomainful\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/64f46959-07f7-4473-95b3-ea40d0216901?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZWdyb3VwL29wZXJhdGlvblJlc3VsdHMvNjRmNDY5NTktMDdmNy00NDczLTk1YjMtZWE0MGQwMjE2OTAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1c4e48de-f7dd-4bea-a2a0-7937e918921e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "c3bc1241-2cc1-4639-9faa-8ce38e013945" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170538Z:c3bc1241-2cc1-4639-9faa-8ce38e013945" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:38 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"64f46959-07f7-4473-95b3-ea40d0216901\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-12T17:05:22.567Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6d72139d-879e-41ac-a68b-b4eb02dbf5df" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "9fe346f6-66d9-4af7-9aa5-75be12c4fc08" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170538Z:9fe346f6-66d9-4af7-9aa5-75be12c4fc08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:38 GMT" + ], + "Content-Length": [ + "586" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cbda456d-f746-46a3-8464-f2605809a7df" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "f352aebf-9ab0-4cc6-8f59-6d9910c8ca23" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170555Z:f352aebf-9ab0-4cc6-8f59-6d9910c8ca23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:54 GMT" + ], + "Content-Length": [ + "614" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd424e40-93d0-481f-94a1-9490084cd4e5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "788519a8-6fe3-4a42-8752-c45cc98b23ff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "70344648-650b-4044-81db-b8ac57dcf6e7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170555Z:70344648-650b-4044-81db-b8ac57dcf6e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:54 GMT" + ], + "Content-Length": [ + "614" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "598de956-dcdf-4658-9f61-a97d4892e97e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "47" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachinegroup/operationResults/5841e6b6-dc8e-49df-9276-1ad3568a9f97?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "4a34fe5a-e41a-4e30-9110-177d50391265" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "cf74e62b-b74e-4728-a55a-04947ffadd2a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170540Z:cf74e62b-b74e-4728-a55a-04947ffadd2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:39 GMT" + ], + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingDomainful\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/updatesqlvirtualmachinegroup/operationResults/5841e6b6-dc8e-49df-9276-1ad3568a9f97?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy91cGRhdGVzcWx2aXJ0dWFsbWFjaGluZWdyb3VwL29wZXJhdGlvblJlc3VsdHMvNTg0MWU2YjYtZGM4ZS00OWRmLTkyNzYtMWFkMzU2OGE5Zjk3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0f0fd9bf-061f-4da7-b633-ce66b36cef9e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "29e50bb5-e8a1-4af8-9aaa-62d6957ac6b8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170555Z:29e50bb5-e8a1-4af8-9aaa-62d6957ac6b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:54 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"5841e6b6-dc8e-49df-9276-1ad3568a9f97\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-12T17:05:39.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a293c6b7-1122-49eb-a330-1e0ae9abf285" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "7d3959ac-58e5-4caf-b706-5208a14df68a" + ], + "x-ms-correlation-request-id": [ + "7d3959ac-58e5-4caf-b706-5208a14df68a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170556Z:7d3959ac-58e5-4caf-b706-5208a14df68a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:05:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-request-id": [ + "c9366994-2b66-4abd-8124-7830bca0c708" + ], + "x-ms-correlation-request-id": [ + "c9366994-2b66-4abd-8124-7830bca0c708" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170611Z:c9366994-2b66-4abd-8124-7830bca0c708" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:06:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-request-id": [ + "f6adec19-5e57-4099-bb39-b5c7a1c1fff3" + ], + "x-ms-correlation-request-id": [ + "f6adec19-5e57-4099-bb39-b5c7a1c1fff3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170626Z:f6adec19-5e57-4099-bb39-b5c7a1c1fff3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:06:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-request-id": [ + "b390e58f-0ba1-4aab-8538-e26bed098271" + ], + "x-ms-correlation-request-id": [ + "b390e58f-0ba1-4aab-8538-e26bed098271" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170641Z:b390e58f-0ba1-4aab-8538-e26bed098271" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:06:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-request-id": [ + "b260c9da-3e33-42f5-b647-e444630c1f1b" + ], + "x-ms-correlation-request-id": [ + "b260c9da-3e33-42f5-b647-e444630c1f1b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170656Z:b260c9da-3e33-42f5-b647-e444630c1f1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:06:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-request-id": [ + "c2d25f9e-e450-45c6-8409-74921b217e22" + ], + "x-ms-correlation-request-id": [ + "c2d25f9e-e450-45c6-8409-74921b217e22" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170711Z:c2d25f9e-e450-45c6-8409-74921b217e22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:07:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-request-id": [ + "9db57ceb-7c9b-4ee8-b7aa-6e53db0374f5" + ], + "x-ms-correlation-request-id": [ + "9db57ceb-7c9b-4ee8-b7aa-6e53db0374f5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170726Z:9db57ceb-7c9b-4ee8-b7aa-6e53db0374f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:07:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-request-id": [ + "45ceff4d-1b1f-418f-9d8e-63518772fab3" + ], + "x-ms-correlation-request-id": [ + "45ceff4d-1b1f-418f-9d8e-63518772fab3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170741Z:45ceff4d-1b1f-418f-9d8e-63518772fab3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:07:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-request-id": [ + "cb6d3da7-acb8-4fcd-8fda-da8aca53eb11" + ], + "x-ms-correlation-request-id": [ + "cb6d3da7-acb8-4fcd-8fda-da8aca53eb11" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T170741Z:cb6d3da7-acb8-4fcd-8fda-da8aca53eb11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:07:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "0009fc4d-e310-4e40-8e63-c48a23e9cdc1" + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestListSqlVirtualMachineGroup.json b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestListSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..0585d3e0fd28 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachineGroupScenarioTest/TestListSqlVirtualMachineGroup.json @@ -0,0 +1,1219 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f3d6e5d3-c9ab-4e31-bdde-8dd41dc3d7d2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "dd69bd4a-7a6d-4150-b839-de7ea767234f" + ], + "x-ms-correlation-request-id": [ + "dd69bd4a-7a6d-4150-b839-de7ea767234f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061515Z:dd69bd4a-7a6d-4150-b839-de7ea767234f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:14 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000\",\r\n \"name\": \"sqlvmcrudtest-5000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3812588f-b4d8-4e3b-8349-fc59cd0cf0b6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/847f6fcb-3faf-4de6-9244-81fe0bc9207f?monitor=true&api-version=2019-04-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "847f6fcb-3faf-4de6-9244-81fe0bc9207f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "9db534bc-67c3-4cfc-b309-db94eecfb6b9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061516Z:9db534bc-67c3-4cfc-b309-db94eecfb6b9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:16 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Storage/locations/westus/asyncoperations/847f6fcb-3faf-4de6-9244-81fe0bc9207f?monitor=true&api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy84NDdmNmZjYi0zZmFmLTRkZTYtOTI0NC04MWZlMGJjOTIwN2Y/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d9c9c455-a223-49ed-b6a2-f35727cf44b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "1741e74a-b327-4b21-8bd4-30c50892e2c2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061533Z:1741e74a-b327-4b21-8bd4-30c50892e2c2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:32 GMT" + ], + "Content-Length": [ + "1206" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:15:15.6952753Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:15:15.6952753Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T06:15:15.6014851Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2e84c817-44f4-4f24-aa12-65261f729884" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d05ed5a9-11fa-4115-9220-d2acd7cd3205" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "49113fb2-9d47-40ea-b1fb-b46c6a4f8186" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061534Z:49113fb2-9d47-40ea-b1fb-b46c6a4f8186" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:34 GMT" + ], + "Content-Length": [ + "1218" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:15:15.6952753Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:15:15.6952753Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T06:15:15.6014851Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ffc5686e-7d60-4581-94d2-db443dd5b947" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1f01f632-e597-423f-a229-0aebca276c5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "47ee49bd-8c5d-4e2a-b9ce-0c9c4fb1352e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061534Z:47ee49bd-8c5d-4e2a-b9ce-0c9c4fb1352e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:34 GMT" + ], + "Content-Length": [ + "1206" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1\",\r\n \"name\": \"dotnetclienttest1\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:15:15.6952753Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-08-09T06:15:15.6952753Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-08-09T06:15:15.6014851Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://dotnetclienttest1.dfs.core.windows.net/\",\r\n \"web\": \"https://dotnetclienttest1.z22.web.core.windows.net/\",\r\n \"blob\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"queue\": \"https://dotnetclienttest1.queue.core.windows.net/\",\r\n \"table\": \"https://dotnetclienttest1.table.core.windows.net/\",\r\n \"file\": \"https://dotnetclienttest1.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Storage/storageAccounts/dotnetclienttest1/listKeys?api-version=2019-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2RvdG5ldGNsaWVudHRlc3QxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTktMDQtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "da024933-1386-4b6e-88bc-8c1610a7deee" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/12.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "62e0ed64-f017-4fda-b2bb-de443e36ff9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "3636f0a2-12a1-4a61-8612-668d24df154e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061534Z:3636f0a2-12a1-4a61-8612-668d24df154e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:34 GMT" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"dxHjxgZlbJxpDKvXLqfJSFGDnjTKZivVb8LHHNIFwto99bxNSTHBbGk15ArtAALHsRreV06OM/IqZaA7VlSebg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"ByMLOicU+IUqexEKfksvRQD7B0CPj98lIM+74cBX+Nt45i67MBfyRuU7JFnlq3i38F5Y7bzGoS7DBBPE1SMD4g==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\",\r\n \"storageAccountPrimaryKey\": \"dxHjxgZlbJxpDKvXLqfJSFGDnjTKZivVb8LHHNIFwto99bxNSTHBbGk15ArtAALHsRreV06OM/IqZaA7VlSebg==\"\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "11c96cfb-ecf1-498f-a0cf-117d1a3dc9e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "513" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/3fb6532f-cf7b-4725-ba63-9af4fe867d11?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "b8c02c75-30b6-440f-853b-64d720a81050" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d28e16d9-6407-44ec-ac81-f4aad7e0de05" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061536Z:d28e16d9-6407-44ec-ac81-f4aad7e0de05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:36 GMT" + ], + "Content-Length": [ + "480" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"ProvisioningDomainful\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachinegroup/operationResults/3fb6532f-cf7b-4725-ba63-9af4fe867d11?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZWdyb3VwL29wZXJhdGlvblJlc3VsdHMvM2ZiNjUzMmYtY2Y3Yi00NzI1LWJhNjMtOWFmNGZlODY3ZDExP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "31987458-a99c-4c6f-aeba-cec1baa6843b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "337a5ba1-766d-4204-91f1-482cbd6ca341" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061551Z:337a5ba1-766d-4204-91f1-482cbd6ca341" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:51 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"3fb6532f-cf7b-4725-ba63-9af4fe867d11\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T06:15:35.317Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lR3JvdXBzL3Rlc3QtZ3JvdXA/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4fd3bd92-2d45-4b8d-b25c-060f16253ae2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "4993050d-c35e-4c6e-bca1-a3ed023e3866" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061551Z:4993050d-c35e-4c6e-bca1-a3ed023e3866" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:51 GMT" + ], + "Content-Length": [ + "586" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvc3FsVmlydHVhbE1hY2hpbmVHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "140de6e5-c6fa-4e95-a54b-31ae113b68ab" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "33d2746d-9e53-46e5-9c26-f21644541523", + "68039016-e6e2-4db8-b160-90ea374a1350", + "90175ac8-b6e5-4bb4-9da9-87806493e616", + "4caeb3d4-24fb-4481-88a3-5f0234c5993a", + "2e5d5d22-ec45-40c0-aa5d-6b4571daf855", + "24a36dfe-41f7-4ec2-99e3-352494507bfd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "be9011e3-fb8b-4cb0-8ebc-e67ea460212a" + ], + "x-ms-correlation-request-id": [ + "be9011e3-fb8b-4cb0-8ebc-e67ea460212a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061552Z:be9011e3-fb8b-4cb0-8ebc-e67ea460212a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:52 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "52520" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"aduser\",\r\n \"storageAccountUrl\": \"https://cw24.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/agstep2vm2\",\r\n \"name\": \"agstep2vm2\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://shreyastorage.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/shreya_resource_group/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ShreyaCluster\",\r\n \"name\": \"ShreyaCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cw26.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/listenerstep\",\r\n \"name\": \"listenerstep\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok@agdemo.com\",\r\n \"clusterOperatorAccount\": \"minetok@agdemo.com\",\r\n \"sqlServiceAccount\": \"minetok@agdemo.com\",\r\n \"storageAccountUrl\": \"https://autoagcw.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/autoagcluster\",\r\n \"name\": \"autoagcluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@domain.com\",\r\n \"storageAccountUrl\": \"https://wcuswitness.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agtemplate/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/clitest\",\r\n \"name\": \"clitest\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://agcwitness.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/AGStep1\",\r\n \"name\": \"AGStep1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"sqlservice@agdemo.com\",\r\n \"storageAccountUrl\": \"https://clwitness4echpiknhi5uo.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/sqlcluster1\",\r\n \"name\": \"sqlcluster1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"aduser\",\r\n \"storageAccountUrl\": \"https://clwitness4echpiknhi5uo.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/sqltestcluster\",\r\n \"name\": \"sqltestcluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://passcw.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/passcluster\",\r\n \"name\": \"passcluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvm-admin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvm-admin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://newstorage1003.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/Karthik-wcus2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/TestCluster\",\r\n \"name\": \"TestCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://clwitness4echpiknhi5uo.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/sqlcluster\",\r\n \"name\": \"sqlcluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"myvmadmin\",\r\n \"sqlServiceAccount\": \"sqlservice\",\r\n \"storageAccountUrl\": \"https://clwitnessb3paoervxbmna.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/Karthik-wcus/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/clusterinst\",\r\n \"name\": \"clusterinst\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cw22.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/clusterag\",\r\n \"name\": \"clusterag\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"myvmadmin\",\r\n \"sqlServiceAccount\": \"sqlservice\",\r\n \"storageAccountUrl\": \"https://clwitnessb3paoervxbmna.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/clusterdec4\",\r\n \"name\": \"clusterdec4\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"myvmadmin\",\r\n \"sqlServiceAccount\": \"sqlservice\",\r\n \"storageAccountUrl\": \"https://clwitnessb3paoervxbmna.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Testercluster\",\r\n \"name\": \"Testercluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok@agdemo.com\",\r\n \"clusterOperatorAccount\": \"minetok@agdemo.com\",\r\n \"sqlServiceAccount\": \"minetok@agdemo.com\",\r\n \"storageAccountUrl\": \"https://democlustercw.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemorg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/democluster\",\r\n \"name\": \"democluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"testop\",\r\n \"sqlServiceAccount\": \"testservice\",\r\n \"storageAccountUrl\": \"https://storacc.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agtemplate/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/cligrouptest\",\r\n \"name\": \"cligrouptest\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://clwitness4echpiknhi5uo.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/cluster\",\r\n \"name\": \"cluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://clwitness4echpiknhi5uo.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testsqlcluster\",\r\n \"name\": \"testsqlcluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok@agdemo.com\",\r\n \"clusterOperatorAccount\": \"minetok@agdemo.com\",\r\n \"sqlServiceAccount\": \"aduser@agdemo.com\",\r\n \"storageAccountUrl\": \"https://cw23.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/agcluster\",\r\n \"name\": \"agcluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://storage0121.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/Karthik-wcus2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Cluster0727\",\r\n \"name\": \"Cluster0727\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://newstorage1003.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/Karthik-wcus2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/TestCluster1\",\r\n \"name\": \"TestCluster1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cw50.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/TestCluster\",\r\n \"name\": \"TestCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"myvmadmin\",\r\n \"sqlServiceAccount\": \"sqlservice\",\r\n \"storageAccountUrl\": \"https://clwitnessb3paoervxbmna.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Cluster\",\r\n \"name\": \"Cluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2016SP1-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"clsoperator@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://newstore23.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/AGDropCluster\",\r\n \"name\": \"AGDropCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://democw4.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/demoagcluster\",\r\n \"name\": \"demoagcluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"aduser\",\r\n \"storageAccountUrl\": \"https://cw25.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/step3cluster\",\r\n \"name\": \"step3cluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@domain.com\",\r\n \"storageAccountUrl\": \"https://wcuswitness.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AgTemplate/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/wcuscluster\",\r\n \"name\": \"wcuscluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"myvmadmin\",\r\n \"sqlServiceAccount\": \"sqlservice\",\r\n \"storageAccountUrl\": \"https://clwitnessb3paoervxbmna.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Clusterist\",\r\n \"name\": \"Clusterist\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"agdemo.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://clwitness4echpiknhi5uo.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/sqltestcluster1\",\r\n \"name\": \"sqltestcluster1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trstorage2.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manishrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster33\",\r\n \"name\": \"grpCluster33\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://extbugstorage5.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/mysCluster\",\r\n \"name\": \"mysCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trstorage2.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manishrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster32\",\r\n \"name\": \"grpCluster32\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trstorage22.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manishrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster31\",\r\n \"name\": \"grpCluster31\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://storage1231.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Cluster123\",\r\n \"name\": \"Cluster123\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://dotnetclienttest1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/test-group\",\r\n \"name\": \"test-group\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://oldtrucestorage.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster6\",\r\n \"name\": \"grpCluster6\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testerCluster99\",\r\n \"name\": \"testerCluster99\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"AzureVM\",\r\n \"clusterOperatorAccount\": \"AzureVM\",\r\n \"sqlServiceAccount\": \"AzureVM\",\r\n \"storageAccountUrl\": \"https://cwsa3.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/DEmoCluster\",\r\n \"name\": \"DEmoCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2016SP1-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/Alwayson-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/regressCluster\",\r\n \"name\": \"regressCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cwsa6.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ClusterDemo1\",\r\n \"name\": \"ClusterDemo1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/truceCluster\",\r\n \"name\": \"truceCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage44.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testerCluster90\",\r\n \"name\": \"testerCluster90\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cwsa8.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ClusterAGDemo\",\r\n \"name\": \"ClusterAGDemo\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"AzureVM@domain.com\",\r\n \"clusterOperatorAccount\": \"AzureVM@domain.com\",\r\n \"sqlServiceAccount\": \"AzureVM@domain.com\",\r\n \"storageAccountUrl\": \"https://cloudwittnesssa.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/AGCluster\",\r\n \"name\": \"AGCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage01.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Cluster50\",\r\n \"name\": \"Cluster50\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok@sqlvmrp.com\",\r\n \"clusterOperatorAccount\": \"minetok@sqlvmrp.com\",\r\n \"sqlServiceAccount\": \"minetok@sqlvmrp.com\",\r\n \"storageAccountUrl\": \"https://agclusterwitnes.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/AGWFCS\",\r\n \"name\": \"AGWFCS\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cwsa4.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ClusterDemo\",\r\n \"name\": \"ClusterDemo\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://oldtrucestorage.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster7\",\r\n \"name\": \"grpCluster7\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterOperatorAccount\": \"anothertestop@Domain.com\",\r\n \"sqlServiceAccount\": \"testservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://newstorage1001.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/pratraw-test/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testsqlvmgroup\",\r\n \"name\": \"testsqlvmgroup\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://newstorage1001.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-POC/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Clusterian\",\r\n \"name\": \"Clusterian\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cwsa7.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/WFCS\",\r\n \"name\": \"WFCS\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"AzureVM\",\r\n \"clusterOperatorAccount\": \"AzureVM\",\r\n \"sqlServiceAccount\": \"AzureVM\",\r\n \"storageAccountUrl\": \"https://cwsa2.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ClusterD\",\r\n \"name\": \"ClusterD\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://newstorage1001.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-POC/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Cluster112\",\r\n \"name\": \"Cluster112\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://oldtrucestorage.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster5\",\r\n \"name\": \"grpCluster5\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cwsa4.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ClusterAG\",\r\n \"name\": \"ClusterAG\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://exprmntstr.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/exprmntCluster\",\r\n \"name\": \"exprmntCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cwdemoag.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ClusterDemoAG\",\r\n \"name\": \"ClusterDemoAG\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://storage0725.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Dummycluster\",\r\n \"name\": \"Dummycluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://agcw1.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/agcluster1\",\r\n \"name\": \"agcluster1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/finalCluster\",\r\n \"name\": \"finalCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016SP1-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"pocdomain.com\",\r\n \"clusterBootstrapAccount\": \"v-karbho\",\r\n \"clusterOperatorAccount\": \"clsoperator@pocdomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@pocdomain.com\",\r\n \"storageAccountUrl\": \"https://sqlalwaysonpoc.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"mytag\": \"myval\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/sqlvmgrp-poc\",\r\n \"name\": \"sqlvmgrp-poc\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2016SP1-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"clsoperator@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Cluster\",\r\n \"name\": \"Cluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://newstorage1002.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-POC/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ClusterCheck\",\r\n \"name\": \"ClusterCheck\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://trstorage22.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manishrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster20\",\r\n \"name\": \"grpCluster20\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/finCluster\",\r\n \"name\": \"finCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"sqllogin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://maneesh22.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/sqlvmgroup\",\r\n \"name\": \"sqlvmgroup\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://trstorage22.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manishrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/grpCluster10\",\r\n \"name\": \"grpCluster10\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://eben.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/agwfsc\",\r\n \"name\": \"agwfsc\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://cwsa5.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/AGCluster\",\r\n \"name\": \"AGCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"sqlvmrp.com\",\r\n \"clusterBootstrapAccount\": \"minetok\",\r\n \"clusterOperatorAccount\": \"minetok\",\r\n \"sqlServiceAccount\": \"minetok\",\r\n \"storageAccountUrl\": \"https://agdemocw.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/agdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/AGDemoCluster\",\r\n \"name\": \"AGDemoCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2014SP2-WS2012R2\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"clsoperator@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"fileShareWitnessPath\": \"\\\\\\\\VM3\\\\sharedf\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/MyCluster\",\r\n \"name\": \"MyCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/semiCluster\",\r\n \"name\": \"semiCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin@Domain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/quarterCluster\",\r\n \"name\": \"quarterCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016SP1-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"Domain.com\",\r\n \"clusterBootstrapAccount\": \"myvmadmin\",\r\n \"clusterOperatorAccount\": \"clsoperator@Domain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@Domain.com\",\r\n \"storageAccountUrl\": \"https://strdstore.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/Alwayson-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/mergeCluster\",\r\n \"name\": \"mergeCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"sqllogin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage20.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testCluster2\",\r\n \"name\": \"testCluster2\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"sqllogin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage20.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testCluster1\",\r\n \"name\": \"testCluster1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"sqllogin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage20.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testCluster40\",\r\n \"name\": \"testCluster40\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"sqllogin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage20.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testCluster10\",\r\n \"name\": \"testCluster10\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"UpdatingConfiguration\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"myvmadmin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage2.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testerCluster10\",\r\n \"name\": \"testerCluster10\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"sqllogin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage20.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testCluster19\",\r\n \"name\": \"testCluster19\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"wsfcDomainProfile\": {\r\n \"domainFqdn\": \"myDomain.com\",\r\n \"clusterBootstrapAccount\": \"sqllogin@myDomain.com\",\r\n \"clusterOperatorAccount\": \"sqllogin@myDomain.com\",\r\n \"sqlServiceAccount\": \"sqlservice@myDomain.com\",\r\n \"storageAccountUrl\": \"https://trucestorage23.blob.core.windows.net/\"\r\n }\r\n },\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Category\": \"Billing\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/manish-quad-rg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testCluster\",\r\n \"name\": \"testCluster\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f0d22050-0ac5-4cae-8bfe-1c8d16b7ba77" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "31c0b329-6c90-4c67-a3d9-64dfb99a2744" + ], + "x-ms-correlation-request-id": [ + "31c0b329-6c90-4c67-a3d9-64dfb99a2744" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061552Z:31c0b329-6c90-4c67-a3d9-64dfb99a2744" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:15:51 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "0878fb1c-feab-4eca-b504-5a9a98280282" + ], + "x-ms-correlation-request-id": [ + "0878fb1c-feab-4eca-b504-5a9a98280282" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061607Z:0878fb1c-feab-4eca-b504-5a9a98280282" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:16:07 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "34b82879-4e9c-459a-b8b1-6c1630c6eca4" + ], + "x-ms-correlation-request-id": [ + "34b82879-4e9c-459a-b8b1-6c1630c6eca4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061622Z:34b82879-4e9c-459a-b8b1-6c1630c6eca4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:16:22 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "60be9933-ce0b-47df-90ff-95d33999894e" + ], + "x-ms-correlation-request-id": [ + "60be9933-ce0b-47df-90ff-95d33999894e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061637Z:60be9933-ce0b-47df-90ff-95d33999894e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:16:37 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "222d412a-63f5-4050-8070-40f33f682708" + ], + "x-ms-correlation-request-id": [ + "222d412a-63f5-4050-8070-40f33f682708" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061652Z:222d412a-63f5-4050-8070-40f33f682708" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:16:52 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "5262d1b1-5423-4481-8317-0ee0370f5fb2" + ], + "x-ms-correlation-request-id": [ + "5262d1b1-5423-4481-8317-0ee0370f5fb2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061707Z:5262d1b1-5423-4481-8317-0ee0370f5fb2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:17:07 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "68b52889-d6da-4a23-8bc1-0c3a0e9a6732" + ], + "x-ms-correlation-request-id": [ + "68b52889-d6da-4a23-8bc1-0c3a0e9a6732" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061722Z:68b52889-d6da-4a23-8bc1-0c3a0e9a6732" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:17:22 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "8ba33900-7ade-4dbd-964d-114382fd1583" + ], + "x-ms-correlation-request-id": [ + "8ba33900-7ade-4dbd-964d-114382fd1583" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061738Z:8ba33900-7ade-4dbd-964d-114382fd1583" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:17:37 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "1fcf9187-b75b-47ec-a862-649d8e685491" + ], + "x-ms-correlation-request-id": [ + "1fcf9187-b75b-47ec-a862-649d8e685491" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061753Z:1fcf9187-b75b-47ec-a862-649d8e685491" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:17:53 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "e0a26ed0-4787-4155-ae6a-0ef387e16f1a" + ], + "x-ms-correlation-request-id": [ + "e0a26ed0-4787-4155-ae6a-0ef387e16f1a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T061753Z:e0a26ed0-4787-4155-ae6a-0ef387e16f1a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 06:17:53 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "0009fc4d-e310-4e40-8e63-c48a23e9cdc1" + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestCreateGetUpdateDeleteSqlVirtualMachine.json b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestCreateGetUpdateDeleteSqlVirtualMachine.json new file mode 100644 index 000000000000..675838fa0847 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestCreateGetUpdateDeleteSqlVirtualMachine.json @@ -0,0 +1,14142 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c0a1c4f3-86cb-48e7-a527-64b9405caec3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "25720f9e-764d-49aa-ac72-97ee4512ad92" + ], + "x-ms-correlation-request-id": [ + "25720f9e-764d-49aa-ac72-97ee4512ad92" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171017Z:25720f9e-764d-49aa-ac72-97ee4512ad92" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:17 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000\",\r\n \"name\": \"sqlvmcrudtest-5000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2c52acf6-c9fa-4b1e-a16d-bb84a185ca23" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "3605539d-f971-4f1d-9709-2f4d263a7b4e" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/3605539d-f971-4f1d-9709-2f4d263a7b4e?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "e78c1300-acb7-4d7c-a0ea-922a54fd5401" + ], + "x-ms-arm-service-request-id": [ + "d8e4b7c9-bca2-40c3-967e-0b320bbf5c96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171018Z:e78c1300-acb7-4d7c-a0ea-922a54fd5401" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:18 GMT" + ], + "Content-Length": [ + "7458" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"50649fb1-63ec-4f7e-8160-142c66ac9948\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"77d487ca-2ad7-4fc0-9fe8-c64bb814ded5\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/3605539d-f971-4f1d-9709-2f4d263a7b4e?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMzYwNTUzOWQtZjk3MS00ZjFkLTk3MDktMmY0ZDI2M2E3YjRlP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ee987def-0891-4d64-84e1-1334eefb1219" + ], + "x-ms-correlation-request-id": [ + "1f5371f9-88bd-4d69-91ab-bf282bd71aef" + ], + "x-ms-arm-service-request-id": [ + "af7ac0e4-5dfe-4976-aae0-565213bd727d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171022Z:1f5371f9-88bd-4d69-91ab-bf282bd71aef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:21 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\"" + ], + "x-ms-request-id": [ + "c097f84c-0bca-41e2-a042-c1f2d94e7ef3" + ], + "x-ms-correlation-request-id": [ + "df2b341a-92ba-4ca4-aee8-b4cc64f200c2" + ], + "x-ms-arm-service-request-id": [ + "91adee9f-0c3f-4bab-9373-1105a8370398" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171022Z:df2b341a-92ba-4ca4-aee8-b4cc64f200c2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:21 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"50649fb1-63ec-4f7e-8160-142c66ac9948\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b896d4cc-70f6-4614-a6b4-f2b9970abc8b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\"" + ], + "x-ms-request-id": [ + "34f265bb-748d-40b9-bef5-be3d56f1aca5" + ], + "x-ms-correlation-request-id": [ + "90d59c2f-68b8-4e4f-89c3-c02f4245324a" + ], + "x-ms-arm-service-request-id": [ + "1abe4076-cc83-4f14-89b0-7407068f0cdc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171022Z:90d59c2f-68b8-4e4f-89c3-c02f4245324a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:21 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"50649fb1-63ec-4f7e-8160-142c66ac9948\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"50649fb1-63ec-4f7e-8160-142c66ac9948\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"7a1a3a95-f21d-4355-aaa8-dc172a5f203b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"location\": \"westus\"\r\n }\r\n },\r\n \"name\": \"test-1\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3e375db7-bbe0-4e3b-9563-1b0b3e8d96a5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "8740" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "724de341-5b8b-435e-9df3-530511a9614b" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/724de341-5b8b-435e-9df3-530511a9614b?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "f41b09f3-34b4-4ccd-a5c1-b3f80e8008b6" + ], + "x-ms-arm-service-request-id": [ + "03e9e6c2-009d-4d90-b8a5-59c89f167dfc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171023Z:f41b09f3-34b4-4ccd-a5c1-b3f80e8008b6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:22 GMT" + ], + "Content-Length": [ + "1355" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"1cb8d428-0b64-4e4d-8602-df5f304bab9b\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"c2c77e0e-e5fa-4e31-855a-73ba31d9d37b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\",\r\n \"etag\": \"W/\\\"1cb8d428-0b64-4e4d-8602-df5f304bab9b\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/724de341-5b8b-435e-9df3-530511a9614b?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNzI0ZGUzNDEtNWI4Yi00MzVlLTlkZjMtNTMwNTExYTk2MTRiP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e0834efe-4b10-4ae6-822d-da2b61797714" + ], + "x-ms-correlation-request-id": [ + "49f2f860-36fa-402b-abaf-8a535f869d7b" + ], + "x-ms-arm-service-request-id": [ + "56ca7f57-4ff1-472e-bb39-fe89647be0a5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171026Z:49f2f860-36fa-402b-abaf-8a535f869d7b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:25 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"f2afd99f-f264-4a99-bfc5-56492d143b2b\"" + ], + "x-ms-request-id": [ + "f12007bf-31d3-46c2-a62c-2b9b0e239385" + ], + "x-ms-correlation-request-id": [ + "efae2b2b-2174-4796-b969-6f78d300d74a" + ], + "x-ms-arm-service-request-id": [ + "50e7111f-9ff6-46ab-b865-1f296ec256f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171026Z:efae2b2b-2174-4796-b969-6f78d300d74a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:25 GMT" + ], + "Content-Length": [ + "1357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"f2afd99f-f264-4a99-bfc5-56492d143b2b\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"c2c77e0e-e5fa-4e31-855a-73ba31d9d37b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\",\r\n \"etag\": \"W/\\\"f2afd99f-f264-4a99-bfc5-56492d143b2b\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1bb3a63c-9ff8-4e7f-a247-3cbfe7e7a8e0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"f2afd99f-f264-4a99-bfc5-56492d143b2b\"" + ], + "x-ms-request-id": [ + "9f655dda-f04a-4cad-a9dd-03b8cc892298" + ], + "x-ms-correlation-request-id": [ + "ae123713-3b7b-41ba-9d39-dfb219ef7e2e" + ], + "x-ms-arm-service-request-id": [ + "600338af-01cc-4468-a62d-22ad82f26bb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171026Z:ae123713-3b7b-41ba-9d39-dfb219ef7e2e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:25 GMT" + ], + "Content-Length": [ + "1357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"f2afd99f-f264-4a99-bfc5-56492d143b2b\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"c2c77e0e-e5fa-4e31-855a-73ba31d9d37b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\",\r\n \"etag\": \"W/\\\"f2afd99f-f264-4a99-bfc5-56492d143b2b\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC00P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ab623fb-f8f7-4d95-874e-080ee567037a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "200" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "679d18fa-99c0-46fe-9eab-266537bd27f5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/679d18fa-99c0-46fe-9eab-266537bd27f5?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "761469b7-f500-4f0b-9bc0-831ad738a116" + ], + "x-ms-arm-service-request-id": [ + "63e49fa6-ff7b-48b1-bc71-15c7d3a4bcd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171027Z:761469b7-f500-4f0b-9bc0-831ad738a116" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:26 GMT" + ], + "Content-Length": [ + "783" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-4\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"etag\": \"W/\\\"2765a1a1-b755-404a-8dca-55caf4b8ce39\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"e8edbb75-3ce4-4a57-a697-321ea4550382\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/679d18fa-99c0-46fe-9eab-266537bd27f5?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjc5ZDE4ZmEtOTljMC00NmZlLTllYWItMjY2NTM3YmQyN2Y1P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c8583376-835a-4f2a-ad9b-8c56ad2dcc52" + ], + "x-ms-correlation-request-id": [ + "1074c111-7127-4428-a4d9-df61a48629c0" + ], + "x-ms-arm-service-request-id": [ + "7784aa6d-4047-4dfc-91c6-289a1ef72fe4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171028Z:1074c111-7127-4428-a4d9-df61a48629c0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:27 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC00P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"493e3114-538c-48ac-bc86-cccb6648e212\"" + ], + "x-ms-request-id": [ + "1d6cd709-83eb-4e06-b610-78d43d7aa461" + ], + "x-ms-correlation-request-id": [ + "3fc3ae14-4cc2-4021-90a5-a6a01036a405" + ], + "x-ms-arm-service-request-id": [ + "c5c8afb1-e180-46ec-a9c8-0410fd07a92a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171028Z:3fc3ae14-4cc2-4021-90a5-a6a01036a405" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:27 GMT" + ], + "Content-Length": [ + "784" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-4\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"etag\": \"W/\\\"493e3114-538c-48ac-bc86-cccb6648e212\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"e8edbb75-3ce4-4a57-a697-321ea4550382\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC00P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ad096ad6-8247-44ef-a667-06379fac16a4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"493e3114-538c-48ac-bc86-cccb6648e212\"" + ], + "x-ms-request-id": [ + "e297f1a4-6f16-43d3-9064-f7a095e22c6e" + ], + "x-ms-correlation-request-id": [ + "464e0b97-85cb-4036-a93e-b9bd3ff7503c" + ], + "x-ms-arm-service-request-id": [ + "4e5f44f6-dac6-4b22-aedb-8530d1985239" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171028Z:464e0b97-85cb-4036-a93e-b9bd3ff7503c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:28 GMT" + ], + "Content-Length": [ + "784" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-4\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"etag\": \"W/\\\"493e3114-538c-48ac-bc86-cccb6648e212\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"e8edbb75-3ce4-4a57-a697-321ea4550382\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf8967ff-6e14-4755-897e-2b9404baaa16" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "e43adc94-e480-49d4-94c1-45487eb2b721" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/e43adc94-e480-49d4-94c1-45487eb2b721?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "9dcfd003-f60c-46cf-907f-6abb740df712" + ], + "x-ms-arm-service-request-id": [ + "5dac6ac3-d0f4-4302-9eb4-e8b9f1d98b2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171029Z:9dcfd003-f60c-46cf-907f-6abb740df712" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:28 GMT" + ], + "Content-Length": [ + "7458" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-6\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"6cdfa712-b033-4aaf-8592-d706503420dc\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"4f6dda07-b559-4aef-baad-dd5334131245\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/e43adc94-e480-49d4-94c1-45487eb2b721?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZTQzYWRjOTQtZTQ4MC00OWQ0LTk0YzEtNDU0ODdlYjJiNzIxP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a147c156-f0a4-41f3-8e17-163a67b972ed" + ], + "x-ms-correlation-request-id": [ + "ba8d3742-ef75-4c00-82dc-ac6e210035d8" + ], + "x-ms-arm-service-request-id": [ + "324eca4f-89fa-403e-bcc5-39b5de9d3d87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171032Z:ba8d3742-ef75-4c00-82dc-ac6e210035d8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:32 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"873312d4-acf3-4cce-9011-ffc841e13bf6\"" + ], + "x-ms-request-id": [ + "5a65fd1e-0ee2-4e57-b511-94578e44cc3f" + ], + "x-ms-correlation-request-id": [ + "b0d60e4f-a75e-4512-a090-da4a963540c5" + ], + "x-ms-arm-service-request-id": [ + "f7b96a96-f4af-474c-afb3-82b505589d76" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171032Z:b0d60e4f-a75e-4512-a090-da4a963540c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:32 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-6\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"6cdfa712-b033-4aaf-8592-d706503420dc\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "df7a6060-7a38-4293-957e-b555c3182982" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"873312d4-acf3-4cce-9011-ffc841e13bf6\"" + ], + "x-ms-request-id": [ + "15cb7332-09f1-48a7-adde-883742336235" + ], + "x-ms-correlation-request-id": [ + "8e833385-08c6-4a08-bcce-313d7e97b1fb" + ], + "x-ms-arm-service-request-id": [ + "1ef91ba8-7337-42a1-8a59-7a3a31c4dd1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171032Z:8e833385-08c6-4a08-bcce-313d7e97b1fb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:32 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-6\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"6cdfa712-b033-4aaf-8592-d706503420dc\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"6cdfa712-b033-4aaf-8592-d706503420dc\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"873312d4-acf3-4cce-9011-ffc841e13bf6\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"location\": \"westus\"\r\n },\r\n \"ipConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-1\",\r\n \"etag\": \"W/\\\"f2afd99f-f264-4a99-bfc5-56492d143b2b\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"publicIPAddress\": {\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"idleTimeoutInMinutes\": 4,\r\n \"resourceGuid\": \"e8edbb75-3ce4-4a57-a697-321ea4550382\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"493e3114-538c-48ac-bc86-cccb6648e212\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n }\r\n },\r\n \"name\": \"test-7\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a0c0b74-e346-4210-ab67-695d4a253cfc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "9327" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1515465b-bc84-4f9b-8424-45b2f27545e0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/1515465b-bc84-4f9b-8424-45b2f27545e0?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "de3eec00-e85d-49ad-8c9b-354e5e1bad22" + ], + "x-ms-arm-service-request-id": [ + "4fef4bd0-c056-4dd7-9faa-d8d070f88f05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171033Z:de3eec00-e85d-49ad-8c9b-354e5e1bad22" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:33 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"51c7f758-3bbf-4023-b7d4-4f8870ce7843\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"bz5mpqx02uyu3bk0oo3ddwotpd.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\"" + ], + "x-ms-request-id": [ + "7786d340-55dd-43e4-832c-365a87f2df52" + ], + "x-ms-correlation-request-id": [ + "b54e566f-ed50-4dd5-ae35-69e5fdc8d41e" + ], + "x-ms-arm-service-request-id": [ + "f1aa1d51-4d24-4e30-b171-adc81fcd2a81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171033Z:b54e566f-ed50-4dd5-ae35-69e5fdc8d41e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:33 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"51c7f758-3bbf-4023-b7d4-4f8870ce7843\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"bz5mpqx02uyu3bk0oo3ddwotpd.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "af163699-a468-471c-ad36-f3dbf983c6f7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\"" + ], + "x-ms-request-id": [ + "ccb6231a-1844-4b30-b113-0f5a9872aa90" + ], + "x-ms-correlation-request-id": [ + "a558204b-63a0-41a5-ab5f-508f81ecf5ec" + ], + "x-ms-arm-service-request-id": [ + "ff4b9006-d65a-4f13-b992-4fe373ed6cbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171033Z:a558204b-63a0-41a5-ab5f-508f81ecf5ec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:33 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"51c7f758-3bbf-4023-b7d4-4f8870ce7843\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"3ca6b2db-bfd3-4dd2-b5e4-65f71c29fb6e\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"bz5mpqx02uyu3bk0oo3ddwotpd.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/SQL2017-WS2016/skus/Enterprise/versions?$top=1&api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL3B1Ymxpc2hlcnMvTWljcm9zb2Z0U1FMU2VydmVyL2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMvU1FMMjAxNy1XUzIwMTYvc2t1cy9FbnRlcnByaXNlL3ZlcnNpb25zPyR0b3A9MSZhcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a3810fe6-d4da-472e-be50-932fd6b6aa78" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "cf097b76-b9c6-4870-8191-a8cdd13d756c_132037460644438088" + ], + "x-ms-request-id": [ + "4ea3dadc-438e-470d-8663-1c2ff3d0498c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "cfc3f887-fc6f-4cd9-adb6-9dfd34abf6a7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171033Z:cfc3f887-fc6f-4cd9-adb6-9dfd34abf6a7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:33 GMT" + ], + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"14.1.190220\",\r\n \"id\": \"/Subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftSQLServer/ArtifactTypes/VMImage/Offers/SQL2017-WS2016/Skus/Enterprise/Versions/14.1.190220\"\r\n }\r\n]", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/SQL2017-WS2016/skus/Enterprise/versions?$top=1&api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL3B1Ymxpc2hlcnMvTWljcm9zb2Z0U1FMU2VydmVyL2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMvU1FMMjAxNy1XUzIwMTYvc2t1cy9FbnRlcnByaXNlL3ZlcnNpb25zPyR0b3A9MSZhcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16491f67-ff6d-4784-82a2-a760ea8e5b02" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "cf097b76-b9c6-4870-8191-a8cdd13d756c_132037460644438088" + ], + "x-ms-request-id": [ + "723d4901-892b-42e0-a035-4f66f77424b4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "6236d9aa-6d69-411b-a9b3-7d26db7565b3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172320Z:6236d9aa-6d69-411b-a9b3-7d26db7565b3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:20 GMT" + ], + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"14.1.190220\",\r\n \"id\": \"/Subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftSQLServer/ArtifactTypes/VMImage/Offers/SQL2017-WS2016/Skus/Enterprise/Versions/14.1.190220\"\r\n }\r\n]", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/SQL2017-WS2016/skus/Enterprise/versions?$top=1&api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL3B1Ymxpc2hlcnMvTWljcm9zb2Z0U1FMU2VydmVyL2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMvU1FMMjAxNy1XUzIwMTYvc2t1cy9FbnRlcnByaXNlL3ZlcnNpb25zPyR0b3A9MSZhcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "edb5d8e5-e5f3-473f-89b3-e66e582a50ba" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "cf097b76-b9c6-4870-8191-a8cdd13d756c_132037460644438088" + ], + "x-ms-request-id": [ + "f539e57f-58c1-4c17-a00e-0259660b548b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "a7f559f3-fe31-4011-869e-a61d0ce197fc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173336Z:a7f559f3-fe31-4011-869e-a61d0ce197fc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:35 GMT" + ], + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"14.1.190220\",\r\n \"id\": \"/Subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftSQLServer/ArtifactTypes/VMImage/Offers/SQL2017-WS2016/Skus/Enterprise/Versions/14.1.190220\"\r\n }\r\n]", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOT9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"FromImage\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"Empty\",\r\n \"diskSizeGB\": 30,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"adminPassword\": \"sql@zure123!\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "43ff45ee-0dbf-453c-bf18-05770b8941d8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1332" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f7d0a0dd-a836-4345-8bf3-cac667837365?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1199" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "f7d0a0dd-a836-4345-8bf3-cac667837365" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "7ca75578-496a-441a-807a-3f339cff15eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171034Z:7ca75578-496a-441a-807a-3f339cff15eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:34 GMT" + ], + "Content-Length": [ + "1638" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-9\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"31e8b344-4916-4a46-bccf-48d535bf1be4\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f7d0a0dd-a836-4345-8bf3-cac667837365?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZjdkMGEwZGQtYTgzNi00MzQ1LThiZjMtY2FjNjY3ODM3MzY1P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "70" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29994" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "8b8c143c-6317-44c1-9aa2-987beca6498a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "b0c1e31c-9ebe-4be0-be2c-26086679d703" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171045Z:b0c1e31c-9ebe-4be0-be2c-26086679d703" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:10:44 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:10:34.4079482-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"f7d0a0dd-a836-4345-8bf3-cac667837365\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f7d0a0dd-a836-4345-8bf3-cac667837365?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZjdkMGEwZGQtYTgzNi00MzQ1LThiZjMtY2FjNjY3ODM3MzY1P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29993" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "72304d04-aec6-467a-ab88-c1253f0a550c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "f2a73397-88f1-4177-bae3-4045c8a853ec" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171155Z:f2a73397-88f1-4177-bae3-4045c8a853ec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:11:54 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:10:34.4079482-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"f7d0a0dd-a836-4345-8bf3-cac667837365\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f7d0a0dd-a836-4345-8bf3-cac667837365?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZjdkMGEwZGQtYTgzNi00MzQ1LThiZjMtY2FjNjY3ODM3MzY1P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29990" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "08868734-e6a6-42c2-b90e-ecf64ddbc3e1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "b532eccd-ec32-4377-aae4-dcb1190b1d7d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171305Z:b532eccd-ec32-4377-aae4-dcb1190b1d7d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:13:04 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:10:34.4079482-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"f7d0a0dd-a836-4345-8bf3-cac667837365\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/f7d0a0dd-a836-4345-8bf3-cac667837365?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZjdkMGEwZGQtYTgzNi00MzQ1LThiZjMtY2FjNjY3ODM3MzY1P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29997" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "648d64fc-419b-4ae3-a21c-4ebc71df1377" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "e12d8687-de0d-45f7-a7ec-09f09804c396" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171415Z:e12d8687-de0d-45f7-a7ec-09f09804c396" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:14:15 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:10:34.4079482-07:00\",\r\n \"endTime\": \"2019-08-12T10:14:01.5746166-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"f7d0a0dd-a836-4345-8bf3-cac667837365\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOT9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31998" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "c34e7057-8c89-4515-82e5-58991ed22db9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "d9594104-e78f-4c7d-8485-65eea1b249cf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171415Z:d9594104-e78f-4c7d-8485-65eea1b249cf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:14:15 GMT" + ], + "Content-Length": [ + "2181" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-9\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"31e8b344-4916-4a46-bccf-48d535bf1be4\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"test-9_OsDisk_1_8152912e1f3c438480563646ed054392\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-9_OsDisk_1_8152912e1f3c438480563646ed054392\"\r\n },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"test-9_disk2_9fd14202d26942628a98c9fd235b5317\",\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-9_disk2_9fd14202d26942628a98c9fd235b5317\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"autoPatchingSettings\": {\r\n \"enable\": false\r\n },\r\n \"serverConfigurationsManagementSettings\": {\r\n \"sqlConnectivityUpdateSettings\": {\r\n \"connectivityType\": \"Private\",\r\n \"port\": 1433,\r\n \"sqlAuthUpdateUserName\": \"sqllogin\",\r\n \"sqlAuthUpdatePassword\": \"sql@zure123!\"\r\n },\r\n \"sqlWorkloadTypeUpdateSettings\": {\r\n \"sqlWorkloadType\": \"OLTP\"\r\n },\r\n \"sqlStorageUpdateSettings\": {\r\n \"diskCount\": 1,\r\n \"startingDeviceId\": 2,\r\n \"diskConfigurationType\": \"NEW\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "593cd47b-0a5c-4be5-84af-f1418d78dfc4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "925" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "4f164d63-0a7a-47a0-889b-a7e2548c6247" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "b5d47267-538d-4c30-b461-be8ff7ea74db" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171417Z:b5d47267-538d-4c30-b461-be8ff7ea74db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:14:17 GMT" + ], + "Content-Length": [ + "543" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9\",\r\n \"name\": \"test-9\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "85c88695-6c4c-43b8-86f8-388f17da4bf5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "32fa878c-ea17-437e-ba7e-897c1828fc31" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171432Z:32fa878c-ea17-437e-ba7e-897c1828fc31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:14:32 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b2bf032c-2fb5-4e96-90ba-2e231edac93a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "0c7ffb0e-d3e8-43ec-b8fc-2e25b7ff8119" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171447Z:0c7ffb0e-d3e8-43ec-b8fc-2e25b7ff8119" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:14:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "682a3280-6133-4507-b92a-fe45b8e03bed" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "fd25bf67-dbb3-4684-9099-82ca43fa74c7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171502Z:fd25bf67-dbb3-4684-9099-82ca43fa74c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:15:01 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b4ec9cae-587e-4f3f-9ebc-39763336aa44" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "83900ef4-6941-47cc-9399-ebd928915be9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171517Z:83900ef4-6941-47cc-9399-ebd928915be9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:15:16 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "27d8f168-65cd-491e-91a2-1e11ace80b1a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "d2c10f9b-c87d-4995-bc31-62bbc6efb65c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171532Z:d2c10f9b-c87d-4995-bc31-62bbc6efb65c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:15:31 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "27d298a8-8d13-4aa5-b454-74013f2a5c0c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "313dc487-91f3-41e5-95f5-0533cbe18628" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171547Z:313dc487-91f3-41e5-95f5-0533cbe18628" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:15:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d9ad4268-f739-440f-ab81-47fe9ac80bc0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "35fa8d7e-9864-42ed-ac1a-479d6b089ccb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171602Z:35fa8d7e-9864-42ed-ac1a-479d6b089ccb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:16:02 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e108023a-555d-4874-87bc-58e99291b3ec" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "b7bc52ce-867f-46d8-bf88-47cc1459a70c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171617Z:b7bc52ce-867f-46d8-bf88-47cc1459a70c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:16:17 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "dbaf2144-26ca-4fe3-a4d1-17d3a6cb7750" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "776dbbf3-caf4-4b6c-9074-4c85e37f116c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171632Z:776dbbf3-caf4-4b6c-9074-4c85e37f116c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:16:31 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e62f8481-c98d-495b-86d2-43a6b072678f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "bcbdb636-68ef-45a8-9792-e2a8639845f0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171647Z:bcbdb636-68ef-45a8-9792-e2a8639845f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:16:46 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4ff87eff-c29a-4196-8339-746b0fb9ae61" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "4df311cd-cd8b-4d80-8cd1-c0a9ff53e762" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171702Z:4df311cd-cd8b-4d80-8cd1-c0a9ff53e762" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:17:02 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "90dc23e6-7605-4f58-9bcc-60462659e07e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "45c1c8f5-d8e5-4bb6-8ddc-cd7ad84e4666" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171717Z:45c1c8f5-d8e5-4bb6-8ddc-cd7ad84e4666" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:17:17 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7c8a78fb-0297-44e6-a8b0-135ff7040412" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "c33fdf2e-69b4-4ab3-a059-4fc540aee188" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171732Z:c33fdf2e-69b4-4ab3-a059-4fc540aee188" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:17:32 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0e21c272-22ec-4ef3-9b4f-108180d00735" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "4a695d5a-0300-4ff8-a158-e4d0132922b1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171747Z:4a695d5a-0300-4ff8-a158-e4d0132922b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:17:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8b9bdab6-cb6e-4517-86de-32de66c473c6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "9a1f6712-443e-46dd-b7d6-e7998df14cf0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171803Z:9a1f6712-443e-46dd-b7d6-e7998df14cf0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:18:02 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "87722b22-6d3a-4195-a9fd-87f00777c1f9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "0a5dc804-a7e0-4369-8573-4a484da0b683" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171818Z:0a5dc804-a7e0-4369-8573-4a484da0b683" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:18:17 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5ca453ee-ac09-499a-b2bb-d5d2a6eee46b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "dd7a8e5e-52c2-4194-9ea2-e982e62e64d2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171833Z:dd7a8e5e-52c2-4194-9ea2-e982e62e64d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:18:32 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "bd7971f5-bb6c-4c5a-af5c-15d436094790" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "568c7d7a-f8e9-49e6-a44f-5c9df54402e8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171848Z:568c7d7a-f8e9-49e6-a44f-5c9df54402e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:18:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "15f0bf59-a720-414f-b9e8-873afaa73587" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "c2461d96-495f-46c9-ba13-23709640258e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171903Z:c2461d96-495f-46c9-ba13-23709640258e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:19:02 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "add09568-1774-416f-9588-15455efbdf3c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "cab6f06c-5b3a-44a2-a50d-06c6997f20be" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171918Z:cab6f06c-5b3a-44a2-a50d-06c6997f20be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:19:17 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "02c878c0-e277-489a-a214-a08a05b3bbc1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "e2301010-c417-4e8a-857d-18a403e492a1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171933Z:e2301010-c417-4e8a-857d-18a403e492a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:19:32 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b074451d-35ff-44ed-8140-51c06b4473b4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "fb4bdf74-a0b5-451f-962d-31eb3e6e8e2b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T171948Z:fb4bdf74-a0b5-451f-962d-31eb3e6e8e2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:19:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9247bf4b-7f77-47a5-9593-8da3a09d159d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "34238f3c-a422-4be5-a615-81691a11e7ee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172003Z:34238f3c-a422-4be5-a615-81691a11e7ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:20:03 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "db08a21f-627c-4343-90c7-285f491e94ec" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "16f8e7ca-29f1-4bb4-b74f-471dae310e34" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172018Z:16f8e7ca-29f1-4bb4-b74f-471dae310e34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:20:18 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "3a5f62e1-d53f-4d99-a6c6-188f2c85aa5b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "d2fe0c99-257e-4584-8009-1d1500ac4a2d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172033Z:d2fe0c99-257e-4584-8009-1d1500ac4a2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:20:32 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a8affae3-a505-4ffa-8973-7fc731e22ce7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "0533bc0f-ae60-411c-9242-0f515c546adb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172048Z:0533bc0f-ae60-411c-9242-0f515c546adb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:20:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ef69564e-d180-41f9-8d28-f60e46f45952" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "c2bec42e-4e2d-493d-9a7f-cbd887ff76db" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172103Z:c2bec42e-4e2d-493d-9a7f-cbd887ff76db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:21:03 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "763a8d82-a000-4fb3-b001-0cd914693633" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "3c49429e-5c00-4fc7-9705-5df9038ae244" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172118Z:3c49429e-5c00-4fc7-9705-5df9038ae244" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:21:18 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2285e76e-5b6f-4196-9770-d9eaff72da13" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "7d91b066-0fc4-4aed-a5a6-1c9f9f644afa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172133Z:7d91b066-0fc4-4aed-a5a6-1c9f9f644afa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:21:33 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "51db25b7-519e-43eb-bad2-32d6595c2fba" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "8cf67188-5349-4cca-8110-4ad84e700244" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172148Z:8cf67188-5349-4cca-8110-4ad84e700244" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:21:48 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7eb1ffc5-85d3-4f90-b545-57d355b9237b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "527b2dfb-f233-4bf2-99a1-83a82e69edcc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172203Z:527b2dfb-f233-4bf2-99a1-83a82e69edcc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:22:03 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "6cbfcc89-611d-4486-8f4c-1a9e013ce8c9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "dbc272af-7c90-4822-9afc-27733104b329" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172218Z:dbc272af-7c90-4822-9afc-27733104b329" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:22:18 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "634bfb6e-c52f-4406-8d52-2cbce50fe0b5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "aeb68a37-43af-4bf4-8c93-69410b206b45" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172233Z:aeb68a37-43af-4bf4-8c93-69410b206b45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:22:33 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9831517a-222d-4f74-b209-f80e4df940e8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "ad8a0864-b4b5-4da5-93e6-147adc246160" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172248Z:ad8a0864-b4b5-4da5-93e6-147adc246160" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:22:48 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/9d0f442d-66b0-458c-8a23-ced625fc7bdf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzlkMGY0NDJkLTY2YjAtNDU4Yy04YTIzLWNlZDYyNWZjN2JkZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d0096700-1fcc-451c-8d45-905ff59688b3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "0e3ee2b2-94e8-45ec-9e15-1e4dd6d105aa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172303Z:0e3ee2b2-94e8-45ec-9e15-1e4dd6d105aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:03 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9d0f442d-66b0-458c-8a23-ced625fc7bdf\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-12T17:14:16.133Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c7cd8a69-5357-40db-b1b0-f605d5169184" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-correlation-request-id": [ + "a37844bf-47f9-42e8-b363-36ee1be2fa61" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172304Z:a37844bf-47f9-42e8-b363-36ee1be2fa61" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:03 GMT" + ], + "Content-Length": [ + "576" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9\",\r\n \"name\": \"test-9\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b5a1c7b-f115-48de-84f0-93997b3bd884" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e80a2503-b8a3-4f48-9978-52175f074121" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "d79a1c75-c55e-4be5-9afc-9f9ed14efb26" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174636Z:d79a1c75-c55e-4be5-9afc-9f9ed14efb26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:35 GMT" + ], + "Content-Length": [ + "576" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9\",\r\n \"name\": \"test-9\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "183ea295-47a3-4486-9d1b-10a75485f680" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "058210f9-4bac-490c-b0e3-7e0f70895ea2" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/058210f9-4bac-490c-b0e3-7e0f70895ea2?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "a7353bb1-3c82-423b-88e8-8eb038a6549b" + ], + "x-ms-arm-service-request-id": [ + "a6a315cf-114a-41a6-8581-7739d6c120e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172305Z:a7353bb1-3c82-423b-88e8-8eb038a6549b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:04 GMT" + ], + "Content-Length": [ + "7467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-11\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"357cd646-1052-418e-a899-692a1aa10062\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"f9f8eb6f-c9e5-4af4-b872-26d7c2c1ada8\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/058210f9-4bac-490c-b0e3-7e0f70895ea2?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMDU4MjEwZjktNGJhYy00OTBjLWIwZTMtN2UwZjcwODk1ZWEyP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a5bb16ed-138b-4ff5-a159-e7b05b266dc8" + ], + "x-ms-correlation-request-id": [ + "e9886b86-a1b8-4095-8394-cba72a314285" + ], + "x-ms-arm-service-request-id": [ + "38f1ec42-c55a-42f2-be4f-4d965530b7b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172308Z:e9886b86-a1b8-4095-8394-cba72a314285" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:08 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\"" + ], + "x-ms-request-id": [ + "5781424c-f353-4e99-87cd-4d6058533cb2" + ], + "x-ms-correlation-request-id": [ + "14fb9cbc-60a2-4c60-b4a7-027e07d1648b" + ], + "x-ms-arm-service-request-id": [ + "b61c0f7f-0247-41ce-ad7c-120353a01dd3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172308Z:14fb9cbc-60a2-4c60-b4a7-027e07d1648b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:08 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-11\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"357cd646-1052-418e-a899-692a1aa10062\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c9819ba-fde4-4d68-b7a1-822ff25dcfad" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\"" + ], + "x-ms-request-id": [ + "059cf59c-edca-48b3-a40e-20b62dfe735e" + ], + "x-ms-correlation-request-id": [ + "93ac9852-ac80-4753-87fe-215e1af16773" + ], + "x-ms-arm-service-request-id": [ + "e11affe7-2e41-4704-9b5d-a441c1d703aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172308Z:93ac9852-ac80-4753-87fe-215e1af16773" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:08 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-11\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"357cd646-1052-418e-a899-692a1aa10062\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMTI/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"357cd646-1052-418e-a899-692a1aa10062\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"d16c1e3b-b1cc-4602-8637-8bde01770fe7\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\",\r\n \"location\": \"westus\"\r\n }\r\n },\r\n \"name\": \"test-10\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "65e05fd2-662e-4237-9706-0b4580777180" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "8749" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "87477fbe-c890-4101-b2c5-68dce1a9144c" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/87477fbe-c890-4101-b2c5-68dce1a9144c?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "d8741f9e-beca-4ce3-8bd0-58dcf30ec7dd" + ], + "x-ms-arm-service-request-id": [ + "8ba95bbd-ec14-4a8b-98c2-88938434d7ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172309Z:d8741f9e-beca-4ce3-8bd0-58dcf30ec7dd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:08 GMT" + ], + "Content-Length": [ + "1361" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-12\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12\",\r\n \"etag\": \"W/\\\"7da12c59-cb91-405b-a07e-6d5f35408c9e\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"08fceb25-f58a-4d4c-9e1f-a17f5343d825\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-10\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12/subnets/test-10\",\r\n \"etag\": \"W/\\\"7da12c59-cb91-405b-a07e-6d5f35408c9e\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/87477fbe-c890-4101-b2c5-68dce1a9144c?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvODc0NzdmYmUtYzg5MC00MTAxLWIyYzUtNjhkY2UxYTkxNDRjP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ed0c6e54-9b9d-42e3-94aa-1697dc8a5cb2" + ], + "x-ms-correlation-request-id": [ + "6ee9b9ce-4052-4f93-bfa5-c3b32b684943" + ], + "x-ms-arm-service-request-id": [ + "bc604d9a-974a-4d79-b550-b18efdc02325" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172312Z:6ee9b9ce-4052-4f93-bfa5-c3b32b684943" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:11 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMTI/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"b63abecb-1d29-40e9-8935-0bfb2878aef2\"" + ], + "x-ms-request-id": [ + "9f9c0a63-c0a2-44ec-b4c6-2ac8c465ea0b" + ], + "x-ms-correlation-request-id": [ + "8a2c1001-06d9-4958-a8fb-e34abc942425" + ], + "x-ms-arm-service-request-id": [ + "26461e61-f4b4-4845-abf5-316203811caf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172312Z:8a2c1001-06d9-4958-a8fb-e34abc942425" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:12 GMT" + ], + "Content-Length": [ + "1363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-12\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12\",\r\n \"etag\": \"W/\\\"b63abecb-1d29-40e9-8935-0bfb2878aef2\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"08fceb25-f58a-4d4c-9e1f-a17f5343d825\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-10\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12/subnets/test-10\",\r\n \"etag\": \"W/\\\"b63abecb-1d29-40e9-8935-0bfb2878aef2\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMTI/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6316d165-b207-4c7f-bb26-ebedff9f4596" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"b63abecb-1d29-40e9-8935-0bfb2878aef2\"" + ], + "x-ms-request-id": [ + "dd0f777e-7214-4f64-b401-a682306e0c3f" + ], + "x-ms-correlation-request-id": [ + "a4c384d3-b2ab-4b23-bb55-87ca17dde4c6" + ], + "x-ms-arm-service-request-id": [ + "3bd51f38-0108-4b60-92d9-eff798b1ce3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172312Z:a4c384d3-b2ab-4b23-bb55-87ca17dde4c6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:12 GMT" + ], + "Content-Length": [ + "1363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-12\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12\",\r\n \"etag\": \"W/\\\"b63abecb-1d29-40e9-8935-0bfb2878aef2\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"08fceb25-f58a-4d4c-9e1f-a17f5343d825\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-10\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12/subnets/test-10\",\r\n \"etag\": \"W/\\\"b63abecb-1d29-40e9-8935-0bfb2878aef2\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "79e8e816-07fc-4b73-9ca6-5ab831e90d21" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "201" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "c3985eb3-8459-462f-a9d6-64c9ea99b31c" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/c3985eb3-8459-462f-a9d6-64c9ea99b31c?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "1816f9f0-fd6a-49ca-b97f-72e2dac322b2" + ], + "x-ms-arm-service-request-id": [ + "41bbcd57-dc59-4aae-ac91-3ab49f26f1de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172314Z:1816f9f0-fd6a-49ca-b97f-72e2dac322b2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:13 GMT" + ], + "Content-Length": [ + "787" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-13\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"etag\": \"W/\\\"d3023467-9437-415d-8323-0062588ec8e2\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"b3d53e55-e3a2-49ff-aaf0-e989ade39e9b\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/c3985eb3-8459-462f-a9d6-64c9ea99b31c?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvYzM5ODVlYjMtODQ1OS00NjJmLWE5ZDYtNjRjOWVhOTliMzFjP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "28a11462-c8fa-4b27-9452-5c0f22d9ef39" + ], + "x-ms-correlation-request-id": [ + "eaf50432-fc96-42c6-922f-d4b3e739c658" + ], + "x-ms-arm-service-request-id": [ + "0761e045-3f1f-4ecb-8596-b669a658dbd8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172315Z:eaf50432-fc96-42c6-922f-d4b3e739c658" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:14 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"22ee5582-6e63-44f9-adf9-c121359a308c\"" + ], + "x-ms-request-id": [ + "08130fc8-8415-4418-bcad-e4c05e889286" + ], + "x-ms-correlation-request-id": [ + "88046819-929c-435d-bdbf-75a7d42be492" + ], + "x-ms-arm-service-request-id": [ + "64e7a43b-cccc-4fdc-9800-244c330a1231" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172315Z:88046819-929c-435d-bdbf-75a7d42be492" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:14 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-13\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"etag\": \"W/\\\"22ee5582-6e63-44f9-adf9-c121359a308c\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"b3d53e55-e3a2-49ff-aaf0-e989ade39e9b\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0xMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23eace3a-6210-4505-8831-8c0076eb98d1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"22ee5582-6e63-44f9-adf9-c121359a308c\"" + ], + "x-ms-request-id": [ + "32bd93f5-f388-4a37-b012-632de1664ab9" + ], + "x-ms-correlation-request-id": [ + "c1f4b9ae-c19c-4a50-ba7f-8d8778dcf222" + ], + "x-ms-arm-service-request-id": [ + "6d1f4ccf-98cd-4ca5-b12d-5380bce141fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172315Z:c1f4b9ae-c19c-4a50-ba7f-8d8778dcf222" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:14 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-13\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"etag\": \"W/\\\"22ee5582-6e63-44f9-adf9-c121359a308c\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"b3d53e55-e3a2-49ff-aaf0-e989ade39e9b\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTU/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "34b79b84-4e43-40d1-889e-83263a3f3cb2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "69ad7ea9-d1d9-4225-90b8-6651bb62277f" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/69ad7ea9-d1d9-4225-90b8-6651bb62277f?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "479d4c33-99b4-4662-9cf5-aad76fa53d73" + ], + "x-ms-arm-service-request-id": [ + "4d8b28db-56c0-471a-95be-781d4d2bb4b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172315Z:479d4c33-99b4-4662-9cf5-aad76fa53d73" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:14 GMT" + ], + "Content-Length": [ + "7467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-15\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"de93fdb5-081f-4b57-8bc5-562e3997ce49\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"54b54c43-6951-4802-9ed1-991d06a8a3e7\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/69ad7ea9-d1d9-4225-90b8-6651bb62277f?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNjlhZDdlYTktZDFkOS00MjI1LTkwYjgtNjY1MWJiNjIyNzdmP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4cd305af-82d6-4486-b7ad-14bebffaf28c" + ], + "x-ms-correlation-request-id": [ + "f9ca5bf6-ca42-4082-88de-eb29d484a884" + ], + "x-ms-arm-service-request-id": [ + "638fcf66-55c2-48a9-92c2-222c7950cbef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172318Z:f9ca5bf6-ca42-4082-88de-eb29d484a884" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:18 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTU/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\"" + ], + "x-ms-request-id": [ + "3dad6e3f-a56d-43d0-89e6-f5c5b39657c7" + ], + "x-ms-correlation-request-id": [ + "7612f910-f593-4b68-93c4-1f5f07583143" + ], + "x-ms-arm-service-request-id": [ + "71829565-887b-450a-b06f-7e9c3c6a593c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172319Z:7612f910-f593-4b68-93c4-1f5f07583143" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:18 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-15\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"de93fdb5-081f-4b57-8bc5-562e3997ce49\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMTU/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f304eefc-8085-4cd7-ad54-8137abb38c4a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\"" + ], + "x-ms-request-id": [ + "6bfdc5aa-5750-4efc-99c9-02233fcd3cea" + ], + "x-ms-correlation-request-id": [ + "daecc878-0330-4e32-8f34-bc19d21b9234" + ], + "x-ms-arm-service-request-id": [ + "adedec35-6448-40bc-8c21-68d7c68b8b8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172319Z:daecc878-0330-4e32-8f34-bc19d21b9234" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:19 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-15\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"de93fdb5-081f-4b57-8bc5-562e3997ce49\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0xNz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"de93fdb5-081f-4b57-8bc5-562e3997ce49\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"1b94c228-3fb2-4fdf-b24b-6c918b7cfa0e\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\",\r\n \"location\": \"westus\"\r\n },\r\n \"ipConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-11\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-10\",\r\n \"etag\": \"W/\\\"b63abecb-1d29-40e9-8935-0bfb2878aef2\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12/subnets/test-10\"\r\n },\r\n \"publicIPAddress\": {\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-14\",\r\n \"fqdn\": \"test-14.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"idleTimeoutInMinutes\": 4,\r\n \"resourceGuid\": \"b3d53e55-e3a2-49ff-aaf0-e989ade39e9b\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"22ee5582-6e63-44f9-adf9-c121359a308c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n }\r\n },\r\n \"name\": \"test-16\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "004eef08-1a0f-4316-912b-bbf61d8227f9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "9343" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "320ad44a-e262-4363-bf10-563f9b70037c" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/320ad44a-e262-4363-bf10-563f9b70037c?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "83fb62cb-b0d2-4b1a-8a45-45c15301ebf2" + ], + "x-ms-arm-service-request-id": [ + "8460aced-d04a-40bc-863c-522bead490ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172319Z:83fb62cb-b0d2-4b1a-8a45-45c15301ebf2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:19 GMT" + ], + "Content-Length": [ + "1951" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-17\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\",\r\n \"etag\": \"W/\\\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"07166505-b710-4f85-8555-333428437e88\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-16\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17/ipConfigurations/test-16\",\r\n \"etag\": \"W/\\\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12/subnets/test-10\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"exv5ycek4vge1hq5uf5vgq4yef.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0xNz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\"" + ], + "x-ms-request-id": [ + "43e6b34b-450b-44cc-84ba-1b606b16af1d" + ], + "x-ms-correlation-request-id": [ + "a64446c4-7ff4-4532-ae7d-072d00da4a86" + ], + "x-ms-arm-service-request-id": [ + "6b3facc7-e05e-49f9-ad5f-ff88b6c877d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172320Z:a64446c4-7ff4-4532-ae7d-072d00da4a86" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:20 GMT" + ], + "Content-Length": [ + "1951" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-17\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\",\r\n \"etag\": \"W/\\\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"07166505-b710-4f85-8555-333428437e88\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-16\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17/ipConfigurations/test-16\",\r\n \"etag\": \"W/\\\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12/subnets/test-10\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"exv5ycek4vge1hq5uf5vgq4yef.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0xNz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d5207178-5187-49e1-bf4f-29d53a742d72" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\"" + ], + "x-ms-request-id": [ + "682f7fbf-0bd7-4fb9-bb26-971b2af0e309" + ], + "x-ms-correlation-request-id": [ + "fbd15851-dfdf-4505-b523-1e0e9dce7010" + ], + "x-ms-arm-service-request-id": [ + "1f133bd6-b600-4b6b-8d71-f68d9a1b1ae0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172320Z:fbd15851-dfdf-4505-b523-1e0e9dce7010" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:20 GMT" + ], + "Content-Length": [ + "1951" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-17\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\",\r\n \"etag\": \"W/\\\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"07166505-b710-4f85-8555-333428437e88\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-16\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17/ipConfigurations/test-16\",\r\n \"etag\": \"W/\\\"ea44f545-cbeb-443b-9ad1-0d9a9bfa995f\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-13\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-12/subnets/test-10\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"exv5ycek4vge1hq5uf5vgq4yef.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-15\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMTg/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"FromImage\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"Empty\",\r\n \"diskSizeGB\": 30,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-18\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"adminPassword\": \"sql@zure123!\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "01d86707-81a4-42f1-aba9-63b8cb3fdd43" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1334" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20336c7d-ed56-46b6-a251-84f6d7038283?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1199" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "20336c7d-ed56-46b6-a251-84f6d7038283" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b05e3655-870c-4bdb-863f-48c3595ef2ea" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172321Z:b05e3655-870c-4bdb-863f-48c3595ef2ea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:21 GMT" + ], + "Content-Length": [ + "1642" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-18\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"ca6d7bef-19c1-453c-9c50-ed59a3e2bd89\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-18\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20336c7d-ed56-46b6-a251-84f6d7038283?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjAzMzZjN2QtZWQ1Ni00NmI2LWEyNTEtODRmNmQ3MDM4MjgzP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "70" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29953" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "1d273ad2-236c-4e54-bef4-b03f3d35c0a4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "6e3198ff-c499-4422-bdf7-d7b050b37920" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172331Z:6e3198ff-c499-4422-bdf7-d7b050b37920" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:23:31 GMT" + ], + "Content-Length": [ + "133" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:23:21.427809-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"20336c7d-ed56-46b6-a251-84f6d7038283\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20336c7d-ed56-46b6-a251-84f6d7038283?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjAzMzZjN2QtZWQ1Ni00NmI2LWEyNTEtODRmNmQ3MDM4MjgzP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29952" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "ddf633f2-3bf7-49ec-932f-025e8828f8d4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "c2c7bc29-c8e4-4e46-856f-bcf6a659033f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172441Z:c2c7bc29-c8e4-4e46-856f-bcf6a659033f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:24:41 GMT" + ], + "Content-Length": [ + "133" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:23:21.427809-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"20336c7d-ed56-46b6-a251-84f6d7038283\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20336c7d-ed56-46b6-a251-84f6d7038283?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjAzMzZjN2QtZWQ1Ni00NmI2LWEyNTEtODRmNmQ3MDM4MjgzP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29949" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "be6325a3-94a2-4542-bce7-bfc5d67515d6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "9e5c36de-145c-45df-aaf6-90b10b979db8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172552Z:9e5c36de-145c-45df-aaf6-90b10b979db8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:25:51 GMT" + ], + "Content-Length": [ + "133" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:23:21.427809-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"20336c7d-ed56-46b6-a251-84f6d7038283\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20336c7d-ed56-46b6-a251-84f6d7038283?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjAzMzZjN2QtZWQ1Ni00NmI2LWEyNTEtODRmNmQ3MDM4MjgzP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29943" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "30b76e39-f787-4f0e-9a9f-996980fd6d26" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "70dc4446-beb8-4fa6-9ee9-990597b240dc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172702Z:70dc4446-beb8-4fa6-9ee9-990597b240dc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:27:01 GMT" + ], + "Content-Length": [ + "183" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:23:21.427809-07:00\",\r\n \"endTime\": \"2019-08-12T10:26:46.3279159-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"20336c7d-ed56-46b6-a251-84f6d7038283\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMTg/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31988" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "d2364746-3f5c-4be3-af86-dd71f44c8741" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "4deb0796-d2b9-430e-bc28-0f8d1abdb317" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172702Z:4deb0796-d2b9-430e-bc28-0f8d1abdb317" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:27:01 GMT" + ], + "Content-Length": [ + "2189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-18\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"ca6d7bef-19c1-453c-9c50-ed59a3e2bd89\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"test-18_OsDisk_1_3e0eb945808740ccb9d4dc57deb2c08d\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-18_OsDisk_1_3e0eb945808740ccb9d4dc57deb2c08d\"\r\n },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"test-18_disk2_ef08b568f55d42e9b65a5a0d2683ec4a\",\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-18_disk2_ef08b568f55d42e9b65a5a0d2683ec4a\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-18\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-17\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-18?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTE4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"autoPatchingSettings\": {\r\n \"enable\": false\r\n },\r\n \"serverConfigurationsManagementSettings\": {\r\n \"sqlConnectivityUpdateSettings\": {\r\n \"connectivityType\": \"Private\",\r\n \"port\": 1433,\r\n \"sqlAuthUpdateUserName\": \"sqllogin\",\r\n \"sqlAuthUpdatePassword\": \"sql@zure123!\"\r\n },\r\n \"sqlWorkloadTypeUpdateSettings\": {\r\n \"sqlWorkloadType\": \"OLTP\"\r\n },\r\n \"sqlStorageUpdateSettings\": {\r\n \"diskCount\": 1,\r\n \"startingDeviceId\": 2,\r\n \"diskConfigurationType\": \"NEW\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ca1ab862-be6e-4d88-a167-b7de02896349" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "926" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "a295f93b-d184-4e06-bd5b-26e238125209" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "65e1a2f1-0fa7-4918-8cd1-d65284c82c96" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172704Z:65e1a2f1-0fa7-4918-8cd1-d65284c82c96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:27:03 GMT" + ], + "Content-Length": [ + "546" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-18\",\r\n \"name\": \"test-18\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2acf0dee-3460-40c8-a8a8-7a5ab84ed577" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "cb1ec663-ac8d-4b97-9ab8-a7744e2bc2cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172719Z:cb1ec663-ac8d-4b97-9ab8-a7744e2bc2cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:27:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f5a57deb-ef1e-4a93-abd4-db9fcdcf20c7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "aea9ba5b-65a6-48e5-a15a-20aea57ee128" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172734Z:aea9ba5b-65a6-48e5-a15a-20aea57ee128" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:27:33 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d2240046-96f3-49b4-abce-896503857e67" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "e9f764f8-baa8-4c0f-a696-6ccd737b584a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172749Z:e9f764f8-baa8-4c0f-a696-6ccd737b584a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:27:48 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e9b40ee6-2c75-40f4-9efe-f6cf5dd4ee17" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "5757ae11-90e6-4721-864f-b5ede4053de5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172804Z:5757ae11-90e6-4721-864f-b5ede4053de5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:28:04 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c5305408-fe1c-4d3a-926b-48680459e28c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "fab4e5aa-8342-4e1a-b5e8-7e30a0924ccb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172819Z:fab4e5aa-8342-4e1a-b5e8-7e30a0924ccb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:28:19 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "77792e5e-d035-41e2-b2cd-01439622705d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "c6524c84-ae59-4f8e-a61f-3546d54b1b8b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172834Z:c6524c84-ae59-4f8e-a61f-3546d54b1b8b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:28:34 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4e735e7c-541e-4256-9f0f-dc23a5d26b19" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "51afaa29-f6c7-4ae0-a6f6-6e5093822cac" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172849Z:51afaa29-f6c7-4ae0-a6f6-6e5093822cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:28:49 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d23a2680-fddc-4560-8dfd-b16f460c79ab" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "fbb5c2c5-2673-45bc-b00d-d0f3d179c33f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172904Z:fbb5c2c5-2673-45bc-b00d-d0f3d179c33f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:29:04 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "14c227b6-aa61-49e4-bb4e-499d08c82142" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "feb5cefc-caad-435e-9b40-75a81e5dcd55" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172919Z:feb5cefc-caad-435e-9b40-75a81e5dcd55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:29:19 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ec7bda4f-ef4e-4803-bc3d-7ae1da16ca2f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "21a6f19f-d6ae-461b-8cda-62893a63f423" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172934Z:21a6f19f-d6ae-461b-8cda-62893a63f423" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:29:34 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "26d6cd36-4d81-4dab-8701-88936acac38a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "82be3a36-3974-4435-9d2e-bbe2096653e6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T172949Z:82be3a36-3974-4435-9d2e-bbe2096653e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:29:48 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0d66688c-e42c-40d0-b626-578e8afb2148" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "30391498-5dc0-43dc-8c6d-6c001a79a69d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173004Z:30391498-5dc0-43dc-8c6d-6c001a79a69d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:30:03 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8269a985-f147-469f-aec9-4644e8929b11" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "a36fb4fc-0057-4326-8538-23cd727d490f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173019Z:a36fb4fc-0057-4326-8538-23cd727d490f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:30:18 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "3379f91e-9f0d-4fdf-a678-1aa86e150d8d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "98ddb844-b385-439a-9f8f-c18cfb7e12a4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173034Z:98ddb844-b385-439a-9f8f-c18cfb7e12a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:30:34 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d49103e3-f811-4243-b3d2-f0a9769ab5f4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "a6d83183-408a-4cde-b893-606fc7ddff4e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173049Z:a6d83183-408a-4cde-b893-606fc7ddff4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:30:49 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "11f1b7e7-ef90-4d32-963e-0d53f440c8ac" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "0844d060-93c0-45ab-84c8-4c9cf9670acd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173104Z:0844d060-93c0-45ab-84c8-4c9cf9670acd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:31:04 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "fed0cacd-e64a-4b73-928e-d527f31d4fb9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "2cc51919-43eb-4d93-9f05-89ecb19c30d8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173119Z:2cc51919-43eb-4d93-9f05-89ecb19c30d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:31:19 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "48d47f3b-dd65-41d7-90c1-5319761a0a87" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "ee36b941-a051-4e54-a03d-63ffc317b771" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173135Z:ee36b941-a051-4e54-a03d-63ffc317b771" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:31:34 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "6779147c-c78a-45a9-8f31-c6a1f92b29d0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "fe790fc1-4e0c-45da-879c-746122e7024d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173150Z:fe790fc1-4e0c-45da-879c-746122e7024d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:31:49 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "24bc5f60-ccf2-4c94-8c7f-261b051ba6fe" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "03778544-c129-44b6-8951-27b38f43cd87" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173205Z:03778544-c129-44b6-8951-27b38f43cd87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:32:04 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d430108a-d240-474d-b850-54082cd387b9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "053264cc-2621-4197-90e6-066ef6db006e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173220Z:053264cc-2621-4197-90e6-066ef6db006e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:32:19 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "18563d16-d074-4ce4-bad7-a13825f4126d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "7745ffbe-da4e-4dbd-8ca4-a47133430a5f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173235Z:7745ffbe-da4e-4dbd-8ca4-a47133430a5f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:32:34 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c607ad0f-3760-47ef-8967-2c9f2febafeb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "4378051b-6b3f-41b6-be15-b6a097e7ae1a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173250Z:4378051b-6b3f-41b6-be15-b6a097e7ae1a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:32:49 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b25dfd45-2578-47ca-b0be-0a1741db8753" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "600cdccb-6c3f-4dfa-8b67-f51cffe2c898" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173305Z:600cdccb-6c3f-4dfa-8b67-f51cffe2c898" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:05 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/419d14aa-45fd-4ecd-b0d2-f5d5884b873e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzLzQxOWQxNGFhLTQ1ZmQtNGVjZC1iMGQyLWY1ZDU4ODRiODczZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2b3b7119-f1a7-4cd5-b967-e576ac60df82" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "3d38fe05-91a0-41c7-80d6-17a5213172f2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173320Z:3d38fe05-91a0-41c7-80d6-17a5213172f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:20 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"419d14aa-45fd-4ecd-b0d2-f5d5884b873e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-12T17:27:03.02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-18?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTE4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5c5e70da-2faf-4e63-8f5d-177ec7479f65" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "a8a469b3-bd89-47e9-8715-1377b5e0dc4c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173320Z:a8a469b3-bd89-47e9-8715-1377b5e0dc4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:20 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-18\",\r\n \"name\": \"test-18\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-18?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTE4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ba220c57-60ea-426c-8f02-abef5bf0b33e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "46e8dbcf-ade1-4867-9228-8e4c6e9ebe85" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "5f3bb793-4b13-48d0-b57c-fef5cefb9f32" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174636Z:5f3bb793-4b13-48d0-b57c-fef5cefb9f32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:35 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-18\",\r\n \"name\": \"test-18\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjA/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8b9560d3-4c07-423e-ba51-301352d202e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "d777d7ed-48a4-4ca4-a941-56f4d403b3b1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/d777d7ed-48a4-4ca4-a941-56f4d403b3b1?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "7e9f561c-a3c5-4383-917d-a3bc624535db" + ], + "x-ms-arm-service-request-id": [ + "cd1e8dd5-fa2f-4022-9f5f-a0f50560a38a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173321Z:7e9f561c-a3c5-4383-917d-a3bc624535db" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:21 GMT" + ], + "Content-Length": [ + "7467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-20\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"93a34480-9af7-4c42-93c3-901914db3605\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"87406f4d-f9ca-4e2b-99da-07b1a76b79e6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/d777d7ed-48a4-4ca4-a941-56f4d403b3b1?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZDc3N2Q3ZWQtNDhhNC00Y2E0LWE5NDEtNTZmNGQ0MDNiM2IxP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2bc8f227-13cd-4da4-95d8-439d5434658d" + ], + "x-ms-correlation-request-id": [ + "257d9c3d-97df-4d1e-a1de-5a916d180415" + ], + "x-ms-arm-service-request-id": [ + "0a3a57ef-373b-4d28-b32d-957ef58e69c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173324Z:257d9c3d-97df-4d1e-a1de-5a916d180415" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:24 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjA/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"9caf1f7f-a9bb-4472-91de-99af57d31949\"" + ], + "x-ms-request-id": [ + "9eb8b324-bd77-4e05-9c71-c5c53c9c5076" + ], + "x-ms-correlation-request-id": [ + "26ec081b-4d75-4f9d-8322-e1ae7aea3023" + ], + "x-ms-arm-service-request-id": [ + "03c876fd-5821-4ba5-b2a7-7d52e60a09f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173324Z:26ec081b-4d75-4f9d-8322-e1ae7aea3023" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:24 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-20\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"93a34480-9af7-4c42-93c3-901914db3605\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjA/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "12ab4239-228f-4179-94cd-6f380815d114" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"9caf1f7f-a9bb-4472-91de-99af57d31949\"" + ], + "x-ms-request-id": [ + "93a81d42-7c1a-482a-bee0-5c93a24d443a" + ], + "x-ms-correlation-request-id": [ + "b50822a9-d2fe-4b4e-b66d-c01823557d2e" + ], + "x-ms-arm-service-request-id": [ + "c915a956-a850-46ba-84dc-d0089b423c99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173324Z:b50822a9-d2fe-4b4e-b66d-c01823557d2e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:24 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-20\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"93a34480-9af7-4c42-93c3-901914db3605\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMjE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"93a34480-9af7-4c42-93c3-901914db3605\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"9caf1f7f-a9bb-4472-91de-99af57d31949\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\",\r\n \"location\": \"westus\"\r\n }\r\n },\r\n \"name\": \"test-19\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "35d20461-dc3a-45bf-81c5-225a5f35a5cb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "8749" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "7d29e725-d18d-48fb-a0b7-dfd819e9a384" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/7d29e725-d18d-48fb-a0b7-dfd819e9a384?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "5fe45903-d2de-400c-bc4b-2a923418d2f6" + ], + "x-ms-arm-service-request-id": [ + "b021d738-7daf-4051-8746-bada564993bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173325Z:5fe45903-d2de-400c-bc4b-2a923418d2f6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:25 GMT" + ], + "Content-Length": [ + "1361" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-21\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21\",\r\n \"etag\": \"W/\\\"91f7ff09-3212-498e-8258-acb537946500\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"bfabbff8-4e0d-4561-9f0d-8314ac378739\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-19\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21/subnets/test-19\",\r\n \"etag\": \"W/\\\"91f7ff09-3212-498e-8258-acb537946500\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/7d29e725-d18d-48fb-a0b7-dfd819e9a384?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvN2QyOWU3MjUtZDE4ZC00OGZiLWEwYjctZGZkODE5ZTlhMzg0P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "15cc4f20-0809-4985-97ce-ea3eb27f6ae1" + ], + "x-ms-correlation-request-id": [ + "9f2e0969-a3b3-45bb-bd9c-d5fd82734a96" + ], + "x-ms-arm-service-request-id": [ + "49a0538d-c732-4574-be3b-81a257279222" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173328Z:9f2e0969-a3b3-45bb-bd9c-d5fd82734a96" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:28 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMjE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"3c3bf34e-a4f8-49cc-846c-87b24d2263f5\"" + ], + "x-ms-request-id": [ + "e23f376e-51d5-4169-b445-523f92031eeb" + ], + "x-ms-correlation-request-id": [ + "2e2b664c-5ef3-497b-b1c8-35a84715af1a" + ], + "x-ms-arm-service-request-id": [ + "051393b5-fea1-46be-aa2c-c9ac0d68f87a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173328Z:2e2b664c-5ef3-497b-b1c8-35a84715af1a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:28 GMT" + ], + "Content-Length": [ + "1363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-21\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21\",\r\n \"etag\": \"W/\\\"3c3bf34e-a4f8-49cc-846c-87b24d2263f5\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"bfabbff8-4e0d-4561-9f0d-8314ac378739\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-19\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21/subnets/test-19\",\r\n \"etag\": \"W/\\\"3c3bf34e-a4f8-49cc-846c-87b24d2263f5\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMjE/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5708fb89-577c-409c-a87a-dcac4e03a971" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"3c3bf34e-a4f8-49cc-846c-87b24d2263f5\"" + ], + "x-ms-request-id": [ + "5e3e9c4a-8eca-40ed-a825-2025aa4a5629" + ], + "x-ms-correlation-request-id": [ + "d1d6b80b-9b1e-41b2-8a1b-6f6680ad58c7" + ], + "x-ms-arm-service-request-id": [ + "8c05f573-50c4-4b49-8ca0-b13f66431054" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173328Z:d1d6b80b-9b1e-41b2-8a1b-6f6680ad58c7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:28 GMT" + ], + "Content-Length": [ + "1363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-21\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21\",\r\n \"etag\": \"W/\\\"3c3bf34e-a4f8-49cc-846c-87b24d2263f5\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"bfabbff8-4e0d-4561-9f0d-8314ac378739\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-19\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21/subnets/test-19\",\r\n \"etag\": \"W/\\\"3c3bf34e-a4f8-49cc-846c-87b24d2263f5\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0yMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-23\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "051c0b12-41dc-4bff-9d44-e7e41fe36ecc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "201" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "73b626cc-ef3b-4308-86c9-95d8b7a1a3d0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/73b626cc-ef3b-4308-86c9-95d8b7a1a3d0?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "4cf792d3-5d29-4de4-b401-a250b46fb4ae" + ], + "x-ms-arm-service-request-id": [ + "b7661b03-6737-4946-92c3-5efa9c0dc7ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173329Z:4cf792d3-5d29-4de4-b401-a250b46fb4ae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:29 GMT" + ], + "Content-Length": [ + "787" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-22\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22\",\r\n \"etag\": \"W/\\\"00a7d80b-4693-4a14-9dac-c0fc8c3cde3a\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"fb7b0630-d673-410b-8978-ff0d9230b77d\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-23\",\r\n \"fqdn\": \"test-23.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/73b626cc-ef3b-4308-86c9-95d8b7a1a3d0?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNzNiNjI2Y2MtZWYzYi00MzA4LTg2YzktOTVkOGI3YTFhM2QwP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ee2a735d-4986-42c5-a215-ddd492c46932" + ], + "x-ms-correlation-request-id": [ + "1b7a52ef-767f-4318-a8ae-0d0a27cb7fc1" + ], + "x-ms-arm-service-request-id": [ + "a7856cc7-e71a-44c1-b5ee-18d9246fe043" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173330Z:1b7a52ef-767f-4318-a8ae-0d0a27cb7fc1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:30 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0yMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"c10c6b3c-5051-41f0-a2f8-ba91a34ac6e2\"" + ], + "x-ms-request-id": [ + "6de16d1d-b6e5-4450-8a48-18b04b41ed54" + ], + "x-ms-correlation-request-id": [ + "5c96aa13-aeb8-4f7e-85d0-d29e4f8173b9" + ], + "x-ms-arm-service-request-id": [ + "2df63366-c306-4a95-9d2c-0312502a94d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173330Z:5c96aa13-aeb8-4f7e-85d0-d29e4f8173b9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:30 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-22\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22\",\r\n \"etag\": \"W/\\\"c10c6b3c-5051-41f0-a2f8-ba91a34ac6e2\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fb7b0630-d673-410b-8978-ff0d9230b77d\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-23\",\r\n \"fqdn\": \"test-23.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC0yMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9fe40557-e354-409e-8fe3-15c084b0dbdb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"c10c6b3c-5051-41f0-a2f8-ba91a34ac6e2\"" + ], + "x-ms-request-id": [ + "ea50fccd-2ff5-43f7-98c2-762c2823f5a0" + ], + "x-ms-correlation-request-id": [ + "cbf24664-ed7f-41f2-bc24-c5529bee6278" + ], + "x-ms-arm-service-request-id": [ + "b49a5aac-b471-45bf-a57e-07869b911a4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173330Z:cbf24664-ed7f-41f2-bc24-c5529bee6278" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:30 GMT" + ], + "Content-Length": [ + "788" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-22\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22\",\r\n \"etag\": \"W/\\\"c10c6b3c-5051-41f0-a2f8-ba91a34ac6e2\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fb7b0630-d673-410b-8978-ff0d9230b77d\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-23\",\r\n \"fqdn\": \"test-23.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjQ/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "033b3773-a50a-4c51-ae64-dff975fed6e5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "1cee0f50-e224-43d7-b35f-12bc5e868c75" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/1cee0f50-e224-43d7-b35f-12bc5e868c75?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "5d762cbc-2ea3-4bf7-a6b1-91482fac5208" + ], + "x-ms-arm-service-request-id": [ + "4b114be7-982c-4182-8e3c-920e3b7f6dbd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173331Z:5d762cbc-2ea3-4bf7-a6b1-91482fac5208" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:31 GMT" + ], + "Content-Length": [ + "7467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-24\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"fbe551fe-26cd-4fc3-bc26-3443df36f846\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"92446240-63e2-461b-8180-57d346976cc6\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/1cee0f50-e224-43d7-b35f-12bc5e868c75?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMWNlZTBmNTAtZTIyNC00M2Q3LWIzNWYtMTJiYzVlODY4Yzc1P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5c152064-48cd-42da-991a-b9b457c67272" + ], + "x-ms-correlation-request-id": [ + "98ace2e0-7801-4157-9a04-8eb5e6871eb0" + ], + "x-ms-arm-service-request-id": [ + "189aec17-cead-46a5-89e2-fe295973a90b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173334Z:98ace2e0-7801-4157-9a04-8eb5e6871eb0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:34 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjQ/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"d291f521-8788-4e40-8aba-8063c5885c67\"" + ], + "x-ms-request-id": [ + "82626fbd-31d6-43ba-a2f8-abfd7fbfccee" + ], + "x-ms-correlation-request-id": [ + "b0e36810-1b30-431d-8ed2-b8003d067793" + ], + "x-ms-arm-service-request-id": [ + "2093817e-9a62-487d-ad1e-cf55c6c4e501" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173334Z:b0e36810-1b30-431d-8ed2-b8003d067793" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:34 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-24\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fbe551fe-26cd-4fc3-bc26-3443df36f846\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMjQ/YXBpLXZlcnNpb249MjAxOC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "538ab7eb-f1a6-4eba-b1d3-d7b3a1a52c87" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"d291f521-8788-4e40-8aba-8063c5885c67\"" + ], + "x-ms-request-id": [ + "2e3608bf-402e-4bba-a117-75a524274a59" + ], + "x-ms-correlation-request-id": [ + "bce23e9f-158e-48ca-936d-e6ae7119d1ee" + ], + "x-ms-arm-service-request-id": [ + "d00cf19e-21fe-4453-9f24-66ca582f39d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173334Z:bce23e9f-158e-48ca-936d-e6ae7119d1ee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:34 GMT" + ], + "Content-Length": [ + "7475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-24\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fbe551fe-26cd-4fc3-bc26-3443df36f846\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0yNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"fbe551fe-26cd-4fc3-bc26-3443df36f846\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"d291f521-8788-4e40-8aba-8063c5885c67\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24\",\r\n \"location\": \"westus\"\r\n },\r\n \"ipConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-20\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-19\",\r\n \"etag\": \"W/\\\"3c3bf34e-a4f8-49cc-846c-87b24d2263f5\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21/subnets/test-19\"\r\n },\r\n \"publicIPAddress\": {\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-23\",\r\n \"fqdn\": \"test-23.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"idleTimeoutInMinutes\": 4,\r\n \"resourceGuid\": \"fb7b0630-d673-410b-8978-ff0d9230b77d\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"c10c6b3c-5051-41f0-a2f8-ba91a34ac6e2\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n }\r\n },\r\n \"name\": \"test-25\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f351c953-3816-4bce-81a4-c24283317198" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "9343" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a4e2f4aa-9c35-47b6-a72d-fdb5990689a0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/a4e2f4aa-9c35-47b6-a72d-fdb5990689a0?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "67666e20-3372-47c0-902a-ee787e69eeb6" + ], + "x-ms-arm-service-request-id": [ + "84c6d1f2-adff-4000-bec5-b010515a3932" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173335Z:67666e20-3372-47c0-902a-ee787e69eeb6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:35 GMT" + ], + "Content-Length": [ + "1951" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-26\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26\",\r\n \"etag\": \"W/\\\"19090055-7e76-44c3-94db-f68edeb5837c\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"82eb68f8-30da-433d-84d6-02cc0ba1a1af\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-25\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26/ipConfigurations/test-25\",\r\n \"etag\": \"W/\\\"19090055-7e76-44c3-94db-f68edeb5837c\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21/subnets/test-19\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"5c50xpynjzqulhynqmkkyn2hhb.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0yNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"19090055-7e76-44c3-94db-f68edeb5837c\"" + ], + "x-ms-request-id": [ + "c0cb3bfd-2740-4ab8-83f9-2d2b290c6249" + ], + "x-ms-correlation-request-id": [ + "63b6a8f4-64ee-4ed2-bcd0-a21dd318f57c" + ], + "x-ms-arm-service-request-id": [ + "39dec2ae-9f32-4889-865d-7a328510934f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173335Z:63b6a8f4-64ee-4ed2-bcd0-a21dd318f57c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:35 GMT" + ], + "Content-Length": [ + "1951" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-26\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26\",\r\n \"etag\": \"W/\\\"19090055-7e76-44c3-94db-f68edeb5837c\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"82eb68f8-30da-433d-84d6-02cc0ba1a1af\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-25\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26/ipConfigurations/test-25\",\r\n \"etag\": \"W/\\\"19090055-7e76-44c3-94db-f68edeb5837c\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21/subnets/test-19\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"5c50xpynjzqulhynqmkkyn2hhb.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC0yNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4853af17-18f0-40e6-a396-43f101ef3f62" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"19090055-7e76-44c3-94db-f68edeb5837c\"" + ], + "x-ms-request-id": [ + "ae2b7413-b100-42a8-b82c-8538aa4629bd" + ], + "x-ms-correlation-request-id": [ + "aaf106c3-0694-4048-a7f7-e0cef888ab12" + ], + "x-ms-arm-service-request-id": [ + "97b094ec-3b31-4d32-9d77-3bde10ffe975" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173335Z:aaf106c3-0694-4048-a7f7-e0cef888ab12" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:35 GMT" + ], + "Content-Length": [ + "1951" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-26\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26\",\r\n \"etag\": \"W/\\\"19090055-7e76-44c3-94db-f68edeb5837c\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"82eb68f8-30da-433d-84d6-02cc0ba1a1af\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-25\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26/ipConfigurations/test-25\",\r\n \"etag\": \"W/\\\"19090055-7e76-44c3-94db-f68edeb5837c\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-22\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-21/subnets/test-19\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"5c50xpynjzqulhynqmkkyn2hhb.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-24\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjc/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"FromImage\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"Empty\",\r\n \"diskSizeGB\": 30,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-27\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"adminPassword\": \"sql@zure123!\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1289cf60-ff7f-41c9-b034-2db7afbcbfbe" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1334" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/ceaac43b-fc31-4dee-bd32-651ce10dc8f4?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1198" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "ceaac43b-fc31-4dee-bd32-651ce10dc8f4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "d5c267fb-24fc-44a9-ae2b-a49c067d33f8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173336Z:d5c267fb-24fc-44a9-ae2b-a49c067d33f8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:36 GMT" + ], + "Content-Length": [ + "1642" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-27\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"190a3ffc-8273-414d-8e96-2a99610ab13f\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-27\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/ceaac43b-fc31-4dee-bd32-651ce10dc8f4?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2VhYWM0M2ItZmMzMS00ZGVlLWJkMzItNjUxY2UxMGRjOGY0P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "70" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29907" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "3199cea5-0476-4625-8d6c-ef74f9eba6db" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "5d186a5d-5eca-41d0-8be8-bbe3381084eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173347Z:5d186a5d-5eca-41d0-8be8-bbe3381084eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:33:46 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:33:36.7994409-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"ceaac43b-fc31-4dee-bd32-651ce10dc8f4\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/ceaac43b-fc31-4dee-bd32-651ce10dc8f4?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2VhYWM0M2ItZmMzMS00ZGVlLWJkMzItNjUxY2UxMGRjOGY0P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29906" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "ac3ee64c-889f-42d0-8cd6-d47bfdcb4401" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "28c90af0-5d2f-4d6b-b657-ecd0ca5e0ee2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173457Z:28c90af0-5d2f-4d6b-b657-ecd0ca5e0ee2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:34:56 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:33:36.7994409-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"ceaac43b-fc31-4dee-bd32-651ce10dc8f4\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/ceaac43b-fc31-4dee-bd32-651ce10dc8f4?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2VhYWM0M2ItZmMzMS00ZGVlLWJkMzItNjUxY2UxMGRjOGY0P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29903" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "cccc07b5-b19b-4a88-9270-134209695250" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "43f61c4e-9e35-4b7b-ac33-0b59d0476aba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173607Z:43f61c4e-9e35-4b7b-ac33-0b59d0476aba" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:36:06 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:33:36.7994409-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"ceaac43b-fc31-4dee-bd32-651ce10dc8f4\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/ceaac43b-fc31-4dee-bd32-651ce10dc8f4?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2VhYWM0M2ItZmMzMS00ZGVlLWJkMzItNjUxY2UxMGRjOGY0P2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29897" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "c1770c8e-44d7-48cb-8cfb-22d36c0f76b3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "2ccb7f9e-3b4d-44cf-88f6-cf08043b7a64" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173717Z:2ccb7f9e-3b4d-44cf-88f6-cf08043b7a64" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:37:17 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-12T10:33:36.7994409-07:00\",\r\n \"endTime\": \"2019-08-12T10:37:07.7620024-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"ceaac43b-fc31-4dee-bd32-651ce10dc8f4\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtMjc/YXBpLXZlcnNpb249MjAxNy0xMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31968" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "4d056aba-7c30-4e84-a4e0-24e6e410542f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "a9a0c118-38d7-4000-80e4-eaa716d971d8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173717Z:a9a0c118-38d7-4000-80e4-eaa716d971d8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:37:17 GMT" + ], + "Content-Length": [ + "2189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-27\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"190a3ffc-8273-414d-8e96-2a99610ab13f\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"test-27_OsDisk_1_001b03d0dc7444d09f42d1e1f43fcf31\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-27_OsDisk_1_001b03d0dc7444d09f42d1e1f43fcf31\"\r\n },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"test-27_disk2_ad542fada3a34aa69fc2cb54edecfaa7\",\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-27_disk2_ad542fada3a34aa69fc2cb54edecfaa7\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-27\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-26\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"autoPatchingSettings\": {\r\n \"enable\": false\r\n },\r\n \"serverConfigurationsManagementSettings\": {\r\n \"sqlConnectivityUpdateSettings\": {\r\n \"connectivityType\": \"Private\",\r\n \"port\": 1433,\r\n \"sqlAuthUpdateUserName\": \"sqllogin\",\r\n \"sqlAuthUpdatePassword\": \"sql@zure123!\"\r\n },\r\n \"sqlWorkloadTypeUpdateSettings\": {\r\n \"sqlWorkloadType\": \"OLTP\"\r\n },\r\n \"sqlStorageUpdateSettings\": {\r\n \"diskCount\": 1,\r\n \"startingDeviceId\": 2,\r\n \"diskConfigurationType\": \"NEW\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "760afcc3-8955-45ad-8b88-ae99f581e5c4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "926" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "b34f625a-67f5-4ccf-9dd2-242e61a8b386" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "72c2bddd-3d22-4f93-9a86-aa0309240402" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173719Z:72c2bddd-3d22-4f93-9a86-aa0309240402" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:37:18 GMT" + ], + "Content-Length": [ + "546" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27\",\r\n \"name\": \"test-27\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "22eb6bd3-123d-4548-a5c3-d477230032d6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "e587104f-d87d-42b8-a69b-39a8de29c4a1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173734Z:e587104f-d87d-42b8-a69b-39a8de29c4a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:37:33 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "987a280d-5d6c-4369-8413-a70344e6f73d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "7108092e-62ae-4f35-8812-7ea8df963437" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173749Z:7108092e-62ae-4f35-8812-7ea8df963437" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:37:48 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "91936102-4ba1-4bcb-9532-e3943422f7f8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "2d04eb94-22d7-4e89-9c64-fb37d1c548ec" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173804Z:2d04eb94-22d7-4e89-9c64-fb37d1c548ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:38:04 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5f07e2d5-4151-44ed-a24a-fe27559f448d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "aaf93588-186b-4362-b971-c2817ba7701f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173819Z:aaf93588-186b-4362-b971-c2817ba7701f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:38:19 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "779526d9-fdf7-4797-8da4-849dad8b9ee5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "c9711664-1081-4e44-be07-a7fe9cecf0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173834Z:c9711664-1081-4e44-be07-a7fe9cecf0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:38:34 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "499fa760-8cfe-4126-8cbb-02b1509010d7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "1d0ad69d-df9f-4773-8478-7f959cce5b83" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173849Z:1d0ad69d-df9f-4773-8478-7f959cce5b83" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:38:48 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2e5b93ce-5832-4b10-813c-e9509e15c498" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "e517d84f-7d7e-4f14-8626-af1acf5fcc87" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173904Z:e517d84f-7d7e-4f14-8626-af1acf5fcc87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:39:03 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "99415827-7a1e-4084-916f-54331f37ee95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "298883d5-8187-4414-8bda-f301cad87e5b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173919Z:298883d5-8187-4414-8bda-f301cad87e5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:39:19 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2eecfc69-bbdb-4ffe-a96d-e2c4703dc4fd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "892169da-cc62-4b7d-8285-af57193944dd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173934Z:892169da-cc62-4b7d-8285-af57193944dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:39:34 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4315f72c-7701-4c17-ad85-ce8f7bfd325c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "35b91394-11ca-49c0-864c-3c115647b04b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T173949Z:35b91394-11ca-49c0-864c-3c115647b04b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:39:49 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "80887264-7fe0-4ef8-aaa8-9d7990ad2cac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "0f2d2d56-681c-42a3-8316-746653e173b0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174004Z:0f2d2d56-681c-42a3-8316-746653e173b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:40:04 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9d1a3ec7-04ca-42c3-914c-4ad1c06a346b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "b0258e30-3b67-4f20-98a5-fe6b17fb633a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174019Z:b0258e30-3b67-4f20-98a5-fe6b17fb633a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:40:18 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2bb1c48e-d8dc-4b28-b2ed-ccb364723231" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "bea2d58e-98fa-4919-8268-de4f63890556" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174034Z:bea2d58e-98fa-4919-8268-de4f63890556" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:40:34 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "dbb5b3f6-e264-450a-a784-75e6e9217845" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "89a834ee-5694-43d3-8a1a-e09cf91ae181" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174050Z:89a834ee-5694-43d3-8a1a-e09cf91ae181" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:40:49 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "23e7d317-2e3a-47af-bf30-1c80fc5e2827" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "b7cff755-58d3-4fb5-9e06-a83677408775" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174105Z:b7cff755-58d3-4fb5-9e06-a83677408775" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:41:04 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0da4d5ef-0938-4679-a104-d7ef38b845bc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "dbfdc38a-9db6-4e97-b2c3-35f2a8671ad8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174120Z:dbfdc38a-9db6-4e97-b2c3-35f2a8671ad8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:41:19 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9cf18a77-53a6-4c2a-b919-7be0e6665eb7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "03ce1af4-bee9-4653-ab30-c16723fd6c8f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174135Z:03ce1af4-bee9-4653-ab30-c16723fd6c8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:41:34 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "41a51f0a-2db0-4e6f-9d41-e4ff4c10ca7e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "9a33f740-5873-448e-9f7e-56aed60d699a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174150Z:9a33f740-5873-448e-9f7e-56aed60d699a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:41:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1280915e-4a9f-4c5d-9572-183387acfb5b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "18ee964f-3522-44f9-a9d7-55093f92d40a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174205Z:18ee964f-3522-44f9-a9d7-55093f92d40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:42:04 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b199deed-e6ad-4ea6-b53f-7777d14117eb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "110de103-1dcd-40f7-a436-a94971ad21ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174220Z:110de103-1dcd-40f7-a436-a94971ad21ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:42:19 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f9510681-438a-4507-9de0-62c64b111155" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "c615aa63-f23b-405a-bbbf-705ed9d0a928" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174235Z:c615aa63-f23b-405a-bbbf-705ed9d0a928" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:42:34 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d4d84d80-a11c-4976-a86c-6f93393dc871" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "f366d5c2-b42a-47be-8cad-e189ff7777b3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174250Z:f366d5c2-b42a-47be-8cad-e189ff7777b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:42:49 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "476189cc-3c6d-47ea-882c-a7e5cf27037b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "085cd177-c53a-4e25-a016-329d8c0ccf40" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174305Z:085cd177-c53a-4e25-a016-329d8c0ccf40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:43:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1cc7cf00-a8c6-40c2-8738-034919a9217a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "064246ca-1a59-435e-8dfd-3971bf110be8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174320Z:064246ca-1a59-435e-8dfd-3971bf110be8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:43:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "102f3d4c-992a-4ed9-9680-f8aba1f305a6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "fdc504e4-c532-4032-8690-03ee23bbfb8a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174335Z:fdc504e4-c532-4032-8690-03ee23bbfb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:43:35 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c178b18a-fb78-4b14-b313-c337c2382f48" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "d5a4baad-7ec3-4bcd-8413-5bfdb8dc7d32" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174350Z:d5a4baad-7ec3-4bcd-8413-5bfdb8dc7d32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:43:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4be95d0d-1b41-4d0d-bdae-6e064d55ce56" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "b5037c9e-b7a8-4b61-8bff-799830f11e10" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174405Z:b5037c9e-b7a8-4b61-8bff-799830f11e10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:44:04 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "8d48bdee-8430-4f93-a00b-a31e2adffa44" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "fac95011-3cfa-4bbb-9c43-7ef9c9b0ee74" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174420Z:fac95011-3cfa-4bbb-9c43-7ef9c9b0ee74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:44:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "77221a68-3dcb-4bc9-b014-02bee33499f1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "cced1a0d-7f3c-40e2-9480-65f803f78c42" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174435Z:cced1a0d-7f3c-40e2-9480-65f803f78c42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:44:35 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "010b2129-0f57-481f-9e99-8251f9b505f6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "cc54a2e6-a07f-4dbd-a8af-526e1ca685bc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174450Z:cc54a2e6-a07f-4dbd-a8af-526e1ca685bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:44:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "17e8ddb0-89b6-4c0b-8e8a-f82411641e24" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "8785fdc0-0a73-4227-86de-7c103d88d48f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174505Z:8785fdc0-0a73-4227-86de-7c103d88d48f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:45:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e31f67d3-caf4-46bb-90ce-7453cf9f0ca9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "dceca4d7-9ba1-46be-9567-fdeb13a15c74" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174521Z:dceca4d7-9ba1-46be-9567-fdeb13a15c74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:45:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d1bf7acc-27ea-4fbb-b89f-acac1a193708" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "44acf626-9c39-495b-ba92-e550d38d9def" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174536Z:44acf626-9c39-495b-ba92-e550d38d9def" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:45:35 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b0008c30-05c1-4ad4-b1b4-0db6f742cda0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "a3d5da83-7079-4562-ac1f-adc31efb0410" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174551Z:a3d5da83-7079-4562-ac1f-adc31efb0410" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:45:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d6d801cb-fb70-4f4d-9dd9-bec98b4b68ea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "112cf6ea-d916-4164-8010-9eb63606f9d9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174606Z:112cf6ea-d916-4164-8010-9eb63606f9d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "99a2fd76-4e9c-45eb-89a5-11c485c60492" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "8adf7548-0ac4-496f-aad3-81f26a3077cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174621Z:8adf7548-0ac4-496f-aad3-81f26a3077cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/f9749ea5-522f-47ba-b7a9-cdb8299d52b9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2Y5NzQ5ZWE1LTUyMmYtNDdiYS1iN2E5LWNkYjgyOTlkNTJiOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b7a6a460-32c0-4ee0-86f9-b06ba1c573d0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "0b2741a3-a71d-49d3-b1bc-b515410646b7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174636Z:0b2741a3-a71d-49d3-b1bc-b515410646b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:35 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f9749ea5-522f-47ba-b7a9-cdb8299d52b9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-12T17:37:18.203Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9aca6e0a-0d53-4aa0-b9cb-5b8b1d938a68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "9f6247ac-2704-4dac-a312-0e051161db1f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174636Z:9f6247ac-2704-4dac-a312-0e051161db1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:35 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27\",\r\n \"name\": \"test-27\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "86ad04d2-1a43-41c7-b3b0-4e491c340203" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "20a36506-1a05-42ce-93dd-395bbac1f481" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "d7b3c54b-ccd0-481e-89ef-e9e727b99c56" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174636Z:d7b3c54b-ccd0-481e-89ef-e9e727b99c56" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:35 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27\",\r\n \"name\": \"test-27\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d3547299-cb5c-4832-83e3-1edafb3f174f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "241deaa0-1b49-4b09-bbd8-f4060c72bdb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174653Z:241deaa0-1b49-4b09-bbd8-f4060c72bdb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:52 GMT" + ], + "Content-Length": [ + "607" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27\",\r\n \"name\": \"test-27\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b91b105-bddc-4a38-85ff-b5ac822c7a7b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f5c55a17-48e8-41f8-9f75-980f5501226f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "0ab8f1f7-e643-442e-b2fb-4edb686a9d8c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174653Z:0ab8f1f7-e643-442e-b2fb-4edb686a9d8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:52 GMT" + ], + "Content-Length": [ + "607" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27\",\r\n \"name\": \"test-27\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1456f9a9-8772-4d81-b804-08c47bfb182c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "47" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/patchsqlvirtualmachine/operationResults/f80dab71-384c-4764-be31-0369122967cc?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "9b1853b6-bb37-477c-bea4-4e14846f7552" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "0941ac18-9f81-4b6c-99d9-b9ca9b8bdb52" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174638Z:0941ac18-9f81-4b6c-99d9-b9ca9b8bdb52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:37 GMT" + ], + "Content-Length": [ + "570" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-27\",\r\n \"provisioningState\": \"Patching\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"updateTag\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27\",\r\n \"name\": \"test-27\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/patchsqlvirtualmachine/operationResults/f80dab71-384c-4764-be31-0369122967cc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9wYXRjaHNxbHZpcnR1YWxtYWNoaW5lL29wZXJhdGlvblJlc3VsdHMvZjgwZGFiNzEtMzg0Yy00NzY0LWJlMzEtMDM2OTEyMjk2N2NjP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "fbc285c9-3f3d-4a6d-a7f2-24c953ea0387" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-correlation-request-id": [ + "f57d14a7-eb63-47e1-bd21-4402d0919d2c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174653Z:f57d14a7-eb63-47e1-bd21-4402d0919d2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:52 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f80dab71-384c-4764-be31-0369122967cc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-12T17:46:36.557Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-27?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTI3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f6f52fee-febf-448c-bdb9-9847b21182d1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/sqlVirtualMachineOperationResults/84984be4-4c96-4b1f-bd17-09c6ae3d4811?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "643c1fc9-af9e-4c96-9063-d3711ab818d5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "ddcafc2d-a13b-4593-8ae1-3a07d4fa798c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174654Z:ddcafc2d-a13b-4593-8ae1-3a07d4fa798c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:46:53 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/sqlVirtualMachineOperationResults/84984be4-4c96-4b1f-bd17-09c6ae3d4811?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9zcWxWaXJ0dWFsTWFjaGluZU9wZXJhdGlvblJlc3VsdHMvODQ5ODRiZTQtNGM5Ni00YjFmLWJkMTctMDljNmFlM2Q0ODExP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "01850c5b-f6d8-4049-9ce3-a526e18d167c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "c9ad6885-6a7e-44b7-809d-1e0afee3fed8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174709Z:c9ad6885-6a7e-44b7-809d-1e0afee3fed8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:47:09 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/sqlVirtualMachineOperationResults/84984be4-4c96-4b1f-bd17-09c6ae3d4811?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9zcWxWaXJ0dWFsTWFjaGluZU9wZXJhdGlvblJlc3VsdHMvODQ5ODRiZTQtNGM5Ni00YjFmLWJkMTctMDljNmFlM2Q0ODExP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9bc49e5e-3e82-4a4e-a5f4-1d89ea5938dc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "3f0774f4-b211-4c21-b2c5-cba4fb9f0ffd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174709Z:3f0774f4-b211-4c21-b2c5-cba4fb9f0ffd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:47:09 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvc3FsVmlydHVhbE1hY2hpbmVzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4fd5912-e068-425b-9db7-c144f1458717" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "ec947749-c838-44d2-bf27-088b6a26172e", + "59039e40-9119-4524-8b1d-e84750ad3280", + "ec41bbb9-b0e4-40cb-ac47-aad5e87ca35d", + "87b536db-62cb-4435-80cb-f1fdf306f012", + "785d4b71-20d8-4838-a584-9aac1e05a57e", + "e4919181-48fa-47db-a27c-a444e86b695c", + "bc0e987a-3a09-4ea4-a4e9-7336b3d53c1b", + "" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-request-id": [ + "07b10a19-0bff-4507-90b1-f1097458ebfa" + ], + "x-ms-correlation-request-id": [ + "07b10a19-0bff-4507-90b1-f1097458ebfa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174730Z:07b10a19-0bff-4507-90b1-f1097458ebfa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:47:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "26969" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.Compute/virtualMachines/olsSQLVM\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"AHUB\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AGDemoRG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/olsSQLVM\",\r\n \"name\": \"olsSQLVM\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/shreya_resource_group/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/shreya_resource_group/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ShreyaCluster\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/shreya_resource_group/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/vm1\",\r\n \"name\": \"vm1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/shreya_resource_group/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/shreya_resource_group/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/ShreyaCluster\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/shreya_resource_group/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/vm2\",\r\n \"name\": \"vm2\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/eosdemo/providers/Microsoft.Compute/virtualMachines/eossql\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2008R2-WS2008R2\",\r\n \"sqlServerLicenseType\": \"AHUB\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/eosdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/eossql\",\r\n \"name\": \"eossql\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/extbugjuly2/providers/Microsoft.Compute/virtualMachines/testbug12\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/extbugjuly2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testbug12\",\r\n \"name\": \"testbug12\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/FCITest/providers/Microsoft.Compute/virtualMachines/FCINode1\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/FCITest/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/FCINode1\",\r\n \"name\": \"FCINode1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/FCITest/providers/Microsoft.Compute/virtualMachines/fcinode2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/FCITest/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/fcinode2\",\r\n \"name\": \"fcinode2\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus2/providers/Microsoft.Compute/virtualMachines/skvm\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/skvm\",\r\n \"name\": \"skvm\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/readydemo/providers/Microsoft.Compute/virtualMachines/fullmode\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/readydemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/fullmode\",\r\n \"name\": \"fullmode\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/v-swbona-rg/providers/Microsoft.Compute/virtualMachines/newskvm\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/v-swbona-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/newskvm\",\r\n \"name\": \"newskvm\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/v-swbona-rg/providers/Microsoft.Compute/virtualMachines/rpvm\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/v-swbona-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/rpvm\",\r\n \"name\": \"rpvm\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/dimadhusAlwaysOn/providers/Microsoft.Compute/virtualMachines/dimadhusPrimary\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/dimadhusAlwaysOn/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/dimadhusPrimary\",\r\n \"name\": \"dimadhusPrimary\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmrpdemo/providers/Microsoft.Compute/virtualMachines/customsql\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"AHUB\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmrpdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/customsql\",\r\n \"name\": \"customsql\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmrpdemo/providers/Microsoft.Compute/virtualMachines/sqlEE2017\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmrpdemo/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/sqlEE2017\",\r\n \"name\": \"sqlEE2017\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feDDrive/providers/Microsoft.Compute/virtualMachines/WS2012\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2014-WS2012R2\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"centralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feDDrive/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/WS2012\",\r\n \"name\": \"WS2012\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feGroup/providers/Microsoft.Compute/virtualMachines/groupvm1\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/feGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/Cluster123\"\r\n },\r\n \"location\": \"centralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/groupvm1\",\r\n \"name\": \"groupvm1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feGroup/providers/Microsoft.Compute/virtualMachines/groupvm2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"centralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/groupvm2\",\r\n \"name\": \"groupvm2\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feRemoteDebug/providers/Microsoft.Compute/virtualMachines/vm3\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"centralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/feRemoteDebug/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/vm3\",\r\n \"name\": \"vm3\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-dest/providers/Microsoft.Compute/virtualMachines/ranishanwcus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"centralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-dest/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/ranishanwcus\",\r\n \"name\": \"ranishanwcus\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-move/providers/Microsoft.Compute/virtualMachines/ranishandelete\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"centralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-move/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/ranishandelete\",\r\n \"name\": \"ranishandelete\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnpstarget/providers/Microsoft.Compute/virtualMachines/rlnrunner1\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"centralus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnpstarget/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/rlnrunner1\",\r\n \"name\": \"rlnrunner1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/yadiWs2019/providers/Microsoft.Compute/virtualMachines/yadiTestCommand\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2019\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"northeurope\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/yadiWs2019/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/yadiTestCommand\",\r\n \"name\": \"yadiTestCommand\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-18\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-18\",\r\n \"name\": \"test-18\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9\",\r\n \"name\": \"test-9\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/testrestart/providers/Microsoft.Compute/virtualMachines/restart8\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/testrestart/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/restart8\",\r\n \"name\": \"restart8\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus2/providers/Microsoft.Compute/virtualMachines/doubleSql\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Standard\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/karthik-wcus2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/doubleSql\",\r\n \"name\": \"doubleSql\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.Compute/virtualMachines/exprmntvm2\",\r\n \"provisioningState\": \"Failed\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"NotSet\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/exprmntvm2\",\r\n \"name\": \"exprmntvm2\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.Compute/virtualMachines/rsepRln\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"AHUB\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Standard\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/rsepRln\",\r\n \"name\": \"rsepRln\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rptest/providers/Microsoft.Compute/virtualMachines/rptaintest\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rptest/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/rptaintest\",\r\n \"name\": \"rptaintest\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.Compute/virtualMachines/testbugext\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"testtag\": \"xyz\"\r\n },\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testbugext\",\r\n \"name\": \"testbugext\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.Compute/virtualMachines/reepCPRln\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Standard\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/reepCPRln\",\r\n \"name\": \"reepCPRln\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.Compute/virtualMachines/VM1\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2014-WS2012R2\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/AlwaysOn-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/MyCluster\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/VM1\",\r\n \"name\": \"VM1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/July9/providers/Microsoft.Compute/virtualMachines/SqlVm5\",\r\n \"provisioningState\": \"Failed\",\r\n \"sqlServerLicenseType\": \"AHUB\",\r\n \"sqlManagement\": \"NotSet\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/July9/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/SqlVm5\",\r\n \"name\": \"SqlVm5\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.Compute/virtualMachines/VM9-12-1\",\r\n \"provisioningState\": \"Failed\",\r\n \"sqlImageOffer\": \"SQL2016-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/alwayson-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/VM9-12-1\",\r\n \"name\": \"VM9-12-1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/vaibhav-rg/providers/Microsoft.Compute/virtualMachines/backup\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016-WS2012R2\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/vaibhav-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/backup\",\r\n \"name\": \"backup\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/RLN_DEMO/providers/Microsoft.Compute/virtualMachines/rln-euseuap\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/RLN_DEMO/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/rln-euseuap\",\r\n \"name\": \"rln-euseuap\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.Compute/virtualMachines/sqlvmpoc-1\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2016-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/sqlvmpoc-1\",\r\n \"name\": \"sqlvmpoc-1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-euseuap2/providers/Microsoft.Compute/virtualMachines/ranishaneuseuap\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-euseuap2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/ranishaneuseuap\",\r\n \"name\": \"ranishaneuseuap\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.Compute/virtualMachines/VM2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2014-WS2012R2\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/AlwaysOn-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/MyCluster\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/VM2\",\r\n \"name\": \"VM2\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-Poc/providers/Microsoft.Compute/virtualMachines/VM3\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2014-WS2012R2\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/AlwaysOn-poc/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/VM3\",\r\n \"name\": \"VM3\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-dest/providers/Microsoft.Compute/virtualMachines/ranishaneusmove\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Developer\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ranishan-dest/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/ranishaneusmove\",\r\n \"name\": \"ranishaneusmove\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.Compute/virtualMachines/exprmntvm1\",\r\n \"provisioningState\": \"Failed\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"sqlVirtualMachineGroupResourceId\": \"/subscriptions/0009FC4D-E310-4E40-8E63-C48A23E9CDC1/resourceGroups/ArvindTestGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/exprmntCluster\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/ArvindTestGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/exprmntvm1\",\r\n \"name\": \"exprmntvm1\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.Compute/virtualMachines/EEAHUBRln\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"AHUB\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/EEAHUBRln\",\r\n \"name\": \"EEAHUBRln\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.Compute/virtualMachines/rwepCRln\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"AHUB\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Standard\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/rlnCanaryADH/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/rwepCRln\",\r\n \"name\": \"rwepCRln\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n },\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/v-krko-rg/providers/Microsoft.Compute/virtualMachines/1eastus2euap\",\r\n \"provisioningState\": \"Failed\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/v-krko-rg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/1eastus2euap\",\r\n \"name\": \"1eastus2euap\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6760589d-6276-4018-bd2e-dfae3c851eae" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "e87eaafe-d850-40e6-b8c3-cb4266dad59c" + ], + "x-ms-correlation-request-id": [ + "e87eaafe-d850-40e6-b8c3-cb4266dad59c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174732Z:e87eaafe-d850-40e6-b8c3-cb4266dad59c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:47:31 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "4dacbb2d-aab2-4bb5-8fe0-a9c61e9cf96e" + ], + "x-ms-correlation-request-id": [ + "4dacbb2d-aab2-4bb5-8fe0-a9c61e9cf96e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174747Z:4dacbb2d-aab2-4bb5-8fe0-a9c61e9cf96e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:47:46 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "2a15ad81-209c-49c6-9bca-b9ec9f711ef2" + ], + "x-ms-correlation-request-id": [ + "2a15ad81-209c-49c6-9bca-b9ec9f711ef2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174802Z:2a15ad81-209c-49c6-9bca-b9ec9f711ef2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:48:01 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "ed805d9a-961b-4c1e-84ee-e4ce1c290f12" + ], + "x-ms-correlation-request-id": [ + "ed805d9a-961b-4c1e-84ee-e4ce1c290f12" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174817Z:ed805d9a-961b-4c1e-84ee-e4ce1c290f12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:48:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "79278579-e3d9-4edc-ba9d-bf34db08087a" + ], + "x-ms-correlation-request-id": [ + "79278579-e3d9-4edc-ba9d-bf34db08087a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174832Z:79278579-e3d9-4edc-ba9d-bf34db08087a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:48:32 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "86c1e2e0-e414-40b0-a273-33ed1307f620" + ], + "x-ms-correlation-request-id": [ + "86c1e2e0-e414-40b0-a273-33ed1307f620" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174847Z:86c1e2e0-e414-40b0-a273-33ed1307f620" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:48:46 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "ae1bba71-bbf0-4447-bfc2-9632da982e62" + ], + "x-ms-correlation-request-id": [ + "ae1bba71-bbf0-4447-bfc2-9632da982e62" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174902Z:ae1bba71-bbf0-4447-bfc2-9632da982e62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:49:01 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "af873773-abd8-48bf-a9df-16d974fad593" + ], + "x-ms-correlation-request-id": [ + "af873773-abd8-48bf-a9df-16d974fad593" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174917Z:af873773-abd8-48bf-a9df-16d974fad593" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:49:16 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "5ce53356-7640-4570-a558-4a75ab808d0f" + ], + "x-ms-correlation-request-id": [ + "5ce53356-7640-4570-a558-4a75ab808d0f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174932Z:5ce53356-7640-4570-a558-4a75ab808d0f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:49:31 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "5c45739c-bf1a-4b05-8880-a91e6bd4d0b0" + ], + "x-ms-correlation-request-id": [ + "5c45739c-bf1a-4b05-8880-a91e6bd4d0b0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T174947Z:5c45739c-bf1a-4b05-8880-a91e6bd4d0b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:49:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "53366389-a1cf-47ec-93c9-44657ecb3f99" + ], + "x-ms-correlation-request-id": [ + "53366389-a1cf-47ec-93c9-44657ecb3f99" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175002Z:53366389-a1cf-47ec-93c9-44657ecb3f99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:50:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "bdcdb1ff-bea1-4d06-8a4d-caaeeaa772ac" + ], + "x-ms-correlation-request-id": [ + "bdcdb1ff-bea1-4d06-8a4d-caaeeaa772ac" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175017Z:bdcdb1ff-bea1-4d06-8a4d-caaeeaa772ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:50:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "afbe46e0-e0fc-4558-b8d9-e0b040e4c010" + ], + "x-ms-correlation-request-id": [ + "afbe46e0-e0fc-4558-b8d9-e0b040e4c010" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175032Z:afbe46e0-e0fc-4558-b8d9-e0b040e4c010" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:50:31 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "0760fbb3-87e1-4a94-9b60-32060909f93c" + ], + "x-ms-correlation-request-id": [ + "0760fbb3-87e1-4a94-9b60-32060909f93c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175047Z:0760fbb3-87e1-4a94-9b60-32060909f93c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:50:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "d9decbc1-ea90-4535-a54a-bb58a5cbcf6e" + ], + "x-ms-correlation-request-id": [ + "d9decbc1-ea90-4535-a54a-bb58a5cbcf6e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175102Z:d9decbc1-ea90-4535-a54a-bb58a5cbcf6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:51:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "e223b34d-d964-44ee-aaa5-2d7ff86cdd9c" + ], + "x-ms-correlation-request-id": [ + "e223b34d-d964-44ee-aaa5-2d7ff86cdd9c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175117Z:e223b34d-d964-44ee-aaa5-2d7ff86cdd9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:51:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "99813fe0-cff0-40a7-bdaa-3e51290f294b" + ], + "x-ms-correlation-request-id": [ + "99813fe0-cff0-40a7-bdaa-3e51290f294b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175132Z:99813fe0-cff0-40a7-bdaa-3e51290f294b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:51:32 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "b35edf4f-43eb-47d9-bf32-a5a84653ff6b" + ], + "x-ms-correlation-request-id": [ + "b35edf4f-43eb-47d9-bf32-a5a84653ff6b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175147Z:b35edf4f-43eb-47d9-bf32-a5a84653ff6b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:51:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "97429079-bda9-4762-8a8b-7ca1b5f9b370" + ], + "x-ms-correlation-request-id": [ + "97429079-bda9-4762-8a8b-7ca1b5f9b370" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175202Z:97429079-bda9-4762-8a8b-7ca1b5f9b370" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:52:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "8543108c-cde7-4fd8-a754-2b3a8fc3ee29" + ], + "x-ms-correlation-request-id": [ + "8543108c-cde7-4fd8-a754-2b3a8fc3ee29" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175218Z:8543108c-cde7-4fd8-a754-2b3a8fc3ee29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:52:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "e91cc2d2-ae98-4159-8aea-d47224658c99" + ], + "x-ms-correlation-request-id": [ + "e91cc2d2-ae98-4159-8aea-d47224658c99" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175233Z:e91cc2d2-ae98-4159-8aea-d47224658c99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:52:32 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "b7d22f87-74f2-4998-b786-ac614820149e" + ], + "x-ms-correlation-request-id": [ + "b7d22f87-74f2-4998-b786-ac614820149e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175248Z:b7d22f87-74f2-4998-b786-ac614820149e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:52:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "4f85f7f9-8deb-431e-a9d9-227a2997df94" + ], + "x-ms-correlation-request-id": [ + "4f85f7f9-8deb-431e-a9d9-227a2997df94" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175303Z:4f85f7f9-8deb-431e-a9d9-227a2997df94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:53:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "bf36daa0-9d45-446e-8b35-1109a4732fe9" + ], + "x-ms-correlation-request-id": [ + "bf36daa0-9d45-446e-8b35-1109a4732fe9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175318Z:bf36daa0-9d45-446e-8b35-1109a4732fe9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:53:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "8e1cfdad-8989-4e58-91b0-993a56a453e3" + ], + "x-ms-correlation-request-id": [ + "8e1cfdad-8989-4e58-91b0-993a56a453e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175333Z:8e1cfdad-8989-4e58-91b0-993a56a453e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:53:32 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-request-id": [ + "d180a979-2ba2-46ca-8f44-7e7572bbf11f" + ], + "x-ms-correlation-request-id": [ + "d180a979-2ba2-46ca-8f44-7e7572bbf11f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175348Z:d180a979-2ba2-46ca-8f44-7e7572bbf11f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:53:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-request-id": [ + "a423a5e8-bc83-4d92-afac-f0416a2054c7" + ], + "x-ms-correlation-request-id": [ + "a423a5e8-bc83-4d92-afac-f0416a2054c7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175403Z:a423a5e8-bc83-4d92-afac-f0416a2054c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:54:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-request-id": [ + "e063a4b7-e4c3-4eab-ab9d-153539bdedac" + ], + "x-ms-correlation-request-id": [ + "e063a4b7-e4c3-4eab-ab9d-153539bdedac" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175418Z:e063a4b7-e4c3-4eab-ab9d-153539bdedac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:54:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-request-id": [ + "ece65a03-8bfd-49f1-8eb9-d5948835c7ab" + ], + "x-ms-correlation-request-id": [ + "ece65a03-8bfd-49f1-8eb9-d5948835c7ab" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175433Z:ece65a03-8bfd-49f1-8eb9-d5948835c7ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:54:32 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-request-id": [ + "11362c01-9607-4980-af4f-e0854a8512bd" + ], + "x-ms-correlation-request-id": [ + "11362c01-9607-4980-af4f-e0854a8512bd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175448Z:11362c01-9607-4980-af4f-e0854a8512bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:54:48 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-request-id": [ + "99680d61-4dbc-4898-97c2-399adbf19848" + ], + "x-ms-correlation-request-id": [ + "99680d61-4dbc-4898-97c2-399adbf19848" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175503Z:99680d61-4dbc-4898-97c2-399adbf19848" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:55:03 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-request-id": [ + "855c0569-2c66-40d0-8bba-f7064f4e2afa" + ], + "x-ms-correlation-request-id": [ + "855c0569-2c66-40d0-8bba-f7064f4e2afa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175518Z:855c0569-2c66-40d0-8bba-f7064f4e2afa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:55:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-request-id": [ + "eea0fe11-4c04-4dbd-9624-aa8e4fefa987" + ], + "x-ms-correlation-request-id": [ + "eea0fe11-4c04-4dbd-9624-aa8e4fefa987" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190812T175518Z:eea0fe11-4c04-4dbd-9624-aa8e4fefa987" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 12 Aug 2019 17:55:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "0009fc4d-e310-4e40-8e63-c48a23e9cdc1" + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestListByGroupSqlVirtualMachine.json b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestListByGroupSqlVirtualMachine.json new file mode 100644 index 000000000000..4647d9081210 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SessionRecords/SqlVirtualMachine.Tests.SqlVirtualMachinesScenarioTest/TestListByGroupSqlVirtualMachine.json @@ -0,0 +1,5380 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d76b8ac9-ad5f-4e5a-8d05-ab072c643f30" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "4f889970-ef13-42cc-8243-b1dbbe373174" + ], + "x-ms-correlation-request-id": [ + "4f889970-ef13-42cc-8243-b1dbbe373174" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041801Z:4f889970-ef13-42cc-8243-b1dbbe373174" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:01 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000\",\r\n \"name\": \"sqlvmcrudtest-5000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "55b9da77-2fc1-40cd-b7b9-20af30228d68" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "8b5875b1-83cd-4176-93cc-dca1388d31a6" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/8b5875b1-83cd-4176-93cc-dca1388d31a6?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "2702381b-05a7-4b67-af10-9c92bccac126" + ], + "x-ms-arm-service-request-id": [ + "1d2b5c4e-c0d7-43ea-8482-2d23b923bf91" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041802Z:2702381b-05a7-4b67-af10-9c92bccac126" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:02 GMT" + ], + "Content-Length": [ + "7458" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"27c285a7-1f11-4150-8fe4-e8bfc6d5c9b8\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"8bb48f68-1ed3-4cdd-860f-6753451ad6b3\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/8b5875b1-83cd-4176-93cc-dca1388d31a6?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvOGI1ODc1YjEtODNjZC00MTc2LTkzY2MtZGNhMTM4OGQzMWE2P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d15cd7e6-78b9-4cd6-9a34-4a07cf856c46" + ], + "x-ms-correlation-request-id": [ + "52e11944-1929-43ff-8864-f19006083ede" + ], + "x-ms-arm-service-request-id": [ + "c4eefd9e-bbcd-413e-a9a1-502cacabc612" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041805Z:52e11944-1929-43ff-8864-f19006083ede" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:05 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"03f794f1-0887-46e4-a5d2-00c9dede092c\"" + ], + "x-ms-request-id": [ + "c52461ce-eccb-4e13-8390-1b124b234d91" + ], + "x-ms-correlation-request-id": [ + "8eed5239-c4e2-4b09-8d82-50ba0df461b7" + ], + "x-ms-arm-service-request-id": [ + "225fc6ef-06e7-4053-bed5-fe5956cc57b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041805Z:8eed5239-c4e2-4b09-8d82-50ba0df461b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:05 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"27c285a7-1f11-4150-8fe4-e8bfc6d5c9b8\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtMj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "357cab5a-a1ca-470f-9247-bd773cc828e3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"03f794f1-0887-46e4-a5d2-00c9dede092c\"" + ], + "x-ms-request-id": [ + "acf86013-15f1-4668-b619-c0b6cccb50e8" + ], + "x-ms-correlation-request-id": [ + "361173b8-6124-494b-ad01-a0bd5fbf9401" + ], + "x-ms-arm-service-request-id": [ + "ee8a1b83-48eb-45bf-b11f-74821ee7fb40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041805Z:361173b8-6124-494b-ad01-a0bd5fbf9401" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:05 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-2\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"27c285a7-1f11-4150-8fe4-e8bfc6d5c9b8\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"27c285a7-1f11-4150-8fe4-e8bfc6d5c9b8\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"03f794f1-0887-46e4-a5d2-00c9dede092c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\",\r\n \"location\": \"westus\"\r\n }\r\n },\r\n \"name\": \"test-1\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b46898d-f441-4644-a43c-0639694d5147" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "8740" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "ee60fe33-9fee-4f21-bc22-a3acc7794fa3" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/ee60fe33-9fee-4f21-bc22-a3acc7794fa3?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "058c25a6-ed17-404b-9536-d1baffa17ed8" + ], + "x-ms-arm-service-request-id": [ + "9737dd92-87ba-423a-b4bb-5948cd16c8ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041806Z:058c25a6-ed17-404b-9536-d1baffa17ed8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:06 GMT" + ], + "Content-Length": [ + "1355" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"b734252f-eb51-4864-a240-acabd090a2cf\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"4d163082-5219-474d-bbe1-fdbffd44e0cd\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\",\r\n \"etag\": \"W/\\\"b734252f-eb51-4864-a240-acabd090a2cf\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/ee60fe33-9fee-4f21-bc22-a3acc7794fa3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvZWU2MGZlMzMtOWZlZS00ZjIxLWJjMjItYTNhY2M3Nzk0ZmEzP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "40b14eb5-89d1-4473-979f-1ff27a57d507" + ], + "x-ms-correlation-request-id": [ + "53a9f8c2-6408-4035-b4bd-32c6817e7d8b" + ], + "x-ms-arm-service-request-id": [ + "7a545b3a-1edf-4577-96a1-bbb42a51a66e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041809Z:53a9f8c2-6408-4035-b4bd-32c6817e7d8b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:09 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"11b9d98b-c81a-48ec-9aac-899efc92356c\"" + ], + "x-ms-request-id": [ + "106da61d-5a02-4a1c-9ff5-5d0bb404f02a" + ], + "x-ms-correlation-request-id": [ + "506f2301-5986-4c78-8429-2646cf578889" + ], + "x-ms-arm-service-request-id": [ + "2712bd57-b089-419a-a693-dd44224dbc80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041809Z:506f2301-5986-4c78-8429-2646cf578889" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:09 GMT" + ], + "Content-Length": [ + "1357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"11b9d98b-c81a-48ec-9aac-899efc92356c\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"4d163082-5219-474d-bbe1-fdbffd44e0cd\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\",\r\n \"etag\": \"W/\\\"11b9d98b-c81a-48ec-9aac-899efc92356c\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3Rlc3QtMz9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f48bcf77-d44b-4b3f-bd0f-aa6bf1b2023b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"11b9d98b-c81a-48ec-9aac-899efc92356c\"" + ], + "x-ms-request-id": [ + "f4f5e865-9fcb-47bc-bc3a-0ed7466ecdd6" + ], + "x-ms-correlation-request-id": [ + "ba8314ea-2e7b-4891-a1ee-21cc4f64f175" + ], + "x-ms-arm-service-request-id": [ + "ed10610b-ea2a-457b-b1b1-d2a87603b2c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041809Z:ba8314ea-2e7b-4891-a1ee-21cc4f64f175" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:09 GMT" + ], + "Content-Length": [ + "1357" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-3\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3\",\r\n \"etag\": \"W/\\\"11b9d98b-c81a-48ec-9aac-899efc92356c\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"4d163082-5219-474d-bbe1-fdbffd44e0cd\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"test-1\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\",\r\n \"etag\": \"W/\\\"11b9d98b-c81a-48ec-9aac-899efc92356c\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"delegations\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC00P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23cf7604-5500-444f-ba50-f63de37fe6fc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "200" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "412b41cf-aecb-45fa-bc36-87c17b7684b1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/412b41cf-aecb-45fa-bc36-87c17b7684b1?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "136c2f4d-e0e2-4f7d-9801-28a93a87f7e6" + ], + "x-ms-arm-service-request-id": [ + "da2d4aaf-9934-4024-bd0f-13c9dd3f950a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041810Z:136c2f4d-e0e2-4f7d-9801-28a93a87f7e6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:10 GMT" + ], + "Content-Length": [ + "783" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-4\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"etag\": \"W/\\\"2b8229a1-65bd-42d4-b85c-04ff47c37f7e\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"17c0efc9-a5d8-4131-a9a6-63f58900349f\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/412b41cf-aecb-45fa-bc36-87c17b7684b1?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvNDEyYjQxY2YtYWVjYi00NWZhLWJjMzYtODdjMTdiNzY4NGIxP2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5cc0eb8a-ad01-4f03-befe-b02cdafe54d0" + ], + "x-ms-correlation-request-id": [ + "eee4e2c0-ab84-4336-9da2-b2c573fb3af7" + ], + "x-ms-arm-service-request-id": [ + "1e5bab16-be22-4864-b5ea-ccea8a54a42a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041812Z:eee4e2c0-ab84-4336-9da2-b2c573fb3af7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:11 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC00P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"30426dfd-3d72-444d-b5fe-d66f663e38fd\"" + ], + "x-ms-request-id": [ + "ad10738a-8a0d-48cc-b267-471a5c79fd12" + ], + "x-ms-correlation-request-id": [ + "aef1fd57-15f7-47c5-abcd-31944fdc5e54" + ], + "x-ms-arm-service-request-id": [ + "b2dc9378-ee9b-4ae7-9953-0552b6324b41" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041812Z:aef1fd57-15f7-47c5-abcd-31944fdc5e54" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:11 GMT" + ], + "Content-Length": [ + "784" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-4\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"etag\": \"W/\\\"30426dfd-3d72-444d-b5fe-d66f663e38fd\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"17c0efc9-a5d8-4131-a9a6-63f58900349f\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBBZGRyZXNzZXMvdGVzdC00P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "91584b5f-d35a-4029-a738-ced753120cd1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"30426dfd-3d72-444d-b5fe-d66f663e38fd\"" + ], + "x-ms-request-id": [ + "92a1f608-db2d-4f0f-92fb-27f241fa468b" + ], + "x-ms-correlation-request-id": [ + "eb70c5be-e83f-4369-87d9-df7a23de1615" + ], + "x-ms-arm-service-request-id": [ + "41d4b5e6-96c9-468b-a3bc-8c3baa4c8496" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041812Z:eb70c5be-e83f-4369-87d9-df7a23de1615" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:11 GMT" + ], + "Content-Length": [ + "784" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-4\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"etag\": \"W/\\\"30426dfd-3d72-444d-b5fe-d66f663e38fd\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"17c0efc9-a5d8-4131-a9a6-63f58900349f\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\"\r\n },\r\n \"name\": \"default-allow-rdp\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "49e5647b-52d3-476b-a479-a9ad47eadb1e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "460" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "ce478ba0-e50b-4458-a41a-e44baf74d5d5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/ce478ba0-e50b-4458-a41a-e44baf74d5d5?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "c7ceee3b-a37e-4fab-896f-197e43345f32" + ], + "x-ms-arm-service-request-id": [ + "5281bf67-8c38-419d-9889-6014013cd95e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041812Z:c7ceee3b-a37e-4fab-896f-197e43345f32" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:12 GMT" + ], + "Content-Length": [ + "7458" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-6\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"dbb3e369-a862-4aec-ba4b-eb575b1f8ead\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"a1efb48d-b058-4b39-a8eb-f6cb18ddc140\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/ce478ba0-e50b-4458-a41a-e44baf74d5d5?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvY2U0NzhiYTAtZTUwYi00NDU4LWE0MWEtZTQ0YmFmNzRkNWQ1P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "78f6ca1b-02e7-4a07-98a3-426aa0d237ee" + ], + "x-ms-correlation-request-id": [ + "1b70a03b-9941-4bd4-a5e4-5f239ed4e183" + ], + "x-ms-arm-service-request-id": [ + "1b47c758-1f0b-421b-b042-6b57052b894a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041815Z:1b70a03b-9941-4bd4-a5e4-5f239ed4e183" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:15 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"207062c5-4712-44ba-a5d0-8b8573911980\"" + ], + "x-ms-request-id": [ + "45b88a33-0d63-48a5-8ab9-a1591c546c66" + ], + "x-ms-correlation-request-id": [ + "b2ba9fbe-cc31-4d4a-94fa-49895b4c00b2" + ], + "x-ms-arm-service-request-id": [ + "0b35c64a-aa8a-45e5-a751-acc10a500e1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041815Z:b2ba9fbe-cc31-4d4a-94fa-49895b4c00b2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:15 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-6\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"dbb3e369-a862-4aec-ba4b-eb575b1f8ead\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya1NlY3VyaXR5R3JvdXBzL3Rlc3QtNj9hcGktdmVyc2lvbj0yMDE4LTA3LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b31096f7-de7c-4b3b-98cd-7fa29a6165f4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"207062c5-4712-44ba-a5d0-8b8573911980\"" + ], + "x-ms-request-id": [ + "464d3e8b-dc12-4da5-9de9-cc80717fa983" + ], + "x-ms-correlation-request-id": [ + "7b3a156f-90f0-4ded-a516-3072b434407c" + ], + "x-ms-arm-service-request-id": [ + "912953c9-54de-47ac-9fc4-321736c443db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041815Z:7b3a156f-90f0-4ded-a516-3072b434407c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:15 GMT" + ], + "Content-Length": [ + "7466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-6\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"dbb3e369-a862-4aec-ba4b-eb575b1f8ead\",\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-rdp\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"networkSecurityGroup\": {\r\n \"properties\": {\r\n \"securityRules\": [\r\n {\r\n \"properties\": {\r\n \"protocol\": \"TCP\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"3389\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 1000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"default-allow-rdp\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/securityRules/default-allow-rdp\"\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow inbound traffic from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Inbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllInBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllInBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowVnetOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowVnetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"AllowInternetOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/AllowInternetOutBound\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefix\": \"*\",\r\n \"destinationAddressPrefixes\": [],\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\": \"Outbound\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"DenyAllOutBound\",\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6/defaultSecurityRules/DenyAllOutBound\"\r\n }\r\n ],\r\n \"resourceGuid\": \"dbb3e369-a862-4aec-ba4b-eb575b1f8ead\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"207062c5-4712-44ba-a5d0-8b8573911980\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\",\r\n \"location\": \"westus\"\r\n },\r\n \"ipConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-2\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"name\": \"test-1\",\r\n \"etag\": \"W/\\\"11b9d98b-c81a-48ec-9aac-899efc92356c\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"publicIPAddress\": {\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"test-5\",\r\n \"fqdn\": \"test-5.westus.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"idleTimeoutInMinutes\": 4,\r\n \"resourceGuid\": \"17c0efc9-a5d8-4131-a9a6-63f58900349f\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"etag\": \"W/\\\"30426dfd-3d72-444d-b5fe-d66f663e38fd\\\"\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n }\r\n }\r\n },\r\n \"name\": \"test-7\"\r\n }\r\n ]\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cc85052d-8918-440f-ac8a-8fe6a25e3731" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "9327" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "eeb579b5-5d8f-467f-a9ef-a6736ec6d432" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Network/locations/westus/operations/eeb579b5-5d8f-467f-a9ef-a6736ec6d432?api-version=2018-07-01" + ], + "x-ms-correlation-request-id": [ + "544a374a-31ff-4ca4-9cd3-9555e983438c" + ], + "x-ms-arm-service-request-id": [ + "349bb69c-451b-4b02-923f-9d13a3422910" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041816Z:544a374a-31ff-4ca4-9cd3-9555e983438c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:15 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"9cf862ec-7d57-4c87-a4c7-49f3d4809b5c\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"qiybmtizkjgupo5b5w550rhazf.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\"" + ], + "x-ms-request-id": [ + "075c2450-a7e4-4dae-bb14-85aff4c8542e" + ], + "x-ms-correlation-request-id": [ + "4249558e-4bd5-4470-8742-5c0411cb6765" + ], + "x-ms-arm-service-request-id": [ + "bf702b54-5fc3-4387-864e-c0ca8f99105c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041816Z:4249558e-4bd5-4470-8742-5c0411cb6765" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:16 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"9cf862ec-7d57-4c87-a4c7-49f3d4809b5c\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"qiybmtizkjgupo5b5w550rhazf.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8?api-version=2018-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmV0d29ya0ludGVyZmFjZXMvdGVzdC04P2FwaS12ZXJzaW9uPTIwMTgtMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "810d0fe5-a48b-46cd-9864-d96220e39b50" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/19.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\"" + ], + "x-ms-request-id": [ + "8db4b809-7784-4f8a-9b03-a8ddaa12b634" + ], + "x-ms-correlation-request-id": [ + "c7acea64-07cb-4de8-b766-cbc6e7890029" + ], + "x-ms-arm-service-request-id": [ + "599d0769-efe0-42a5-ae74-ebeb64c2fff9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041816Z:c7acea64-07cb-4de8-b766-cbc6e7890029" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:16 GMT" + ], + "Content-Length": [ + "1942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-8\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\",\r\n \"etag\": \"W/\\\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"9cf862ec-7d57-4c87-a4c7-49f3d4809b5c\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"test-7\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8/ipConfigurations/test-7\",\r\n \"etag\": \"W/\\\"cba1ef68-0c4b-447b-b55a-18516a1a35cf\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/publicIPAddresses/test-4\"\r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/virtualNetworks/test-3/subnets/test-1\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"qiybmtizkjgupo5b5w550rhazf.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkSecurityGroups/test-6\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/SQL2017-WS2016/skus/Enterprise/versions?$top=1&api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL3B1Ymxpc2hlcnMvTWljcm9zb2Z0U1FMU2VydmVyL2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMvU1FMMjAxNy1XUzIwMTYvc2t1cy9FbnRlcnByaXNlL3ZlcnNpb25zPyR0b3A9MSZhcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bca972c2-e1dc-4163-ba5c-01c415b315d6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "cf097b76-b9c6-4870-8191-a8cdd13d756c_132037460644438088" + ], + "x-ms-request-id": [ + "73de44fc-aa11-46a4-abc8-21d876ffe2fc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "f5d7ea33-950b-4ae8-9c3d-c2db0d649f4e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041816Z:f5d7ea33-950b-4ae8-9c3d-c2db0d649f4e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:16 GMT" + ], + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"14.1.190220\",\r\n \"id\": \"/Subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftSQLServer/ArtifactTypes/VMImage/Offers/SQL2017-WS2016/Skus/Enterprise/Versions/14.1.190220\"\r\n }\r\n]", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOT9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"FromImage\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"createOption\": \"Empty\",\r\n \"diskSizeGB\": 30,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"adminPassword\": \"sql@zure123!\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "75d170d6-44a8-48bb-9221-3140687cf03f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1332" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20be8350-5bbf-4c7b-b848-5a44aaef364c?api-version=2017-12-01" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1198" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "20be8350-5bbf-4c7b-b848-5a44aaef364c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "f301f7ea-b101-4076-a88a-5a5fe1ebebaf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041817Z:f301f7ea-b101-4076-a88a-5a5fe1ebebaf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:17 GMT" + ], + "Content-Length": [ + "1638" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-9\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"2b30b1fe-f252-4205-a4d5-544394b4b4e9\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20be8350-5bbf-4c7b-b848-5a44aaef364c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjBiZTgzNTAtNWJiZi00YzdiLWI4NDgtNWE0NGFhZWYzNjRjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "70" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29908" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "99d61a6d-4c9b-4ad4-8546-7a07abd9c9ea" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "2f3920c0-dbe2-4a60-ab10-4b6638776f4d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041827Z:2f3920c0-dbe2-4a60-ab10-4b6638776f4d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:18:27 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:18:17.2609951-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"20be8350-5bbf-4c7b-b848-5a44aaef364c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20be8350-5bbf-4c7b-b848-5a44aaef364c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjBiZTgzNTAtNWJiZi00YzdiLWI4NDgtNWE0NGFhZWYzNjRjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29907" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "eca4fbbb-3061-4ccc-9f57-9d4811d12b8a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "e1872d16-1227-407c-bd00-7e2f9bcfdac8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T041937Z:e1872d16-1227-407c-bd00-7e2f9bcfdac8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:19:37 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:18:17.2609951-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"20be8350-5bbf-4c7b-b848-5a44aaef364c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20be8350-5bbf-4c7b-b848-5a44aaef364c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjBiZTgzNTAtNWJiZi00YzdiLWI4NDgtNWE0NGFhZWYzNjRjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29927" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "c0ff0352-949a-4b26-baed-6258ad217efc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "dbf3ff97-9860-4676-8595-9ab7299481b2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042047Z:dbf3ff97-9860-4676-8595-9ab7299481b2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:20:47 GMT" + ], + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:18:17.2609951-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"20be8350-5bbf-4c7b-b848-5a44aaef364c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.Compute/locations/westus/operations/20be8350-5bbf-4c7b-b848-5a44aaef364c?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMjBiZTgzNTAtNWJiZi00YzdiLWI4NDgtNWE0NGFhZWYzNjRjP2FwaS12ZXJzaW9uPTIwMTctMTItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29920" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "8d14bc3f-98a2-4e36-911e-38920e5c091b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "d58e17fa-3997-4aef-9087-6dc6e827c500" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042158Z:d58e17fa-3997-4aef-9087-6dc6e827c500" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:21:57 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-08-08T21:18:17.2609951-07:00\",\r\n \"endTime\": \"2019-08-08T21:21:57.3717733-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"20be8350-5bbf-4c7b-b848-5a44aaef364c\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9?api-version=2017-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL3Rlc3QtOT9hcGktdmVyc2lvbj0yMDE3LTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/18.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31969" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "6e0b5862-b605-4ef5-93c4-1fba4c1beb01" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "8c349df6-4fb2-4e31-896c-316cd17ea6dc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042158Z:8c349df6-4fb2-4e31-896c-316cd17ea6dc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:21:57 GMT" + ], + "Content-Length": [ + "2181" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-9\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"vmId\": \"2b30b1fe-f252-4205-a4d5-544394b4b4e9\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS13-2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftSQLServer\",\r\n \"offer\": \"SQL2017-WS2016\",\r\n \"sku\": \"Enterprise\",\r\n \"version\": \"14.1.190220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"test-9_OsDisk_1_69aef229b6c341408a34f5cbdd20f306\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-9_OsDisk_1_69aef229b6c341408a34f5cbdd20f306\"\r\n },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"test-9_disk2_60ecc843ab6943b0809a8f9e5356975d\",\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"writeAcceleratorEnabled\": false,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/disks/test-9_disk2_60ecc843ab6943b0809a8f9e5356975d\"\r\n },\r\n \"diskSizeGB\": 30\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-9\",\r\n \"adminUsername\": \"myvmadmin\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Network/networkInterfaces/test-8\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\",\r\n \"autoPatchingSettings\": {\r\n \"enable\": false\r\n },\r\n \"serverConfigurationsManagementSettings\": {\r\n \"sqlConnectivityUpdateSettings\": {\r\n \"connectivityType\": \"Private\",\r\n \"port\": 1433,\r\n \"sqlAuthUpdateUserName\": \"sqllogin\",\r\n \"sqlAuthUpdatePassword\": \"sql@zure123!\"\r\n },\r\n \"sqlWorkloadTypeUpdateSettings\": {\r\n \"sqlWorkloadType\": \"OLTP\"\r\n },\r\n \"sqlStorageUpdateSettings\": {\r\n \"diskCount\": 1,\r\n \"startingDeviceId\": 2,\r\n \"diskConfigurationType\": \"NEW\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d7d8f98b-f930-4fce-959d-b60e0a4d72d7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "925" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "9dae9d22-5f0a-4a53-a167-8410c627136c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "ca11639f-911f-4fa0-93dc-34968165cfa9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042200Z:ca11639f-911f-4fa0-93dc-34968165cfa9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:21:59 GMT" + ], + "Content-Length": [ + "543" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Unknown\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9\",\r\n \"name\": \"test-9\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "673dac56-09aa-434a-839d-c64e665a96a7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "c02ac984-d2f2-4d63-b1f2-65536052c39e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042215Z:c02ac984-d2f2-4d63-b1f2-65536052c39e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:22:14 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "84c2233c-755c-448c-b9bd-15b1926902b7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "b614cf44-6653-48e9-8462-688a68aa0d34" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042230Z:b614cf44-6653-48e9-8462-688a68aa0d34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:22:30 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1f6049c3-81f5-47f7-b616-aec32ab196c5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "f6a7c4b3-5840-441c-b60c-c59764d789e4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042245Z:f6a7c4b3-5840-441c-b60c-c59764d789e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:22:45 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "85e72728-2d7f-4e91-8a8c-248e401b3da9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "b7e2ddea-64fd-4fe9-acc2-188f3b03051e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042300Z:b7e2ddea-64fd-4fe9-acc2-188f3b03051e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:23:00 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "6761083f-0f2f-4acd-8b37-3d4e702b7ac1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "53729714-b539-40a0-906e-6d20a74e870d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042315Z:53729714-b539-40a0-906e-6d20a74e870d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:23:15 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "dbe4be2b-79c0-40a2-840b-1c66d7e11e1d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "155bff2f-9b15-465c-8605-c8d3536cca70" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042330Z:155bff2f-9b15-465c-8605-c8d3536cca70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:23:30 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7bd88bff-4404-466c-bc62-f48816a4acc5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "ec6af247-eeb4-48e5-9e7d-e58780686ed2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042345Z:ec6af247-eeb4-48e5-9e7d-e58780686ed2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:23:44 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2104196d-d827-45e5-ab73-cf14d0a6467f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "3ee4541e-50ea-4744-a33e-f8e26a7e4f8e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042400Z:3ee4541e-50ea-4744-a33e-f8e26a7e4f8e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:24:00 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "779a2ea9-ba15-43fc-9bc8-a06f3e074858" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "250339e4-33f4-49b2-a39f-86f75c458d62" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042415Z:250339e4-33f4-49b2-a39f-86f75c458d62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:24:15 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b778be7f-0fe8-410a-987e-a9c5d79ebefa" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "545ff244-1e4c-49a8-b182-c652c5f2f33e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042431Z:545ff244-1e4c-49a8-b182-c652c5f2f33e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:24:30 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0f8d1699-8580-4ac8-a984-09227a395c20" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "12306eb8-0f63-49c0-809e-c22b695534f2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042446Z:12306eb8-0f63-49c0-809e-c22b695534f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:24:45 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4134d66d-7427-4474-ab6d-509ab8a909a9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "17ec9e21-56f7-4386-9f4e-06b4bc985254" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042501Z:17ec9e21-56f7-4386-9f4e-06b4bc985254" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:25:00 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a4e1efd5-9d14-446d-81f4-7a290944ebe2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "7bb27c2f-5862-4f18-b57e-4b28fe2f20ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042516Z:7bb27c2f-5862-4f18-b57e-4b28fe2f20ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:25:15 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5eb1d4b8-ff20-4a9c-a70a-5c2b2ecf71b2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "d3bebf62-893a-4f74-985e-0d37f385c3e1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042531Z:d3bebf62-893a-4f74-985e-0d37f385c3e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:25:30 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "99fca41a-4318-4478-bb38-8388a8ccca1a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "810eb2a1-058c-48e1-9d16-a59233bfc9cc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042546Z:810eb2a1-058c-48e1-9d16-a59233bfc9cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:25:45 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7eedc39b-a371-4a93-87a4-8230587181a7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "6d040c69-910c-4ddd-9b3a-cbd48ce29803" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042601Z:6d040c69-910c-4ddd-9b3a-cbd48ce29803" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:26:00 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "4bd450b6-db90-4ea6-a205-38fc7655586b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "da795924-e2c1-4597-9f89-59bf07507c7a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042616Z:da795924-e2c1-4597-9f89-59bf07507c7a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:26:15 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "94679dc2-d2bc-480e-9e5b-b0b428c15ca0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "b027aac1-aa9c-4b3d-9893-4adeae542353" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042631Z:b027aac1-aa9c-4b3d-9893-4adeae542353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:26:31 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "fe2a4762-f6d3-434e-a9f3-868cced182e5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "24778961-4fa0-49f9-844a-7618ef548404" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042646Z:24778961-4fa0-49f9-844a-7618ef548404" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:26:46 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1ee4bb3b-a426-4bb7-8328-92c737911511" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "c71ff8b0-3dd6-49b4-a96a-bd42dbc764b7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042701Z:c71ff8b0-3dd6-49b4-a96a-bd42dbc764b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:27:00 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1c73d689-6cdf-45b6-bf34-5268f7e01ee0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "21c5b0b4-0cf0-464e-9cd3-99a735851380" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042716Z:21c5b0b4-0cf0-464e-9cd3-99a735851380" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:27:15 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e9cfddd9-e0c7-448a-a6d0-74a2ddac15cd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "237a2537-e319-45bb-9c1b-1129f761fbd6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042731Z:237a2537-e319-45bb-9c1b-1129f761fbd6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:27:31 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2bcb57ed-1e2e-43bf-8edb-115c76fa07a9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "a744fb76-702e-4699-b516-250ae58988e6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042746Z:a744fb76-702e-4699-b516-250ae58988e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:27:46 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "e660c422-6ccd-4c55-95a5-cf2375e76b49" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "85868d24-a1e9-4e20-95e4-468ddbdbd13b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042801Z:85868d24-a1e9-4e20-95e4-468ddbdbd13b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:28:01 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f2b182ec-36bb-4692-a92a-a4cbd6cb3e6f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "397fc5c0-44a2-444a-b4ba-58bc9e07f63f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042816Z:397fc5c0-44a2-444a-b4ba-58bc9e07f63f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:28:16 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "655157d0-4a38-4ad2-9953-87ef656fbec0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "76143996-214d-4f98-895e-ce6daaf400b8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042831Z:76143996-214d-4f98-895e-ce6daaf400b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:28:31 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1428f199-61f3-4858-a649-2fe8f7657790" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "a197e456-fc2f-4ffb-afcc-a3bd6d909aa0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042846Z:a197e456-fc2f-4ffb-afcc-a3bd6d909aa0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:28:46 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7f817133-9abe-4c77-987c-6ce51d90bda2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "43ea5dd6-8f5d-4c7e-95c4-84d2c9e08bfa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042902Z:43ea5dd6-8f5d-4c7e-95c4-84d2c9e08bfa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:29:01 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b35583c4-b4f0-44d7-acd8-c5eb82cf2942" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "5d863caf-fa4e-48b2-882b-3a1f49bf30f0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042917Z:5d863caf-fa4e-48b2-882b-3a1f49bf30f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:29:16 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "dedb03a5-cb80-4c0a-a26d-55f238ff8035" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "98cf539c-ec4a-4c3d-911b-bad19fe385cb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042932Z:98cf539c-ec4a-4c3d-911b-bad19fe385cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:29:31 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "0a650dfc-ee8c-4b27-be31-6c36df295fb2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "484403c6-fb68-4761-ac93-fbed9a53184e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T042947Z:484403c6-fb68-4761-ac93-fbed9a53184e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:29:46 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ff91ffff-f610-46d9-9e90-be3a9a5dab01" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "1badbd29-4829-4133-bc63-f661cfb557ee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043002Z:1badbd29-4829-4133-bc63-f661cfb557ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:30:01 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "1af8eab8-8c2a-4c24-bb04-fa2b7b9c7220" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "0ed1a9e5-dc8a-40d8-a10c-20eabf1965e0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043017Z:0ed1a9e5-dc8a-40d8-a10c-20eabf1965e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:30:17 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "71c2a093-6692-4189-901b-a095e46440b5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "d7ca1096-2615-482b-92c0-0aeca3ab7f27" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043032Z:d7ca1096-2615-482b-92c0-0aeca3ab7f27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:30:32 GMT" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/providers/Microsoft.SqlVirtualMachine/locations/westus/operationTypes/createsqlvirtualmachine/operationResults/ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsVmlydHVhbE1hY2hpbmUvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25UeXBlcy9jcmVhdGVzcWx2aXJ0dWFsbWFjaGluZS9vcGVyYXRpb25SZXN1bHRzL2VmN2I4ZmYxLWM1MGItNGEzYi04YzZjLTI2ODBlMTg5ZThiZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "7912b7d1-fb29-4c71-bf7f-83055332dae5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "a40388f8-65a2-446a-8f68-5909f072e25f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043047Z:a40388f8-65a2-446a-8f68-5909f072e25f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:30:47 GMT" + ], + "Content-Length": [ + "105" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ef7b8ff1-c50b-4a3b-8c6c-2680e189e8be\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-08-09T04:21:59.3Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcy90ZXN0LTk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8adba8d4-53d1-46c5-8afb-4818aec3adc6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "7d5da37a-0771-4881-86c2-0ab00daa748b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043047Z:7d5da37a-0771-4881-86c2-0ab00daa748b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:30:47 GMT" + ], + "Content-Length": [ + "576" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9\",\r\n \"name\": \"test-9\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlR3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbFZpcnR1YWxNYWNoaW5lL3NxbFZpcnR1YWxNYWNoaW5lcz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "824caf94-cae7-43bb-b6ba-14ddecfd7994" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.SqlVirtualMachine.SqlVirtualMachineManagementClient/1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5f52baba-2368-4d63-a562-42de6ec10ff4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "bea8278f-6d02-45e7-ab02-a778abdcd1dc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043048Z:bea8278f-6d02-45e7-ab02-a778abdcd1dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:30:47 GMT" + ], + "Content-Length": [ + "588" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"virtualMachineResourceId\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.Compute/virtualMachines/test-9\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"sqlImageOffer\": \"SQL2017-WS2016\",\r\n \"sqlServerLicenseType\": \"PAYG\",\r\n \"sqlManagement\": \"Full\",\r\n \"sqlImageSku\": \"Enterprise\"\r\n },\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourceGroups/sqlvmcrudtest-5000/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/test-9\",\r\n \"name\": \"test-9\",\r\n \"type\": \"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/resourcegroups/sqlvmcrudtest-5000?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL3Jlc291cmNlZ3JvdXBzL3NxbHZtY3J1ZHRlc3QtNTAwMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "af546c32-15cb-49e0-b122-7136b0eeb76a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "dcca98fc-f5d2-4851-b51d-323b03f75e59" + ], + "x-ms-correlation-request-id": [ + "dcca98fc-f5d2-4851-b51d-323b03f75e59" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043048Z:dcca98fc-f5d2-4851-b51d-323b03f75e59" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:30:48 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "870ad116-71ff-4cae-b163-951103f5e298" + ], + "x-ms-correlation-request-id": [ + "870ad116-71ff-4cae-b163-951103f5e298" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043103Z:870ad116-71ff-4cae-b163-951103f5e298" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:31:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "7f57b134-e2f0-4f81-aa90-65c68b31904d" + ], + "x-ms-correlation-request-id": [ + "7f57b134-e2f0-4f81-aa90-65c68b31904d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043205Z:7f57b134-e2f0-4f81-aa90-65c68b31904d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:32:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "7fbaa704-7cb9-422b-b9f7-b56012cd8981" + ], + "x-ms-correlation-request-id": [ + "7fbaa704-7cb9-422b-b9f7-b56012cd8981" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043220Z:7fbaa704-7cb9-422b-b9f7-b56012cd8981" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:32:19 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "84b93f14-2fcb-43a2-a841-8dddeb7633fd" + ], + "x-ms-correlation-request-id": [ + "84b93f14-2fcb-43a2-a841-8dddeb7633fd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043235Z:84b93f14-2fcb-43a2-a841-8dddeb7633fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:32:35 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "23f567b5-e6d7-4018-8889-b96249509af6" + ], + "x-ms-correlation-request-id": [ + "23f567b5-e6d7-4018-8889-b96249509af6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043250Z:23f567b5-e6d7-4018-8889-b96249509af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:32:50 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "5eabfbac-809c-413d-906e-3e6745b3ffaf" + ], + "x-ms-correlation-request-id": [ + "5eabfbac-809c-413d-906e-3e6745b3ffaf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043305Z:5eabfbac-809c-413d-906e-3e6745b3ffaf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:33:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "00f49094-2b96-434e-9ae2-906df4210bbf" + ], + "x-ms-correlation-request-id": [ + "00f49094-2b96-434e-9ae2-906df4210bbf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043321Z:00f49094-2b96-434e-9ae2-906df4210bbf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:33:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "d266d01f-e13f-469d-aaf3-61b5f4fee8ac" + ], + "x-ms-correlation-request-id": [ + "d266d01f-e13f-469d-aaf3-61b5f4fee8ac" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043336Z:d266d01f-e13f-469d-aaf3-61b5f4fee8ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:33:35 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "a16c01ab-afb7-4482-a0c6-24e97fb5cccf" + ], + "x-ms-correlation-request-id": [ + "a16c01ab-afb7-4482-a0c6-24e97fb5cccf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043351Z:a16c01ab-afb7-4482-a0c6-24e97fb5cccf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:33:50 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "9afb2da9-bec5-4ac0-97f2-0b5e433623f1" + ], + "x-ms-correlation-request-id": [ + "9afb2da9-bec5-4ac0-97f2-0b5e433623f1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043406Z:9afb2da9-bec5-4ac0-97f2-0b5e433623f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:34:06 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "f8c3cee9-3b9d-4b76-bf28-1cbc29fbb711" + ], + "x-ms-correlation-request-id": [ + "f8c3cee9-3b9d-4b76-bf28-1cbc29fbb711" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043421Z:f8c3cee9-3b9d-4b76-bf28-1cbc29fbb711" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:34:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "bfd2ee13-c2b1-4b6e-9f90-8362d4ed461d" + ], + "x-ms-correlation-request-id": [ + "bfd2ee13-c2b1-4b6e-9f90-8362d4ed461d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043436Z:bfd2ee13-c2b1-4b6e-9f90-8362d4ed461d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:34:35 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "1d014095-d4eb-476d-ada6-c5526ad26575" + ], + "x-ms-correlation-request-id": [ + "1d014095-d4eb-476d-ada6-c5526ad26575" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043451Z:1d014095-d4eb-476d-ada6-c5526ad26575" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:34:50 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "a06dd136-e0c2-4e84-a07b-6e4186d66262" + ], + "x-ms-correlation-request-id": [ + "a06dd136-e0c2-4e84-a07b-6e4186d66262" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043506Z:a06dd136-e0c2-4e84-a07b-6e4186d66262" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:35:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "170ec5b3-4150-4f11-b564-1a2c54b35e96" + ], + "x-ms-correlation-request-id": [ + "170ec5b3-4150-4f11-b564-1a2c54b35e96" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043521Z:170ec5b3-4150-4f11-b564-1a2c54b35e96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:35:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "6e8c5694-4809-43a2-bd4b-b9049f07b95a" + ], + "x-ms-correlation-request-id": [ + "6e8c5694-4809-43a2-bd4b-b9049f07b95a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043536Z:6e8c5694-4809-43a2-bd4b-b9049f07b95a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:35:36 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "4d7b7427-692c-4c70-9bd5-e6780a28d56a" + ], + "x-ms-correlation-request-id": [ + "4d7b7427-692c-4c70-9bd5-e6780a28d56a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043551Z:4d7b7427-692c-4c70-9bd5-e6780a28d56a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:35:51 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "d34322a8-3c7a-49cd-b379-8faff7e81e47" + ], + "x-ms-correlation-request-id": [ + "d34322a8-3c7a-49cd-b379-8faff7e81e47" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043606Z:d34322a8-3c7a-49cd-b379-8faff7e81e47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:06 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "352a3dee-852b-41a8-a13a-76a573fd77aa" + ], + "x-ms-correlation-request-id": [ + "352a3dee-852b-41a8-a13a-76a573fd77aa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043621Z:352a3dee-852b-41a8-a13a-76a573fd77aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "314876a6-cbe8-432a-a783-07d22b30958d" + ], + "x-ms-correlation-request-id": [ + "314876a6-cbe8-432a-a783-07d22b30958d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043636Z:314876a6-cbe8-432a-a783-07d22b30958d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:36 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0009fc4d-e310-4e40-8e63-c48a23e9cdc1/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxWTUNSVURURVNUOjJENTAwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDAwOWZjNGQtZTMxMC00ZTQwLThlNjMtYzQ4YTIzZTljZGMxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4V1RVTlNWVVJVUlZOVU9qSkVOVEF3TUMxWFJWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbmRsYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "58c84a5a-2369-498e-8efa-84c01a706713" + ], + "x-ms-correlation-request-id": [ + "58c84a5a-2369-498e-8efa-84c01a706713" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190809T043636Z:58c84a5a-2369-498e-8efa-84c01a706713" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 09 Aug 2019 04:36:36 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "0009fc4d-e310-4e40-8e63-c48a23e9cdc1" + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachineGroupScenarioTest.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachineGroupScenarioTest.cs new file mode 100644 index 000000000000..d3fd1f03936b --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachineGroupScenarioTest.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.SqlVirtualMachine; +using Microsoft.Azure.Management.SqlVirtualMachine.Models; +using Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; +using Xunit; + +namespace SqlVirtualMachine.Tests +{ + public class SqlVirtualMachineGroupScenarioTest + { + [Fact] + public void TestCreateGetDeleteSqlVirtualMachineGroup() + { + using (SqlVirtualMachineTestContext context = new SqlVirtualMachineTestContext(this)) + { + // Create SQL VM group + ISqlVirtualMachineGroupsOperations sqlOperations = context.getSqlClient().SqlVirtualMachineGroups; + StorageAccount storageAccount = VirtualMachineTestBase.CreateStorageAccount(context); + SqlVirtualMachineGroup group = SqlVirtualMachineTestBase.CreateSqlVirtualMachineGroup(context, storageAccount, "test-group"); + + // Recover + SqlVirtualMachineGroup group2 = sqlOperations.Get(context.resourceGroup.Name, group.Name); + SqlVirtualMachineTestBase.ValidateSqlVirtualMachineGroups(group, group2); + + // Delete + sqlOperations.Delete(context.resourceGroup.Name, group.Name); + + // Recover + IPage list = sqlOperations.ListByResourceGroup(context.resourceGroup.Name); + IEnumerator iter = list.GetEnumerator(); + Assert.False(iter.MoveNext()); + } + } + + [Fact] + public void TestListSqlVirtualMachineGroup() + { + using (SqlVirtualMachineTestContext context = new SqlVirtualMachineTestContext(this)) + { + // Create SQL VM group + ISqlVirtualMachineGroupsOperations sqlOperations = context.getSqlClient().SqlVirtualMachineGroups; + StorageAccount storageAccount = VirtualMachineTestBase.CreateStorageAccount(context); + SqlVirtualMachineGroup group = SqlVirtualMachineTestBase.CreateSqlVirtualMachineGroup(context, storageAccount, "test-group"); + + // List + IPage list = sqlOperations.List(); + IEnumerator iter = list.GetEnumerator(); + int count = 0; + while(iter.MoveNext()) + { + SqlVirtualMachineGroup group2 = iter.Current; + if(group.Id.Equals(group2.Id)) + { + SqlVirtualMachineTestBase.ValidateSqlVirtualMachineGroups(group, group2); + count++; + } + } + iter.Dispose(); + Assert.Equal(1, count); + } + } + + [Fact] + public void TestCreateUpdateGetSqlVirtualMachineGroup() + { + using (SqlVirtualMachineTestContext context = new SqlVirtualMachineTestContext(this)) + { + // Create SQL VM group + ISqlVirtualMachineGroupsOperations sqlOperations = context.getSqlClient().SqlVirtualMachineGroups; + StorageAccount storageAccount = VirtualMachineTestBase.CreateStorageAccount(context); + SqlVirtualMachineGroup group = SqlVirtualMachineTestBase.CreateSqlVirtualMachineGroup(context, storageAccount, "test-group"); + + // Update + string key = "test", value = "updateTag"; + sqlOperations.Update(context.resourceGroup.Name, group.Name, new SqlVirtualMachineGroupUpdate() + { + Tags = new Dictionary + { + { key, value } + } + }); + + // Get + SqlVirtualMachineGroup group2 = sqlOperations.Get(context.resourceGroup.Name, group.Name); + SqlVirtualMachineTestBase.ValidateSqlVirtualMachineGroups(group, group2, false); + Assert.Equal(1, group2.Tags.Keys.Count); + Assert.Equal(value, group2.Tags[key]); + } + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachinesScenarioTest.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachinesScenarioTest.cs new file mode 100644 index 000000000000..7cb8571bd179 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/SqlVirtualMachinesScenarioTest.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Compute; +using Microsoft.Azure.Management.Network; +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.SqlVirtualMachine; +using Microsoft.Azure.Management.SqlVirtualMachine.Models; +using Xunit; +using System.Collections.Generic; +using Microsoft.Rest.Azure; +using Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities; + +namespace SqlVirtualMachine.Tests +{ + public class SqlVirtualMachinesScenarioTest + { + [Fact] + public void TestCreateGetUpdateDeleteSqlVirtualMachine() + { + using (SqlVirtualMachineTestContext context = new SqlVirtualMachineTestContext(this)) + { + // Create SQL VM + ISqlVirtualMachinesOperations sqlOperations = context.getSqlClient().SqlVirtualMachines; + Dictionary sqlVirtualMachines = new Dictionary(); + SqlVirtualMachineModel sqlVM = null; + for (int i = 0; i < 3; i++) + { + sqlVM = SqlVirtualMachineTestBase.CreateSqlVirtualMachine(context); + Assert.NotNull(sqlVM); + sqlVirtualMachines[sqlVM.Id] = sqlVM; + } + + // Recover + foreach (string id in sqlVirtualMachines.Keys) + { + sqlVM = sqlOperations.Get(context.resourceGroup.Name, sqlVirtualMachines[id].Name); + Assert.NotNull(sqlVM); + SqlVirtualMachineTestBase.ValidateSqlVirtualMachine(sqlVM, sqlVirtualMachines[id]); + } + + // Update + string key = "test", value = "updateTag"; + sqlOperations.Update(context.resourceGroup.Name, sqlVM.Name, new SqlVirtualMachineUpdate + { + Tags = new Dictionary + { + { key, value } + } + }); + SqlVirtualMachineModel sqlVM2 = sqlOperations.Get(context.resourceGroup.Name, sqlVM.Name); + SqlVirtualMachineTestBase.ValidateSqlVirtualMachine(sqlVM, sqlVM2, sameTags: false); + Assert.Equal(1, sqlVM2.Tags.Keys.Count); + Assert.Equal(value, sqlVM2.Tags[key]); + + // Delete + sqlOperations.Delete(context.resourceGroup.Name, sqlVM2.Name); + sqlVirtualMachines.Remove(sqlVM2.Id); + + // List + IPage recovered = sqlOperations.List(); + var iter = recovered.GetEnumerator(); + while (iter.MoveNext()) + { + sqlVM = iter.Current; + Assert.NotEqual(sqlVM.Id, sqlVM2.Id); + if (sqlVirtualMachines.ContainsKey(sqlVM.Id)) + { + SqlVirtualMachineTestBase.ValidateSqlVirtualMachine(sqlVM, sqlVirtualMachines[sqlVM.Id]); + sqlVirtualMachines.Remove(sqlVM.Id); + } + } + Assert.Empty(sqlVirtualMachines.Keys); + iter.Dispose(); + } + } + + [Fact] + public void TestListByGroupSqlVirtualMachine() + { + using (SqlVirtualMachineTestContext context = new SqlVirtualMachineTestContext(this)) + { + // Create Sql VM + ISqlVirtualMachinesOperations sqlOperations = context.getSqlClient().SqlVirtualMachines; + SqlVirtualMachineModel sqlVM = SqlVirtualMachineTestBase.CreateSqlVirtualMachine(context); + Assert.NotNull(sqlVM); + + // List by group + IPage recovered = sqlOperations.ListByResourceGroup(context.resourceGroup.Name); + var iter = recovered.GetEnumerator(); + Assert.NotNull(iter); + iter.MoveNext(); + SqlVirtualMachineModel sqlVM2 = iter.Current; + Assert.NotNull(sqlVM2); + SqlVirtualMachineTestBase.ValidateSqlVirtualMachine(sqlVM, sqlVM2); + Assert.False(iter.MoveNext()); + iter.Dispose(); + } + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/Contants.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/Contants.cs new file mode 100644 index 000000000000..b8f33643f9a6 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/Contants.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities +{ + public static class Constants + { + public const string imageSku = "Enterprise"; + public const string imageOffer = "SQL2017-WS2016"; + public const string publisher = "MicrosoftSQLServer"; + + public const string domainName = "Domain"; + + public const string adminLogin = "myvmadmin"; + public const string adminPassword = "sql@zure123!"; + public const string sqlLogin = "sqllogin"; + public const string sqlService = "sqlservice"; + + public const string location = "westus"; + + public const string resourceGroupName = "sqlvmcrudtest-5000"; + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/CustomScriptExtensionSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/CustomScriptExtensionSettings.cs new file mode 100644 index 000000000000..58f87e95bd7e --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/CustomScriptExtensionSettings.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Collections.Generic; + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities +{ + public class CustomScriptExtensionSettings + { + public List FileUris { get; set; } + public string CommandToExecute { get; set; } + public string ContentVersion { get; set; } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/DSCSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/DSCSettings.cs new file mode 100644 index 000000000000..120521f75f8d --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/DSCSettings.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities +{ + public class DomainSettings + { + public string ModulesURL { get; set; } + public string ConfigurationFunction { get; set; } + public DomainProperties Properties { get; set; } + } + + public class DomainProperties + { + public string DomainName { get; set; } + public DomainAdminCredentials Admincreds { get; set; } + } + + public class DomainAdminCredentials + { + public string UserName { get; set; } + public string Password { get; set; } + } + + public class DomainProtectedSettings + { + public DomainProtectedSettingsItems Items { get; set; } + } + + public class DomainProtectedSettingsItems + { + public string AdminPassword { get; set; } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/JoinDomainSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/JoinDomainSettings.cs new file mode 100644 index 000000000000..b5d2105f3203 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/JoinDomainSettings.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities +{ + public class JoinDomainSettings + { + public string Name { get; set; } + public string OUPath { get; set; } + public string User { get; set; } + public string Restart { get; set; } + public string Options { get; set; } + } + + public class JoinDomainProtectedSettings + { + public string Password { get; set; } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/MockClient.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/MockClient.cs new file mode 100644 index 000000000000..8f3063c8fae8 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/MockClient.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Compute; +using Microsoft.Azure.Management.Network; +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Storage; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities +{ + public class MockClient : IDisposable + { + public SqlVirtualMachineManagementClient sqlClient { get; } + public ResourceManagementClient resourceClient { get; } + public ComputeManagementClient computeClient { get; } + public StorageManagementClient storageClient { get; } + public NetworkManagementClient networkClient { get; } + public ResourceManager.ResourceManagementClient resourceManagerClient { get; } + + public MockClient(MockContext context) + { + sqlClient = context.GetServiceClient(); + resourceClient = context.GetServiceClient(); + computeClient = context.GetServiceClient(); + networkClient = context.GetServiceClient(); + storageClient = context.GetServiceClient(); + resourceManagerClient = context.GetServiceClient(); + } + + public void Dispose() + { + sqlClient.Dispose(); + resourceClient.Dispose(); + computeClient.Dispose(); + networkClient.Dispose(); + storageClient.Dispose(); + resourceManagerClient.Dispose(); + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestBase.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestBase.cs new file mode 100644 index 000000000000..0bf431df6312 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestBase.cs @@ -0,0 +1,351 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Compute; +using Microsoft.Azure.Management.Compute.Models; +using Microsoft.Azure.Management.Network; +using Microsoft.Azure.Management.Network.Models; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.SqlVirtualMachine.Models; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using SqlVirtualMachine.Tests; +using static Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities.VirtualMachineTestBase; +using System.Collections.Generic; +using Xunit; + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities +{ + public static class SqlVirtualMachineTestBase + { + public static void ValidateSqlVirtualMachine(SqlVirtualMachineModel sqlVM1, SqlVirtualMachineModel sqlVM2, bool sameTags = true) + { + Assert.Equal(sqlVM1.Id, sqlVM2.Id); + Assert.Equal(sqlVM1.Name, sqlVM2.Name); + Assert.Equal(sqlVM1.Location, sqlVM2.Location); + Assert.Equal(sqlVM1.SqlManagement, sqlVM2.SqlManagement); + if (sameTags) + { + Assert.True(ValidateTags(sqlVM1, sqlVM2)); + } + } + + public static void ValidateSqlVirtualMachineGroups(SqlVirtualMachineGroup group1, SqlVirtualMachineGroup group2, bool sameTags = true) + { + Assert.Equal(group1.Id, group2.Id); + Assert.Equal(group1.Name, group2.Name); + Assert.Equal(group1.SqlImageOffer, group2.SqlImageOffer); + if (sameTags) + { + Assert.True(ValidateTags(group1, group2)); + } + } + + public static void ValidateAGListener(AvailabilityGroupListener listener1, AvailabilityGroupListener listener2) + { + Assert.Equal(listener1.Id, listener2.Id); + Assert.Equal(listener1.Name, listener2.Name); + Assert.Equal(listener1.Port, listener2.Port); + Assert.Equal(listener1.ProvisioningState, listener2.ProvisioningState); + } + + public static bool ValidateTags(SqlVirtualMachineGroup group1, SqlVirtualMachineGroup group2) + { + return ValidateTags(group1.Tags, group2.Tags); + } + + public static bool ValidateTags(SqlVirtualMachineModel sqlVM1, SqlVirtualMachineModel sqlVM2) + { + return ValidateTags(sqlVM1.Tags, sqlVM2.Tags); + } + + public static bool ValidateTags(IDictionary tags1, IDictionary tags2) + { + if (tags1 == null && tags2 == null) + { + return true; + } + + if (tags1 == null || tags2 == null || tags1.Count != tags2.Count) + { + return false; + } + + foreach (string s in tags1.Keys) + { + if (!tags2.ContainsKey(s) || !tags1[s].Equals(tags2[s])) + { + return false; + } + } + + return true; + } + + public static SqlVirtualMachineModel CreateSqlVirtualMachine(SqlVirtualMachineTestContext context, SqlVirtualMachineGroup group = null, VirtualMachine virtualMachine = null) + { + ISqlVirtualMachinesOperations sqlOperations = context.getSqlClient().SqlVirtualMachines; + VirtualMachine vm = virtualMachine == null? VirtualMachineTestBase.CreateVM(context) : virtualMachine; + + SqlVirtualMachineModel sqlVM = sqlOperations.CreateOrUpdate(context.resourceGroup.Name, vm.Name, new SqlVirtualMachineModel() + { + Location = context.location, + VirtualMachineResourceId = vm.Id, + SqlServerLicenseType = SqlServerLicenseType.PAYG, + SqlManagement = SqlManagementMode.Full, + SqlImageSku = Constants.imageSku, + SqlImageOffer = Constants.imageOffer, + SqlVirtualMachineGroupResourceId = (group != null) ? group.Id : null, + ServerConfigurationsManagementSettings = new ServerConfigurationsManagementSettings() + { + SqlConnectivityUpdateSettings = new SqlConnectivityUpdateSettings() + { + SqlAuthUpdateUserName = Constants.sqlLogin, + SqlAuthUpdatePassword = Constants.adminPassword, + ConnectivityType = "Private", + Port = 1433 + }, + SqlStorageUpdateSettings = new SqlStorageUpdateSettings() + { + DiskCount = 1, + DiskConfigurationType = "NEW", + StartingDeviceId = 2 + }, + SqlWorkloadTypeUpdateSettings = new SqlWorkloadTypeUpdateSettings() + { + SqlWorkloadType = "OLTP" + } + }, + AutoPatchingSettings = new AutoPatchingSettings(false) + }); + sqlVM.Validate(); + return sqlVM; + } + + public static SqlVirtualMachineGroup CreateSqlVirtualMachineGroup(SqlVirtualMachineTestContext context, StorageAccount storageAccount, string groupName = null, WsfcDomainProfile profile = null) + { + ISqlVirtualMachineGroupsOperations sqlOperations = context.getSqlClient().SqlVirtualMachineGroups; + StorageAccountListKeysResult storageAccountKeys = context.client.storageClient.StorageAccounts.ListKeys(context.resourceGroup.Name, storageAccount.Name); + IEnumerator iter = storageAccountKeys.Keys.GetEnumerator(); + iter.MoveNext(); + string key = iter.Current.Value; + string blobAccount = storageAccount.PrimaryEndpoints.Blob; + if(groupName == null) + { + groupName = context.generateResourceName(); + } + SqlVirtualMachineGroup group = sqlOperations.CreateOrUpdate(context.resourceGroup.Name, groupName, new SqlVirtualMachineGroup + { + Location = context.location, + SqlImageOffer = Constants.imageOffer, + SqlImageSku = Constants.imageSku, + WsfcDomainProfile = (profile != null)? profile : new WsfcDomainProfile + { + SqlServiceAccount = getUsername(Constants.sqlService, Constants.domainName), + ClusterOperatorAccount = getUsername(Constants.adminLogin, Constants.domainName), + DomainFqdn = Constants.domainName + ".com", + StorageAccountUrl = blobAccount, + StorageAccountPrimaryKey = key + } + }); + group.Validate(); + return group; + } + + public static AvailabilityGroupListener CreateAGListener(SqlVirtualMachineTestContext context, string agListenerName, string groupName) + { + MockClient client = context.client; + + string domainName = Constants.domainName; + string adminLogin = Constants.adminLogin; + string adminPassword = Constants.adminPassword; + + // Create domain + NetworkSecurityGroup nsg = CreateNsg(context); + VirtualNetwork vnet = CreateVirtualNetwork(context, networkSecurityGroup: nsg); + NetworkInterface nic = CreateNetworkInterface(context, virtualNetwork: vnet, networkSecurityGroup: nsg); + VirtualMachine vm = CreateVM(context, nic: nic); + VirtualMachineExtension domain = CreateDomain(context, vm, domainName, adminLogin, adminPassword); + Assert.NotNull(domain); + + // Update DNS + Subnet subnet = vnet.Subnets[0]; + UpdateVnetDNS(context, vnet, nsg, nic, subnet); + + // Create SqlVirtualMachineGroup + StorageAccount storageAccount = CreateStorageAccount(context); + StorageAccountListKeysResult storageAccountKeys = client.storageClient.StorageAccounts.ListKeys(context.resourceGroup.Name, storageAccount.Name); + IEnumerator iter = storageAccountKeys.Keys.GetEnumerator(); + iter.MoveNext(); + string key = iter.Current.Value; + WsfcDomainProfile profile = new WsfcDomainProfile() + { + ClusterBootstrapAccount = getUsername(adminLogin, domainName), + ClusterOperatorAccount = getUsername(adminLogin, domainName), + SqlServiceAccount = getUsername(Constants.sqlService, domainName), + StorageAccountUrl = "https://" + storageAccount.Name + ".blob.core.windows.net/", + StorageAccountPrimaryKey = key, + DomainFqdn = domainName + ".com", + OuPath = "" + }; + SqlVirtualMachineGroup group = CreateSqlVirtualMachineGroup(context, storageAccount, groupName: groupName, profile: profile); + + // Create availability set + AvailabilitySet availabilitySet = client.computeClient.AvailabilitySets.CreateOrUpdate(context.resourceGroup.Name, context.generateResourceName(), new AvailabilitySet() + { + Location = context.location, + PlatformFaultDomainCount = 3, + PlatformUpdateDomainCount = 2, + Sku = new Microsoft.Azure.Management.Compute.Models.Sku + { + Name = "Aligned" + } + }); + + // Create two sql virtual machines + NetworkInterface nic1 = CreateNetworkInterface(context, virtualNetwork: vnet); + NetworkInterface nic2 = CreateNetworkInterface(context, virtualNetwork: vnet); + + VirtualMachine vm1 = CreateVM(context, nic: nic1, availabilitySet: availabilitySet); + VirtualMachine vm2 = CreateVM(context, nic: nic2, availabilitySet: availabilitySet); + + SqlVirtualMachineModel sqlVM1 = prepareMachine(context, group, vm1, domainName, adminLogin, adminPassword); + SqlVirtualMachineModel sqlVM2 = prepareMachine(context, group, vm2, domainName, adminLogin, adminPassword); + + // Create load balancer + LoadBalancer loadBalancer = client.networkClient.LoadBalancers.CreateOrUpdate(context.resourceGroup.Name, context.generateResourceName(), new LoadBalancer() + { + Location = context.location, + Sku = new LoadBalancerSku("Basic"), + FrontendIPConfigurations = new List (new FrontendIPConfiguration[] + { + new FrontendIPConfiguration() + { + Name = "LoadBalancerFrontEnd", + PrivateIPAllocationMethod = "Dynamic", + Subnet = subnet + } + }) + }); + + // Run deployment to create an availability group with the two machines created + string AgName = "AvGroup"; + VirtualMachineExtension availabilityGroup = context.client.computeClient.VirtualMachineExtensions.CreateOrUpdate(context.resourceGroup.Name, vm1.Name, "agCreation", new VirtualMachineExtension(context.location, name: AgName) + { + VirtualMachineExtensionType = "CustomScriptExtension", + + Publisher = "Microsoft.Compute", + TypeHandlerVersion = "1.9", + AutoUpgradeMinorVersion = true, + + Settings = new CustomScriptExtensionSettings + { + FileUris = new List(new string[] { + "https://agtemplatestorage.blob.core.windows.net/templates/Deploy.ps1", + "https://agtemplatestorage.blob.core.windows.net/templates/sqlvm6.sql", + "https://agtemplatestorage.blob.core.windows.net/templates/sqlvm7.sql", + "https://agtemplatestorage.blob.core.windows.net/templates/sqlvm8.sql", + "https://agtemplatestorage.blob.core.windows.net/test/sqlvm9.sql", + "https://agtemplatestorage.blob.core.windows.net/templates/sqlvm10.sql" + }), + CommandToExecute = "powershell -ExecutionPolicy Unrestricted -File Deploy.ps1 " + AgName + " " + vm1.Name + " " + vm2.Name + " " + Constants.sqlLogin + " " + adminPassword + " " + domainName + "\\" + Constants.sqlService, + ContentVersion = "1.0.0.0" + } + }); + + // Create availability group listener + return context.getSqlClient().AvailabilityGroupListeners.CreateOrUpdate(context.resourceGroup.Name, group.Name, agListenerName, new AvailabilityGroupListener() + { + LoadBalancerConfigurations = new List(new LoadBalancerConfiguration[] + { + new LoadBalancerConfiguration() + { + PrivateIpAddress = new PrivateIPAddress(ipAddress: "10.0.0.11", subnetResourceId: subnet.Id), + ProbePort = 59999, + LoadBalancerResourceId = loadBalancer.Id, + SqlVirtualMachineInstances = new List() { sqlVM1.Id, sqlVM2.Id } + } + }), + AvailabilityGroupName = AgName, + Port = 1433 + }); + } + + public static void UpdateVnetDNS(SqlVirtualMachineTestContext context, VirtualNetwork vnet, NetworkSecurityGroup nsg, NetworkInterface nic, Subnet subnet) + { + context.client.resourceManagerClient.Deployments.CreateOrUpdate(context.resourceGroup.Name, "UpdateVNetDNS", new Deployment + { + Properties = new DeploymentProperties + { + Mode = DeploymentMode.Incremental, + TemplateLink = new TemplateLink + { + Uri = "https://strdstore.blob.core.windows.net/test/DNSserver.json", + ContentVersion = "1.0.0.0" + }, + Parameters = new DeploymentParameters() + { + Location = new Parameter(context.location), + NetworkSecurityGroupName = new Parameter(nsg.Name), + VirtualNetworkName = new Parameter(vnet.Name), + VirtualNetworkAddressRange = new Parameter(vnet.AddressSpace.AddressPrefixes[0]), + SubnetName = new Parameter(subnet.Name), + SubnetRange = new Parameter(subnet.AddressPrefix), + DNSServerAddress = new ParameterList(new string[] { nic.IpConfigurations[0].PrivateIPAddress }) + } + } + }); + } + + private static SqlVirtualMachineModel prepareMachine(SqlVirtualMachineTestContext context, SqlVirtualMachineGroup group, VirtualMachine vm, string domain, string login, string password) + { + // Create the sql virtual machine + SqlVirtualMachineModel sqlVM = CreateSqlVirtualMachine(context, virtualMachine: vm); + + // Join domain + IVirtualMachineExtensionsOperations operations = context.client.computeClient.VirtualMachineExtensions; + VirtualMachineExtension joinDomain = operations.CreateOrUpdate(context.resourceGroup.Name, vm.Name, "joindomain", new VirtualMachineExtension() + { + Location = context.location, + Publisher = "Microsoft.Compute", + VirtualMachineExtensionType = "JsonADDomainExtension", + TypeHandlerVersion = "1.3", + AutoUpgradeMinorVersion = true, + Settings = new JoinDomainSettings() + { + Name = domain + ".com", + OUPath = "", + User = domain + "\\" + login, + Restart = "true", + Options = "3" + }, + ProtectedSettings = new JoinDomainProtectedSettings() + { + Password = password + } + }); + + // Join sql virtual machine group + context.getSqlClient().SqlVirtualMachines.CreateOrUpdate(context.resourceGroup.Name, sqlVM.Name, new SqlVirtualMachineModel() + { + Location = context.location, + SqlVirtualMachineGroupResourceId = group.Id, + VirtualMachineResourceId = sqlVM.VirtualMachineResourceId, + WsfcDomainCredentials = new WsfcDomainCredentials() + { + ClusterBootstrapAccountPassword = password, + ClusterOperatorAccountPassword = password, + SqlServiceAccountPassword = password + } + }); + + return sqlVM; + } + + private static string getUsername(string username, string domain) + { + return username + "@" + domain + ".com"; + } + } +} diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestContext.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestContext.cs new file mode 100644 index 000000000000..b59db6258aa4 --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/SqlVirtualMachineTestContext.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Compute; +using Microsoft.Azure.Management.Network; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Resources.Models; +using Microsoft.Azure.Management.SqlVirtualMachine; +using Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities; +using Microsoft.Azure.Management.Storage; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Runtime.CompilerServices; + +namespace SqlVirtualMachine.Tests +{ + public class SqlVirtualMachineTestContext : IDisposable + { + public string location; + + public MockClient client; + + public ResourceGroup resourceGroup { get; private set; } + + private MockContext _mockContext; + + private int resourceCounter = 0; + + private bool disposedValue = false; + + public SqlVirtualMachineTestContext(object suiteObject, [CallerMemberName] string testName = "error_determining_test_name") + { + location = Constants.location; + _mockContext = MockContext.Start(suiteObject.GetType().FullName, testName); + client = new MockClient(_mockContext); + resourceGroup = CreateResourceGroup(location); + } + + public ResourceGroup CreateResourceGroup(string location) + { + string rgName = Constants.resourceGroupName; + var resourceGroup = client.resourceClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup() + { + Location = this.location, + }); + return resourceGroup; + } + + private void DeleteResourceGroup() + { + client.resourceClient.ResourceGroups.Delete(resourceGroup.Name); + } + + public SqlVirtualMachineManagementClient getSqlClient() + { + return client.sqlClient; + } + + public string generateResourceName() + { + return "test-" + (++resourceCounter); + } + + protected virtual void Dispose(bool disposing) + { + if (!disposedValue) + { + if (disposing) + { + DeleteResourceGroup(); + + // Dispose client + client.Dispose(); + + // Dispose context + _mockContext.Dispose(); + } + disposedValue = true; + } + } + + // This code added to correctly implement the disposable pattern. + public void Dispose() + { + Dispose(true); + } + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/UpdateVNetDnsSettings.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/UpdateVNetDnsSettings.cs new file mode 100644 index 000000000000..385516432bcd --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/UpdateVNetDnsSettings.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Collections.Generic; + +namespace SqlVirtualMachine.Tests +{ + public class DeploymentParameters + { + public Parameter VirtualNetworkName { get; set; } + public Parameter VirtualNetworkAddressRange { get; set; } + public Parameter SubnetName { get; set; } + public Parameter SubnetRange { get; set; } + public ParameterList DNSServerAddress { get; set; } + public Parameter NetworkSecurityGroupName { get; set; } + public Parameter Location { get; set; } + } + + public class Parameter + { + public Parameter(string value) + { + Value = value; + } + + public string Value { get; set; } + } + + public class ParameterList + { + public ParameterList(string[] value) + { + Value = new List(); + foreach (string s in value) + { + Value.Add(s); + } + } + + public List Value; + } +} \ No newline at end of file diff --git a/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/VirtualMachineTestBase.cs b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/VirtualMachineTestBase.cs new file mode 100644 index 000000000000..156fc085566f --- /dev/null +++ b/sdk/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/tests/Utilities/VirtualMachineTestBase.cs @@ -0,0 +1,341 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Compute; +using Microsoft.Azure.Management.Compute.Models; +using Microsoft.Azure.Management.Network; +using Microsoft.Azure.Management.Network.Models; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using SqlVirtualMachine.Tests; +using System; +using System.Collections.Generic; +using System.Linq; +using Sku = Microsoft.Azure.Management.Storage.Models.Sku; + +namespace Microsoft.Azure.Management.SqlVirtualMachine.Tests.Utilities +{ + public static class VirtualMachineTestBase + { + public static NetworkInterface CreateNetworkInterface(SqlVirtualMachineTestContext context, VirtualNetwork virtualNetwork = null, NetworkSecurityGroup networkSecurityGroup = null) + { + // Create NIC + MockClient client = context.client; + ComputeManagementClient computeClient = client.computeClient; + + // Create virtual network + string subnetName = context.generateResourceName(); + if (virtualNetwork == null) + { + virtualNetwork = CreateVirtualNetwork(context, subnetName: subnetName); + } + Subnet subnet = virtualNetwork.Subnets[0]; + + // Create pbulic IP address + PublicIPAddress publicIPAddress = CreatePublicIP(context); + + // Create Network security group + if(networkSecurityGroup == null) + { + networkSecurityGroup = CreateNsg(context); + } + + NetworkInterface nicParameters = new NetworkInterface() + { + Location = context.location, + IpConfigurations = new List() + { + new NetworkInterfaceIPConfiguration() + { + Name = context.generateResourceName(), + Subnet = subnet, + PrivateIPAllocationMethod = IPAllocationMethod.Dynamic, + PublicIPAddress = publicIPAddress + } + }, + NetworkSecurityGroup = networkSecurityGroup + }; + string nicName = context.generateResourceName(); + client.networkClient.NetworkInterfaces.CreateOrUpdate(context.resourceGroup.Name, nicName, nicParameters); + return client.networkClient.NetworkInterfaces.Get(context.resourceGroup.Name, nicName); + } + + public static VirtualNetwork CreateVirtualNetwork(SqlVirtualMachineTestContext context, VirtualNetwork vnet = null, NetworkSecurityGroup networkSecurityGroup = null, string subnetName = null) + { + if (subnetName == null) + { + subnetName = context.generateResourceName(); + } + if ( networkSecurityGroup == null) + { + networkSecurityGroup = CreateNsg(context); + } + if (vnet == null) + { + vnet = new VirtualNetwork() + { + Location = context.location, + AddressSpace = new AddressSpace() + { + AddressPrefixes = new List() + { + "10.0.0.0/16", + } + }, + Subnets = new List() + { + new Subnet() + { + Name = subnetName, + AddressPrefix = "10.0.0.0/24", + NetworkSecurityGroup = networkSecurityGroup + } + } + }; + } + string vnetName = context.generateResourceName(); + context.client.networkClient.VirtualNetworks.CreateOrUpdate(context.resourceGroup.Name, vnetName, vnet); + return context.client.networkClient.VirtualNetworks.Get(context.resourceGroup.Name, vnetName); + } + + public static NetworkSecurityGroup CreateNsg(SqlVirtualMachineTestContext context, NetworkSecurityGroup nsg = null) + { + if (nsg == null) + { + nsg = new NetworkSecurityGroup(name: context.generateResourceName()) + { + Location = context.location, + SecurityRules = new List(new SecurityRule[] + { + new SecurityRule() + { + Name = "default-allow-rdp", + Priority = 1000, + Protocol = "TCP", + Access = "Allow", + Direction = "Inbound", + SourceAddressPrefix = "*", + SourcePortRange = "*", + DestinationAddressPrefix = "*", + DestinationPortRange = "3389" + } + }) + }; + } + + context.client.networkClient.NetworkSecurityGroups.CreateOrUpdate(context.resourceGroup.Name, nsg.Name, nsg); + return context.client.networkClient.NetworkSecurityGroups.Get(context.resourceGroup.Name, nsg.Name); + } + + public static PublicIPAddress CreatePublicIP(SqlVirtualMachineTestContext context, PublicIPAddress publicIp = null) + { + string publicIpName = context.generateResourceName(); + string domainNameLabel = context.generateResourceName(); + + if (publicIp == null) + { + publicIp = new PublicIPAddress() + { + Location = context.location, + Tags = new Dictionary() + { + {"key", "value"} + }, + PublicIPAllocationMethod = IPAllocationMethod.Dynamic, + DnsSettings = new PublicIPAddressDnsSettings() + { + DomainNameLabel = domainNameLabel + } + }; + } + context.client.networkClient.PublicIPAddresses.CreateOrUpdate(context.resourceGroup.Name, publicIpName, publicIp); + return context.client.networkClient.PublicIPAddresses.Get(context.resourceGroup.Name, publicIpName); + } + + public static StorageAccount CreateStorageAccount(SqlVirtualMachineTestContext context) + { + string storageAccountName = "dotnetclient" + context.generateResourceName().Replace("-", ""); + var stoInput = new StorageAccountCreateParameters + { + Location = context.location, + Sku = new Sku(SkuName.StandardLRS, SkuTier.Standard), + Kind = "StorageV2" + }; + context.client.storageClient.StorageAccounts.Create(context.resourceGroup.Name, storageAccountName, stoInput); + bool created = false; + while (!created) + { + System.Threading.Thread.Sleep(1000); + var resourceList = context.client.storageClient.StorageAccounts.ListByResourceGroup(context.resourceGroup.Name); + created = + resourceList.Any( + t => + StringComparer.OrdinalIgnoreCase.Equals(t.Name, storageAccountName)); + } + + StorageAccount storageAccount = context.client.storageClient.StorageAccounts.GetProperties(context.resourceGroup.Name, storageAccountName); + storageAccount.Validate(); + return storageAccount; + } + + public static VirtualMachine CreateVM(SqlVirtualMachineTestContext context, string name = null, NetworkInterface nic = null, AvailabilitySet availabilitySet = null) + { + MockClient client = context.client; + if (nic == null) + { + nic = CreateNetworkInterface(context); + } + + // Get VM image + string publisher = Constants.publisher; + string offer = Constants.imageOffer; + string sku = Constants.imageSku; + var query = new Microsoft.Rest.Azure.OData.ODataQuery(); + query.Top = 1; + var images = client.computeClient.VirtualMachineImages.List( + location: context.location, publisherName: publisher, offer: offer, skus: sku, + odataQuery: query); + var image = images.First(); + ImageReference imageRef = new ImageReference + { + Publisher = publisher, + Offer = offer, + Sku = sku, + Version = image.Name + }; + + // Create VM + if (name == null) + { + name = context.generateResourceName(); + } + VirtualMachine vm = client.computeClient.VirtualMachines.CreateOrUpdate(context.resourceGroup.Name, name, new VirtualMachine + { + Location = context.location, + HardwareProfile = new HardwareProfile + { + VmSize = "Standard_DS13-2_v2" + }, + NetworkProfile = new NetworkProfile + { + NetworkInterfaces = new List + { + new NetworkInterfaceReference + { + Id = nic.Id + } + } + }, + StorageProfile = new StorageProfile + { + ImageReference = imageRef, + OsDisk = new OSDisk + { + Caching = CachingTypes.None, + WriteAcceleratorEnabled = false, + CreateOption = DiskCreateOption.FromImage, + ManagedDisk = new ManagedDiskParameters + { + StorageAccountType = "Standard_LRS" + } + + }, + DataDisks = new List() + { + new DataDisk() + { + Caching = CachingTypes.None, + WriteAcceleratorEnabled = false, + CreateOption = DiskCreateOptionTypes.Empty, + Lun = 0, + DiskSizeGB = 30, + ManagedDisk = new ManagedDiskParameters() + { + StorageAccountType = "Standard_LRS" + } + } + } + }, + OsProfile = new OSProfile + { + AdminUsername = Constants.adminLogin, + AdminPassword = Constants.adminPassword, + ComputerName = name, + WindowsConfiguration = new WindowsConfiguration() + { + ProvisionVMAgent = true + } + }, + AvailabilitySet = availabilitySet == null? null : new Compute.Models.SubResource() + { + Id = availabilitySet.Id + }, + + }); + vm.Validate(); + return vm; + } + + public static VirtualMachineExtension CreateDomain(SqlVirtualMachineTestContext context, VirtualMachine vm, string domainName = default(string), string adminLogin = default(string), string adminPassword = default(string)) + { + IVirtualMachineExtensionsOperations operations = context.client.computeClient.VirtualMachineExtensions; + if(domainName == null) + { + domainName = Constants.domainName; + } + if(adminLogin == null) + { + adminLogin = Constants.adminLogin; + adminPassword = Constants.adminPassword; + } + VirtualMachineExtension domain = operations.CreateOrUpdate(context.resourceGroup.Name, vm.Name, "InstallDomainController", new VirtualMachineExtension + { + Location = context.location, + VirtualMachineExtensionType = "DSC", + + Publisher = "Microsoft.Powershell", + TypeHandlerVersion = "2.71", + AutoUpgradeMinorVersion = true, + Settings = new DomainSettings + { + ModulesURL = "https://sqlvirtualmachine.blob.core.windows.net/clitest/CreateADPDC.ps1.zip", + ConfigurationFunction = "CreateADPDC.ps1\\CreateADPDC", + Properties = new DomainProperties + { + DomainName = domainName + ".com", + Admincreds = new DomainAdminCredentials + { + UserName = adminLogin, + Password = "PrivateSettingsRef:adminPassword" + } + } + }, + ProtectedSettings = new DomainProtectedSettings + { + Items = new DomainProtectedSettingsItems + { + AdminPassword = adminPassword + } + } + }); + + domain = operations.CreateOrUpdate(context.resourceGroup.Name, vm.Name, "Domain", new VirtualMachineExtension + { + Location = context.location, + VirtualMachineExtensionType = "CustomScriptExtension", + + Publisher = "Microsoft.Compute", + TypeHandlerVersion = "1.9", + AutoUpgradeMinorVersion = true, + + Settings = new CustomScriptExtensionSettings + { + FileUris = new List(new string[] { "https://strdstore.blob.core.windows.net/test/UPN.ps1" }), + CommandToExecute = "powershell -ExecutionPolicy Unrestricted -File UPN.ps1 " + adminLogin + " " + domainName+ ".com " + Constants.sqlService + " " + adminPassword, + ContentVersion = "1.0.0.0" + } + }); + return domain; + } + } +} From 0f2fb888ed21750b447c2a2dd8d527c61fc04f15 Mon Sep 17 00:00:00 2001 From: vchske Date: Wed, 14 Aug 2019 23:28:48 -0700 Subject: [PATCH 11/24] Fixing scenario id, adding support for case manipulation on target (#7283) * Updating SDK to include Oracle to PostgreSQL scenario * Update AssemblyInfo.cs Updating assembly version * Resolving conflicts during rebase * Fixing scenario id, adding support for case manipulation on target --- .../mgmtmetadata/datamigration_resource-manager.txt | 6 +++--- ...teOracleAzureDbForPostgreSqlSyncTaskProperties.cs | 2 +- ...igrateOracleAzureDbPostgreSqlSyncDatabaseInput.cs | 12 +++++++++++- .../SdkInfo_DataMigrationManagementClient.cs | 11 +++++++++++ .../Microsoft.Azure.Management.DataMigration.csproj | 2 +- .../src/Properties/AssemblyInfo.cs | 4 ++-- 6 files changed, 29 insertions(+), 8 deletions(-) diff --git a/eng/mgmt/mgmtmetadata/datamigration_resource-manager.txt b/eng/mgmt/mgmtmetadata/datamigration_resource-manager.txt index e2b3f0dace07..10bf6a4dde3c 100644 --- a/eng/mgmt/mgmtmetadata/datamigration_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/datamigration_resource-manager.txt @@ -3,12 +3,12 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datamigration/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\ -2019-07-18 23:36:36 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datamigration/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Dev\Git\azure-sdk-for-net\sdk +2019-08-13 19:30:49 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: e55caaf6d92a0efdb2c1dc268f052d6266bde439 +Commit: e9b03021559994e2988fd977d465685795c2f70d AutoRest information Requested version: latest Bootstrapper version: autorest@2.0.4283 diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.cs index 81a9806f13da..4d939a6211f7 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// Properties for the task that migrates Oracle to Azure Database for /// PostgreSQL for online migrations /// - [Newtonsoft.Json.JsonObject("Migrate.Oracle.Sql.Sync")] + [Newtonsoft.Json.JsonObject("Migrate.Oracle.AzureDbForPostgreSql.Sync")] public partial class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties : ProjectTaskProperties { /// diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.cs index a63a8c0fbdde..99f97c93c259 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.cs @@ -34,6 +34,8 @@ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput() /// Initializes a new instance of the /// MigrateOracleAzureDbPostgreSqlSyncDatabaseInput class. /// + /// How to handle object name casing: + /// either Preserve or ToLower /// Name of the migration pipeline /// Name of the source schema /// Mapping of source to target tables @@ -46,8 +48,9 @@ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput() /// migration behavior /// Target settings to tune target endpoint /// migration behavior - public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(string name = default(string), string schemaName = default(string), IDictionary tableMap = default(IDictionary), string targetDatabaseName = default(string), IDictionary migrationSetting = default(IDictionary), IDictionary sourceSetting = default(IDictionary), IDictionary targetSetting = default(IDictionary)) + public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(string caseManipulation = default(string), string name = default(string), string schemaName = default(string), IDictionary tableMap = default(IDictionary), string targetDatabaseName = default(string), IDictionary migrationSetting = default(IDictionary), IDictionary sourceSetting = default(IDictionary), IDictionary targetSetting = default(IDictionary)) { + CaseManipulation = caseManipulation; Name = name; SchemaName = schemaName; TableMap = tableMap; @@ -63,6 +66,13 @@ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput() /// partial void CustomInit(); + /// + /// Gets or sets how to handle object name casing: either Preserve or + /// ToLower + /// + [JsonProperty(PropertyName = "caseManipulation")] + public string CaseManipulation { get; set; } + /// /// Gets or sets name of the migration pipeline /// diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs index 137ba383fd2c..ba72d06751d1 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs @@ -30,5 +30,16 @@ public static IEnumerable> ApiInfo_DataMigrationMa }.AsEnumerable(); } } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "latest"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datamigration/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Dev\\Git\\azure-sdk-for-net\\sdk"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "e9b03021559994e2988fd977d465685795c2f70d"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section } } + diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Microsoft.Azure.Management.DataMigration.csproj b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Microsoft.Azure.Management.DataMigration.csproj index 0b75f7a1b37a..d3eccafe61d8 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Microsoft.Azure.Management.DataMigration.csproj +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Microsoft.Azure.Management.DataMigration.csproj @@ -6,7 +6,7 @@ Microsoft.Azure.Management.DataMigration Provides developers with libraries for the Database Migration Service (DMS) under Azure Resource manager to deploy an instance of DMS. Create, Delete, Read Projects, Files and Tasks and more. - 0.8.0-preview + 0.9.0-preview Microsoft.Azure.Management.DataMigration DataMigration;Data Migration;DataMigration_2018-07-15-preview; Preview release of the Database Migration Service (DMS) SDK to Create, Delete, Read Projects, Files and Database Migration Tasks. The SDK now supports multiple online scenarios for targets like Azure SQL Managed Instance, Azure PostgreSQL and Azure MySQL diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Properties/AssemblyInfo.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Properties/AssemblyInfo.cs index 0f7c02193c2d..6f73502df749 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Properties/AssemblyInfo.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Data Migration Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Data Migration Resources.")] -[assembly: AssemblyVersion("0.8.0.0")] -[assembly: AssemblyFileVersion("0.8.0.0")] +[assembly: AssemblyVersion("0.9.0.0")] +[assembly: AssemblyFileVersion("0.9.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] From 45ca4070d3c5118e3c141463654fb5cca6edf042 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com> Date: Thu, 15 Aug 2019 08:20:00 -0700 Subject: [PATCH 12/24] Generate docs for GitHub 2 (#6989) * Generate docs from dlls after building repo * Update Archetype-sdk-client to exclude samples * Update doc yaml * Checkin toc.yml into repo --- eng/docgeneration/api/index.md | 8 - eng/docgeneration/api/toc.yml | 34 ---- eng/docgeneration/assets/docfx.json | 52 +++++ eng/docgeneration/assets/docgen.csproj | 40 ++++ eng/docgeneration/assets/toc.yml | 3 + eng/docgeneration/docfx.json | 191 ------------------ eng/docgeneration/index/index.md | 7 - eng/docgeneration/index/toc.yml | 5 - eng/docgeneration/script/CopyReadMes.py | 29 --- eng/docgeneration/script/CreateTocYml.py | 69 ------- .../script/CreateTocYmlForArticles.py | 36 ---- eng/docgeneration/script/MoveYmlFiles.py | 66 ------ eng/pipelines/docs.yml | 107 +++++----- .../templates/jobs/archetype-sdk-client.yml | 2 +- eng/service.proj | 5 +- 15 files changed, 161 insertions(+), 493 deletions(-) delete mode 100644 eng/docgeneration/api/index.md delete mode 100644 eng/docgeneration/api/toc.yml create mode 100644 eng/docgeneration/assets/docfx.json create mode 100644 eng/docgeneration/assets/docgen.csproj create mode 100644 eng/docgeneration/assets/toc.yml delete mode 100644 eng/docgeneration/docfx.json delete mode 100644 eng/docgeneration/index/index.md delete mode 100644 eng/docgeneration/index/toc.yml delete mode 100644 eng/docgeneration/script/CopyReadMes.py delete mode 100644 eng/docgeneration/script/CreateTocYml.py delete mode 100644 eng/docgeneration/script/CreateTocYmlForArticles.py delete mode 100644 eng/docgeneration/script/MoveYmlFiles.py diff --git a/eng/docgeneration/api/index.md b/eng/docgeneration/api/index.md deleted file mode 100644 index a34ee1274d93..000000000000 --- a/eng/docgeneration/api/index.md +++ /dev/null @@ -1,8 +0,0 @@ -# Azure SDK for NET - -Official .NET client libraries for Azure services. -These libraries allow you to work on Azure for your, runtime or data needs. - -### [Download Official Nuget Packages](~/articles/packages.md) - -### [Contribute or Provide Feedback](~/articles/CONTRIBUTING.md) diff --git a/eng/docgeneration/api/toc.yml b/eng/docgeneration/api/toc.yml deleted file mode 100644 index 8e71d883be4d..000000000000 --- a/eng/docgeneration/api/toc.yml +++ /dev/null @@ -1,34 +0,0 @@ -- name: ApplicationModel.Config - href: ApplicationModel.Configuration/toc.yml -- name: Core - href: Core/toc.yml -- name: Identity - href: Identity/toc.yml -- name: KeyVault - href: KeyVault/toc.yml -- name: Storage - href: Storage/toc.yml -- name: ApplicationInsights - href: ApplicationInsights/toc.yml -- name: Batch - href: Batch/toc.yml -- name: CognitiveServices - href: CognitiveServices/toc.yml -- name: ContainerRegistry - href: ContainerRegistry/toc.yml -- name: OperationalInsights - href: OperationalInsights/toc.yml -- name: Search - href: Search/toc.yml -- name: ServiceBus - href: ServiceBus/toc.yml -- name: EventHubs - href: EventHubs/toc.yml -- name: Graph.RBAC - href: Graph.RBAC/toc.yml -- name: EventGrid - href: EventGrid/toc.yml -- name: HDInsight - href: HDInsight/toc.yml -- name: OtherApis - href: OtherApis/toc.yml \ No newline at end of file diff --git a/eng/docgeneration/assets/docfx.json b/eng/docgeneration/assets/docfx.json new file mode 100644 index 000000000000..31cf00238b8e --- /dev/null +++ b/eng/docgeneration/assets/docfx.json @@ -0,0 +1,52 @@ +{ + "metadata": [ + { + "src": [ + { + "files": ["src/**.csproj"] + } + ], + "dest": "api", + "disableGitFeatures": false, + "disableDefaultFilter": false + } + ], + "build": { + "content": [ + { + "files": ["api/**.yml", "api/index.md"] + }, + { + "files": ["articles/**.md", "articles/**/toc.yml", "toc.yml", "*.md"] + } + ], + "resource": [ + { + "files": ["images/**"] + } + ], + "overwrite": [ + { + "files": ["apidoc/**.md"], + "exclude": ["obj/**", "_site/**"] + } + ], + "xrefService": ["https://xref.docs.microsoft.com/query?uid={uid}"], + "dest": "_site", + "globalMetadataFiles": [], + "fileMetadataFiles": [], + "template": ["default"], + "postProcessors": [], + "markdownEngineName": "markdig", + "noLangKeyword": false, + "keepFileLink": false, + "cleanupCacheHistory": false, + "disableGitFeatures": false, + "globalMetadata": { + "_appTitle": "Azure SDK for Net", + "_appFooter": "Azure SDK for Net", + "_enableSearch": true, + "_enableNewTab": true + } + } +} diff --git a/eng/docgeneration/assets/docgen.csproj b/eng/docgeneration/assets/docgen.csproj new file mode 100644 index 000000000000..ef5a41e706cd --- /dev/null +++ b/eng/docgeneration/assets/docgen.csproj @@ -0,0 +1,40 @@ + + + netcoreapp2.0 + This is a dummy project used to restore nuget packages used for doc generation + Doc generation Packages + + + 1.0.644-alpha + 1.0.0 + 1.0.0-preview8.19405.3 + 2.0.2 + $(UserProfile)\.nuget\packages + + + + + + + + + + $(NuGetPackageRoot)\microsoft.bcl.asyncinterfaces\$(BclAsyncInterfacesVersion)\ref\netstandard2.1\Microsoft.Bcl.AsyncInterfaces.dll + $(NuGetPackageRoot)\netstandard.library\$(NETStandardVersion)\build\netstandard2.0\ref\* + $(NuGetPackageRoot)\microsoft.docascode.ecma2yaml\$(ECMA2YmlVersion)\tools\* + $(NuGetPackageRoot)\popimport\$(PopImportVersion)\Release\* + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eng/docgeneration/assets/toc.yml b/eng/docgeneration/assets/toc.yml new file mode 100644 index 000000000000..883cf3e69e0b --- /dev/null +++ b/eng/docgeneration/assets/toc.yml @@ -0,0 +1,3 @@ +- name: Api Documentation + href: api/ + homepage: api/index.md \ No newline at end of file diff --git a/eng/docgeneration/docfx.json b/eng/docgeneration/docfx.json deleted file mode 100644 index 01b358a86dae..000000000000 --- a/eng/docgeneration/docfx.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "metadata": [ - { - "src": [ - { - "files": [ - "core/**/*.csproj", - "appconfiguration/**/*.csproj", - "applicationinsights/**/*.csproj", - "batch/**/*.csproj", - "cognitiveservices/**/*.csproj", - "containerregistry/**/*.csproj", - "eventgrid/**/*.csproj", - "eventhub/**/*.csproj", - "graphrbac/**/*.csproj", - "hdinsight/**/*.csproj", - "identity/**/*.csproj", - "keyvault/**/*.csproj", - "operationalinsights/**/*.csproj", - "search/**/*.csproj", - "servicebus/**/*.csproj", - "storage/**/*.csproj" - ], - "exclude": [ - "**/bin/**", - "**/obj/**", - "**/**.Management.**/**", - "**/tests/**", - "**/Tools/**", - "**/Samples/**" - ], - "src": "../sdk" - } - ], - "dest": "api", - "disableGitFeatures": false, - "disableDefaultFilter": false, - "properties": { - "TargetFramework": "net452" - } - }, - { - "src": [ - { - "files": [ - "core/**/*.csproj", - "appconfiguration/**/*.csproj", - "applicationinsights/**/*.csproj", - "batch/**/*.csproj", - "cognitiveservices/**/*.csproj", - "containerregistry/**/*.csproj", - "eventgrid/**/*.csproj", - "eventhub/**/*.csproj", - "graphrbac/**/*.csproj", - "hdinsight/**/*.csproj", - "identity/**/*.csproj", - "keyvault/**/*.csproj", - "operationalinsights/**/*.csproj", - "search/**/*.csproj", - "servicebus/**/*.csproj", - "storage/**/*.csproj" - ], - "exclude": [ - "**/bin/**", - "**/obj/**", - "**/**.Management.**/**", - "**/tests/**", - "**/Tools/**", - "**/Samples/**" - ], - "src": "../sdk" - } - ], - "dest": "api", - "disableGitFeatures": false, - "disableDefaultFilter": false, - "properties": { - "TargetFramework": "netstandard1.4" - } - }, - { - "src": [ - { - "files": [ - "core/**/*.csproj", - "appconfiguration/**/*.csproj", - "applicationinsights/**/*.csproj", - "batch/**/*.csproj", - "cognitiveservices/**/*.csproj", - "containerregistry/**/*.csproj", - "eventgrid/**/*.csproj", - "eventhub/**/*.csproj", - "graphrbac/**/*.csproj", - "hdinsight/**/*.csproj", - "identity/**/*.csproj", - "keyvault/**/*.csproj", - "operationalinsights/**/*.csproj", - "search/**/*.csproj", - "servicebus/**/*.csproj", - "storage/**/*.csproj" - ], - "exclude": [ - "**/bin/**", - "**/obj/**", - "**/**.Management.**/**", - "**/tests/**", - "**/Tools/**", - "**/Samples/**" - ], - "src": "../sdk" - } - ], - "dest": "api", - "disableGitFeatures": false, - "disableDefaultFilter": false, - "properties": { - "TargetFramework": "net461" - } - }, - { - "src": [ - { - "files": [ - "core/**/*.csproj", - "appconfiguration/**/*.csproj", - "applicationinsights/**/*.csproj", - "batch/**/*.csproj", - "cognitiveservices/**/*.csproj", - "containerregistry/**/*.csproj", - "eventgrid/**/*.csproj", - "eventhub/**/*.csproj", - "graphrbac/**/*.csproj", - "hdinsight/**/*.csproj", - "identity/**/*.csproj", - "keyvault/**/*.csproj", - "operationalinsights/**/*.csproj", - "search/**/*.csproj", - "servicebus/**/*.csproj", - "storage/**/*.csproj" - ], - "exclude": [ - "**/bin/**", - "**/obj/**", - "**/**.Management.**/**", - "**/tests/**", - "**/Tools/**", - "**/Samples/**" - ], - "src": "../sdk" - } - ], - "dest": "api", - "disableGitFeatures": false, - "disableDefaultFilter": false, - "properties": { - "TargetFramework": "netstandard2.0" - } - } - ], - "build": { - "content": [ - { - "files": ["api/**.yml", "api/index.md"] - }, - { - "files": ["articles/**.md", "articles/**/toc.yml", "toc.yml", "*.md"] - } - ], - "resource": [ - { - "files": ["images/**"] - } - ], - "overwrite": [ - { - "files": ["apidoc/**.md"], - "exclude": ["obj/**", "_site/**"] - } - ], - "dest": "_site", - "globalMetadataFiles": [], - "fileMetadataFiles": [], - "template": ["default"], - "postProcessors": [], - "markdownEngineName": "markdig", - "noLangKeyword": false, - "keepFileLink": false, - "cleanupCacheHistory": false, - "disableGitFeatures": false - } -} diff --git a/eng/docgeneration/index/index.md b/eng/docgeneration/index/index.md deleted file mode 100644 index 20dac1c10ed7..000000000000 --- a/eng/docgeneration/index/index.md +++ /dev/null @@ -1,7 +0,0 @@ -# Azure SDK for Net Documentation - -Documenting the official .NET client libraries for Azure Services. These libraries allow you work on Azure for your, runtime or data needs. - -The content of this site is divided into user documentations and API documentation. User Docs are general docs for working on the repo including readmes, change logs and contributing docs. API documentation allows developers work with the various shipping packages for various services. - -[Go to User Documentation](articles/intro.md) | [Go to API Documentation](api/index.md) diff --git a/eng/docgeneration/index/toc.yml b/eng/docgeneration/index/toc.yml deleted file mode 100644 index f0d10cac4bdf..000000000000 --- a/eng/docgeneration/index/toc.yml +++ /dev/null @@ -1,5 +0,0 @@ -- name: User Documentation - href: articles/ -- name: Api Documentation - href: api/ - homepage: api/index.md diff --git a/eng/docgeneration/script/CopyReadMes.py b/eng/docgeneration/script/CopyReadMes.py deleted file mode 100644 index bba0dc020403..000000000000 --- a/eng/docgeneration/script/CopyReadMes.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copy All Markdown files in the Repo -import os -import shutil -import sys - -sourceDir = sys.argv[1] -sdkDirPath = '{0}/sdk'.format(sourceDir) -articlesDir = '{0}/docfx_project/articles'.format(sourceDir) - -services = ['core', 'appconfiguration', 'applicationinsights', 'batch', 'cognitiveservices', 'containerregistry', - 'eventgrid', 'eventhub', 'graphrbac', 'hdinsight', 'identity', 'keyvault', 'operationalinsights', - 'search', 'servicebus', 'storage'] - -for root, dirs, files in os.walk(sdkDirPath): - for servieDir in dirs: - if servieDir in services: - serviceDirPath = os.path.join(sdkDirPath, servieDir) - for serviceRoot, serviceDirs, serviceFiles in os.walk(serviceDirPath): - for file in serviceFiles: - if file.endswith('.md'): - sourceFileName = os.path.join(serviceRoot, file) - fileName = serviceRoot.replace(sdkDirPath, '') - fileName = os.path.join(fileName, file) - fileName = fileName.replace('/', '-') - fileName = fileName.replace('\\', '-') - print('Copy: ', sourceFileName) - shutil.copyfile(sourceFileName, os.path.join(articlesDir, fileName)) - print(fileName) - break \ No newline at end of file diff --git a/eng/docgeneration/script/CreateTocYml.py b/eng/docgeneration/script/CreateTocYml.py deleted file mode 100644 index 4ef10c1e909a..000000000000 --- a/eng/docgeneration/script/CreateTocYml.py +++ /dev/null @@ -1,69 +0,0 @@ -# This Script Creates the Toc.yml file that groups the User Documentation page -import os -import re -import sys - -sourceDir = sys.argv[1] -apiDirPath = "{0}/docfx_project/api".format(sourceDir) -apiTocPath = os.path.join(apiDirPath, 'toc.yml') - -# Map Api to Service Folders -FileToFolderMap = { - "- uid: Azure.ApplicationModel" : "ApplicationModel.Configuration", - "- uid: Azure.Identity" : "Identity", - "- uid: Azure.Messaging.EventHubs" : "EventHubs", - "- uid: Azure.Security.KeyVault" : "KeyVault", - "- uid: Azure.Storage": "Storage", - "- uid: Microsoft.Azure.ApplicationInsights": "ApplicationInsights", - "- uid: Microsoft.Azure.Batch": "Batch", - "- uid: Microsoft.Azure.CognitiveServices": "CognitiveServices", - "- uid: Microsoft.Azure.ContainerRegistry": "ContainerRegistry", - "- uid: Microsoft.Azure.EventGrid": "EventGrid", - "- uid: Microsoft.Azure.EventHubs" : "EventHubs", - "- uid: Microsoft.Azure.Graph": "Graph.RBAC", - "- uid: Microsoft.Azure.HDInsight": "HDInsight", - "- uid: Microsoft.Azure.KeyVault" : "KeyVault", - "- uid: Microsoft.Azure.OperationalInsights": "OperationalInsights", - "- uid: Microsoft.Azure.Search": "Search", - "- uid: Microsoft.Azure.ServiceBus": "ServiceBus", - "- uid: Azure.Core" : "Core", -} - -currentTocFile = open(os.path.join(apiDirPath, 'index.md')) # Start with a dummy open Just to set the variable -# Open Base -try: - with open(apiTocPath, "r") as baseToc: - for line in baseToc: - if line.startswith('#'): continue - if line.startswith('-'): - matchedThree = re.match(r'(^- uid: .*?\..*?\..*?)($|\..*)', line, re.S) - matchedTwo = re.match(r'(^- uid: .*?\..*?)($|\..*)', line, re.S) - if matchedThree is not None and matchedThree.group(1) in FileToFolderMap.keys(): - tocDir = FileToFolderMap[matchedThree.group(1)] - currentToc = os.path.join(apiDirPath, tocDir, 'toc.yml') - currentTocFile.close() - currentTocFile = open(currentToc, "a") - currentTocFile.write(line) - print('Write ', line, ': ', tocDir) - continue - if matchedTwo is not None and matchedTwo.group(1) in FileToFolderMap.keys(): - tocDir = FileToFolderMap[matchedTwo.group(1)] - currentToc = os.path.join(apiDirPath, tocDir, 'toc.yml') - currentTocFile.close() - currentTocFile = open(currentToc, "a") - currentTocFile.write(line) - print('Write ', line, ': ', tocDir) - continue - else: - tocDir = 'OtherApis' - currentToc = os.path.join(apiDirPath, tocDir, 'toc.yml') - currentTocFile.close() - currentTocFile = open(currentToc, "a") - currentTocFile.write(line) - print('Write ', line, ': ', tocDir) - else: - currentTocFile.write(line) -except IOError: - print("Error: File does not appear to exist") - -currentTocFile.close() \ No newline at end of file diff --git a/eng/docgeneration/script/CreateTocYmlForArticles.py b/eng/docgeneration/script/CreateTocYmlForArticles.py deleted file mode 100644 index 50a210a32bda..000000000000 --- a/eng/docgeneration/script/CreateTocYmlForArticles.py +++ /dev/null @@ -1,36 +0,0 @@ -# This Script Creates the toc.yml file that groups the articles page -import os -import re -import sys - -sourceDir = sys.argv[1] -articleDirPath = "{0}/docfx_project/articles".format(sourceDir) -articleTocPath = os.path.join(articleDirPath, 'toc.yml') - -try: - with open(articleTocPath, "w") as articlesToc: - articlesToc.write('- name: Home\n') - articlesToc.write(' href: intro.md\n') - articlesToc.write('- name: General User Docs\n') - articlesToc.write(' items:\n') - - # Articles - for file in os.listdir(articleDirPath): - if file.startswith('intro') or file.startswith('toc'): - continue - if not file.startswith('-'): - articlesToc.write(' - name: {0}\n'.format(file[:-3])) - articlesToc.write(' href: {0}\n'.format(file)) - - articlesToc.write('- name: ReadMes\n') - articlesToc.write(' items:\n') - - # For ReadMes - for file in os.listdir(articleDirPath): - if file.startswith('intro') or file.startswith('toc'): - continue - if file.startswith('-'): - articlesToc.write(' - name: {0}\n'.format(file[1:-3])) - articlesToc.write(' href: {0}\n'.format(file)) -except IOError: - print("Error: File does not appear to exist") \ No newline at end of file diff --git a/eng/docgeneration/script/MoveYmlFiles.py b/eng/docgeneration/script/MoveYmlFiles.py deleted file mode 100644 index ae13ff9d199a..000000000000 --- a/eng/docgeneration/script/MoveYmlFiles.py +++ /dev/null @@ -1,66 +0,0 @@ -# This Script Arranges the Yaml files into directories -# This causes the API generated to be grouped by their service names -import os -import re -import shutil -import sys - - -sourceDir = sys.argv[1] -apiDirPath = "{0}/docfx_project/api".format(sourceDir) - -# Map Api to Service Folders -FileToFolderMap = { - "Azure.ApplicationModel.Configuration" : "ApplicationModel.Configuration", - "Azure.Identity" : "Identity", - "Azure.Messaging.EventHubs" : "EventHubs", - "Microsoft.Azure.EventHubs" : "EventHubs", - "Azure.Security.KeyVault" : "KeyVault", - "Microsoft.Azure.KeyVault" : "KeyVault", - "Azure.Storage" : "Storage", - "Microsoft.Azure.ApplicationInsights" : "ApplicationInsights", - "Microsoft.Azure.Batch" : "Batch", - "Microsoft.Azure.CognitiveServices" : "CognitiveServices", - "Microsoft.Azure.ContainerRegistry" : "ContainerRegistry", - "Microsoft.Azure.EventGrid" : "EventGrid", - "Microsoft.Azure.Graph": "Graph.RBAC", - "Microsoft.Azure.HDInsight": "HDInsight", - "Microsoft.Azure.OperationalInsights": "OperationalInsights", - "Microsoft.Azure.Search": "Search", - "Microsoft.Azure.ServiceBus": "ServiceBus", - "Azure.Core" : "Core", -} - -# Create Folders -folders = FileToFolderMap.values() -for item in folders: - path = os.path.join(apiDirPath, item) - if not os.path.exists(path): - os.makedirs(path) - -os.makedirs(os.path.join(apiDirPath, 'OtherApis')) # For Apis that don't fit under a Dir - -for item in os.listdir(apiDirPath): - if item == '.gitignore' or item == '.manifest' or item == 'index.md' or item == 'toc.yml': - print('Skip:', item) - continue - itemPath = os.path.join(apiDirPath, item) - if os.path.isfile(itemPath): - # Get first 3 words seperated by dots - matchedThree = re.match(r'(^.*?\..*?\..*?)\..*', item, re.S) - if matchedThree is not None: - if matchedThree.group(1) in FileToFolderMap.keys(): - itemDest = FileToFolderMap[matchedThree.group(1)] - print('Moved ', item , 'to', itemDest) - shutil.move(itemPath, os.path.join(apiDirPath, itemDest)) - continue - # Get first two words Seperated by dots - matchedTwo = re.match(r'(^.*?\..*?)\..*', item, re.S) - if matchedTwo is not None: - if matchedTwo.group(1) in FileToFolderMap.keys(): - itemDest = FileToFolderMap[matchedTwo.group(1)] - print('Moved ', item , 'to', FileToFolderMap[matchedTwo.group(1)]) - shutil.move(itemPath, os.path.join(apiDirPath, itemDest)) - continue - print('Moved ', item , 'to OtherApis') - shutil.move(itemPath, os.path.join(apiDirPath, 'OtherApis')) diff --git a/eng/pipelines/docs.yml b/eng/pipelines/docs.yml index 6173083669e0..4e6f16f5708f 100644 --- a/eng/pipelines/docs.yml +++ b/eng/pipelines/docs.yml @@ -3,79 +3,94 @@ trigger: jobs: - job: CreateDocs variables: - skipComponentGovernanceDetection: true + - template: templates/variables/globals.yml pool: vmImage: vs2017-win2016 steps: + - pwsh: | + Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://github.com/mono/api-doc-tools/releases/download/mdoc-5.7.4.9/mdoc-5.7.4.9.zip" ` + -OutFile "mdoc.zip" | Wait-Process; Expand-Archive -Path "mdoc.zip" -DestinationPath "./mdoc/" + workingDirectory: $(Build.BinariesDirectory) + displayName: Download and Extract mdoc Zip - pwsh: | Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://github.com/dotnet/docfx/releases/download/v2.43.2/docfx.zip" ` -OutFile "docfx.zip" | Wait-Process; Expand-Archive -Path "docfx.zip" -DestinationPath "./docfx/" workingDirectory: $(Build.BinariesDirectory) displayName: Download and Extract DocFX + - pwsh: | + dotnet restore "$(Build.SourcesDirectory)/eng/docgeneration/assets/docgen.csproj" /p:BuildBinariesDirectory=$(Build.BinariesDirectory) + displayName: Restore Nuget Packages Needed + - pwsh: | + mkdir dll-docs/my-api + mkdir dll-xml-output + mkdir dll-yaml-output + mkdir docfx-output + displayName: Create Directories for Doc Generation + workingDirectory: $(Build.BinariesDirectory) + - task: DotNetCoreInstaller@2 + displayName: "Use .NET Core sdk $(DotNetCoreSDKVersion)" + inputs: + version: $(DotNetCoreSDKVersion) + - pwsh: dotnet build eng/service.proj /p:IncludeTests=false /p:IncludeSamples=false /p:OutputPath=$(Build.ArtifactStagingDirectory)/dll-output /p:TargetFramework=netstandard2.0 + displayName: Build Packages + - task: CopyFiles@2 + displayName: 'Copy over Dlls' + inputs: + SourceFolder: '$(Build.ArtifactStagingDirectory)/dll-output' + TargetFolder: '$(Build.BinariesDirectory)/dll-docs/my-api' + contents: | + *.dll + *.xml - task: CmdLine@2 - displayName: Provision DocFX Directory + displayName: Initialize Frameworks File inputs: - script: $(Build.BinariesDirectory)/docfx/docfx.exe init -q - workingDirectory: $(Build.SourcesDirectory) + script: mdoc.exe fx-bootstrap ../dll-docs + workingDirectory: $(Build.BinariesDirectory)/mdoc failOnStderr: true - - pwsh: ls - workingDirectory: $(Build.SourcesDirectory)/docfx_project/ - - pwsh: | - Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/docfx.json" -Destination "$(Build.SourcesDirectory)/docfx_project/" -Force - displayName: Copy over docfx.json + - pwsh: ./popimport.exe -f ../dll-docs/ + workingDirectory: $(Build.BinariesDirectory)/PopImport + displayName: Include XML Files - task: CmdLine@2 - displayName: Generate MetaData + displayName: Produce ECMAXML inputs: - script: $(Build.BinariesDirectory)/docfx/docfx.exe metadata - workingDirectory: $(Build.SourcesDirectory)/docfx_project/ + script: | + mdoc.exe update -fx ../dll-docs -o ../dll-xml-output --debug -lang docid -lang vb.net -lang fsharp --delete + workingDirectory: $(Build.BinariesDirectory)/mdoc failOnStderr: true - - task: PythonScript@0 - displayName: "Arrange Yaml files into Folders" + - task: CmdLine@2 + displayName: Generate YAML inputs: - scriptPath: "$(Build.SourcesDirectory)/eng/docgeneration/script/MoveYmlFiles.py" - arguments: $(Build.SourcesDirectory) + script: | + "$(Build.BinariesDirectory)/ECMA2Yml/ECMA2Yaml.exe" -s "./dll-xml-output" -o "./dll-yaml-output" + workingDirectory: $(Build.BinariesDirectory) failOnStderr: true - - task: PythonScript@0 - displayName: "Create Toc.yml for each service directory" + - task: CmdLine@2 + displayName: Provision DocFX Directory inputs: - scriptPath: "$(Build.SourcesDirectory)/eng/docgeneration/script/CreateTocYml.py" - arguments: $(Build.SourcesDirectory) + script: $(Build.BinariesDirectory)/docfx/docfx.exe init -q + workingDirectory: $(Build.BinariesDirectory)/docfx-output + failOnStderr: true - pwsh: | - Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/api/*" -Destination "$(Build.SourcesDirectory)/docfx_project/api/" -Force - Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/api/index.md" -Destination "$(Build.SourcesDirectory)/docfx_project/articles/intro.md" -Force - Copy-Item "$(Build.SourcesDirectory)/Documentation/*" -Destination "$(Build.SourcesDirectory)/docfx_project/articles/" - Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/index/*" -Destination "$(Build.SourcesDirectory)/docfx_project/" -Force - Copy-Item "$(Build.SourcesDirectory)/CONTRIBUTING.md" -Destination "$(Build.SourcesDirectory)/docfx_project/articles/" - Copy-Item "$(Build.SourcesDirectory)/packages.md" -Destination "$(Build.SourcesDirectory)/docfx_project/articles/" - Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/docfx.json" -Destination "$(Build.SourcesDirectory)/docfx_project/" -Force + Copy-Item "$(Build.BinariesDirectory)/dll-yaml-output/*" -Destination "$(Build.BinariesDirectory)/docfx-output/docfx_project/api/" -Recurse + Copy-Item "$(Build.SourcesDirectory)/README.md" -Destination "$(Build.BinariesDirectory)/docfx-output/docfx_project/index.md" -Recurse -Force + Copy-Item "$(Build.SourcesDirectory)/README.md" -Destination "$(Build.BinariesDirectory)/docfx-output/docfx_project/api/index.md" -Recurse -Force + Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/assets/docfx.json" -Destination "$(Build.BinariesDirectory)/docfx-output/docfx_project" -Recurse -Force + Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/assets/toc.yml" -Destination "$(Build.BinariesDirectory)/docfx-output/docfx_project/toc.yml" -Recurse -Force displayName: Copy over Yaml and Md files - - task: PythonScript@0 - displayName: "Copy Over all ReadMes in the Repo" - inputs: - scriptPath: "$(Build.SourcesDirectory)/eng/docgeneration/script/CopyReadMes.py" - arguments: $(Build.SourcesDirectory) - failOnStderr: true - - task: PythonScript@0 - displayName: "Create Toc.yml for articles" - inputs: - scriptPath: "$(Build.SourcesDirectory)/eng/docgeneration/script/CreateTocYmlForArticles.py" - arguments: $(Build.SourcesDirectory) - failOnStderr: true - - pwsh: ls - workingDirectory: $(Build.SourcesDirectory)/docfx_project/articles - task: CmdLine@2 displayName: Build Doc Content inputs: script: $(Build.BinariesDirectory)/docfx/docfx.exe build - workingDirectory: $(Build.SourcesDirectory)/docfx_project/ + workingDirectory: $(Build.BinariesDirectory)/docfx-output/docfx_project/ failOnStderr: true - pwsh: | - Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/assets/*" -Destination "$(Build.SourcesDirectory)/docfx_project/_site/" -Force - displayName: Replace site assets + Copy-Item "$(Build.SourcesDirectory)/eng/docgeneration/assets/logo.svg" -Destination ` + "$(Build.BinariesDirectory)/docfx-output/docfx_project/_site" -Recurse -Force + displayName: 'Copy over site logo' - task: CopyFiles@2 - displayName: Copy HTML to Artifacts Directory + displayName: Copy HTML to Artificats Directory inputs: - sourceFolder: $(Build.SourcesDirectory)/docfx_project/ + sourceFolder: $(Build.BinariesDirectory)/docfx-output/docfx_project/ content: '**\*' targetFolder: $(Build.ArtifactStagingDirectory)/docfx_project overWrite: true diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 86e02eae0269..a8356e647eb1 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -116,7 +116,7 @@ jobs: version: "$(DotNetCoreSDKVersion)" - script: >- dotnet test eng/service.proj --filter TestCategory!=Live --framework $(TestTargetFramework) --logger "trx;LogFileName=$(TestTargetFramework).trx" - /p:ServiceDirectory=${{ parameters.ServiceDirectory }} /p:IncludeSrc=false /p:Configuration=$(BuildConfiguration) + /p:ServiceDirectory=${{ parameters.ServiceDirectory }} /p:IncludeSrc=false /p:IncludeSamples=false /p:Configuration=$(BuildConfiguration) displayName: "Build & Test ($(TestTargetFramework))" env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 diff --git a/eng/service.proj b/eng/service.proj index b6ec9886bedc..555772b3428b 100644 --- a/eng/service.proj +++ b/eng/service.proj @@ -4,13 +4,16 @@ * true true + true - + + + From 6f40a3f9683601255e03a9ed946610efda33117b Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Tue, 13 Aug 2019 11:38:24 -0400 Subject: [PATCH 13/24] [Event Hubs Client] Track One: Ephemeral Test Namespaces - Enhanced resource management approach for tests moving to a strategy where each test run creates an Event Hubs namespace instance under which individual tests continue to use dedicated Event Hub instances. Creation is only performed when an Event Hub scope is requested by a Live test. - Tune retry configuration to account for additional contention on Azure resources due toe parallelization. - Update ReadMe to enhance the "running tests" instructions to match the current implementation. - Replaced the ARM template with a PowerShell script that will create the persistent resources needed for tests. --- .../Microsoft.Azure.EventHubs/README.md | 74 ++-- .../azure-deploy-test-dependencies.json | 98 ----- .../assets/live-tests-azure-setup.ps1 | 383 ++++++++++++++++++ .../tests/Amqp/AmqpMEssageCoverterTests.cs | 3 +- .../tests/Client/ClientNegativeCases.cs | 18 +- .../tests/Client/ClientTestBase.cs | 1 - .../tests/Client/DiagnosticsTests.cs | 2 +- .../tests/Client/PartitionPumpTests.cs | 4 +- .../tests/Client/PluginTests.cs | 2 +- .../tests/Client/ReceiverTests.cs | 1 - .../tests/Client/RetryTests.cs | 3 +- .../tests/Client/RuntimeInformationTests.cs | 1 - .../tests/Client/SendTests.cs | 1 - .../tests/Client/TokenProviderTests.cs | 1 - .../tests/Client/WebSocketTests.cs | 3 - .../tests/Infrastructure/EventHubScope.cs | 103 +++-- .../tests/Infrastructure/LiveTestAttribute.cs | 2 +- .../tests/Infrastructure/TestConstants.cs | 4 +- .../tests/Infrastructure/TestRunFixture.cs | 27 ++ .../tests/Infrastructure/TestUtility.cs | 40 +- .../TaskExtensionTests.cs | 25 +- .../Microsoft.Azure.EventHubs.Tests.csproj | 1 + .../tests/Processor/ProcessorNegativeCases.cs | 4 - .../tests/Processor/ProcessorTestBase.cs | 150 +++---- .../tests/Properties/AssemblyInfo.cs | 2 +- .../CheckpointingTests.cs | 2 +- .../EventHubExceptionTests.cs | 9 +- .../UserExceptionTests.cs | 4 +- 28 files changed, 673 insertions(+), 295 deletions(-) delete mode 100644 sdk/eventhub/Microsoft.Azure.EventHubs/assets/azure-deploy-test-dependencies.json create mode 100755 sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 mode change 100644 => 100755 sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs create mode 100755 sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/README.md b/sdk/eventhub/Microsoft.Azure.EventHubs/README.md index 5dc264b969bf..6da57a5e8ff6 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/README.md +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/README.md @@ -17,12 +17,12 @@ This directory contains the open source subset of the .NET SDK. For documentatio Use the client library for Event Hubs to: -- Emit telemetry about your application for business intelligence and diagnostic purposes. - -- Publish facts about the state of your application which interested parties may observe and use as a trigger for taking action. - -- Observe interesting operations and interactions happening within your business or other ecosystem, allowing loosely coupled systems to interact without the need to bind them together. - +- Emit telemetry about your application for business intelligence and diagnostic purposes. + +- Publish facts about the state of your application which interested parties may observe and use as a trigger for taking action. + +- Observe interesting operations and interactions happening within your business or other ecosystem, allowing loosely coupled systems to interact without the need to bind them together. + - Receive events from one or more publishers, transform them to better meet the needs of your ecosystem, then publish the transformed events to a new stream for consumers to observe. [Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Microsoft.Azure.EventHubs) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.EventHubs/) | [API reference documentation](https://docs.microsoft.com/en-us/dotnet/api/overview/azure/event-hubs?view=azure-dotnet) | [Product documentation](https://docs.microsoft.com/en-us/azure/event-hubs/) @@ -39,37 +39,65 @@ For the best development experience, developers should use the official Microsof - Microsoft Azure Subscription: To call Microsoft Azure services, including Azure Event Hubs, you need to first [create an account](https://account.windowsazure.com/Home/Index). If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits. -- The Azure Event Hubs client library shares the same [Prerequisites](https://github.com/azure/azure-sdk-for-net#prerequisites) as the Microsoft Azure SDK for .NET. - +- The Azure Event Hubs client library shares the same [Prerequisites](https://github.com/azure/azure-sdk-for-net#prerequisites) as the Microsoft Azure SDK for .NET. + ## Samples Code samples for the Azure Event Hubs client library that detail how to get started and how to implement common scenarios can be found in the following locations: -- [Azure Code Samples](https://azure.microsoft.com/en-us/resources/samples/?sort=0&service=event-hubs&platform=dotnet) +- [Azure Code Samples](https://azure.microsoft.com/en-us/resources/samples/?sort=0&service=event-hubs&platform=dotnet) - [Azure Event Hubs Documentation](https://docs.microsoft.com/en-us/azure/event-hubs/) -- [Azure Event Hubs Sample Repository](https://github.com/Azure/azure-event-hubs/tree/master/samples) -- [Azure Event Hubs Notification Sample](https://github.com/Azure-Samples/event-hubs-dotnet-user-notifications) -- [Azure Event Hubs Publishing Sample](https://github.com/Azure-Samples/event-hubs-dotnet-ingest) - +- [Azure Event Hubs Sample Repository](https://github.com/Azure/azure-event-hubs/tree/master/samples) +- [Azure Event Hubs Notification Sample](https://github.com/Azure-Samples/event-hubs-dotnet-user-notifications) +- [Azure Event Hubs Publishing Sample](https://github.com/Azure-Samples/event-hubs-dotnet-ingest) + ## To build For information on building the Azure Event Hubs client library, please see [Building the Microsoft Azure SDK for .NET](https://github.com/azure/azure-sdk-for-net#to-build) -## Running tests +### Running tests + +The Event Hubs client library tests may be executed using the `dotnet` CLI, or the test runner of your choice - such as Visual Studio or Visual Studio Code. For those developers using Visual Studio, it is safe to use the Live Unit Testing feature, as any tests with external dependencies have been marked to be excluded. + +Tests in the Event Hubs client library are split into two categories: + +- **Unit tests** have no special considerations; these are self-contained and execute locally without any reliance on external resources. Unit tests are considered the default test type in the Event Hubs client library and, thus, have no explicit category trait attached to them. + +- **Integration tests** have dependencies on live Azure resources and require setting up your development environment prior to running. Known in the Azure SDK project commonly as "Live" tests, these tests are decorated with a category trait of "Live". Specifically, an Azure resource group and Azure Service Principal with "contributor" rights to that resource group is required. For each test run, the Live tests will use the service principal to dynamically create an Event Hubs namespace within the resource group and remove it once the test run is complete. + +The Live tests read information from the following environment variables: + +`EVENT_HUBS_RESOURCEGROUP` + The name of the Azure resource group that contains the Event Hubs namespace + +`EVENT_HUBS_SUBSCRIPTION` + The identifier (GUID) of the Azure subscription to which the service principal belongs + +`EVENT_HUBS_TENANT` + The identifier (GUID) of the Azure Active Directory tenant that contains the service principal -1. Deploy the Azure Resource Manager template located at [/sdk/eventhub/Microsoft.Azure.EventHubs/assets/azure-deploy-test-dependencies.json](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Microsoft.Azure.EventHubs/assets/azure-deploy-test-dependencies.json) by clicking the following button: +`EVENT_HUBS_CLIENT` + The identifier (GUID) of the Azure Active Directory application that is associated with the service principal + +`EVENT_HUBS_SECRET` + The client secret (password) of the Azure Active Directory application that is associated with the service principal + +`EVENT_HUBS_STORAGE_CONNECTION_STRING` + The connection string for the Azure storage account used by the Event Processor Host series of tests. + +To make setting up your environment easier, a [PowerShell script](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1) is included in the repository and will create and/or configure the needed Azure resources. To use this script, open a PowerShell instance and login to your Azure account using `Login-AzAccount`, then execute the script. You will need to provide some information, after which the script will configure the Azure resources and then output the set of environment variables with the correct values for running tests. - - - +The simplest way to get started is to execute the script with your subscription name and then follow the prompts: - *Running the above template will provision a standard Event Hubs namespace along with the required entities to successfully run the unit tests.* +```powershell +./live-tests-azure-setup -SubscriptionName "<< YOUR SUBSCRIPTION NAME >>" +``` -1. Add an Environment Variable named `EVENT_HUBS_CONNECTION_STRING` and set the value as the connection string of the newly created namespace. **Please note that if you are using Visual Studio, you must restart Visual Studio in order to use new Environment Variables.** - -1. Add an Environment Variable named `EVENT_HUBS_STORAGE_CONNECTION_STRING` and set the value as the connection string of the newly created storage account. **Please note that if you are using Visual Studio, you must restart Visual Studio in order to use new Environment Variables.** +Help for the full set of parameters and additional information is available by specifying the `-Help` flag. -Once you have completed the above, you can run `dotnet test` from the `/sdk/eventhub/Microsoft.Azure.EventHubs/tests` directory. +```powershell +./live-tests-azure-setup -Help +``` ## Development history diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/assets/azure-deploy-test-dependencies.json b/sdk/eventhub/Microsoft.Azure.EventHubs/assets/azure-deploy-test-dependencies.json deleted file mode 100644 index 69e1978217c3..000000000000 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/assets/azure-deploy-test-dependencies.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "namespaceName": { - "type": "string", - "metadata": { - "description": "Name of the EventHub namespace" - } - }, - "storageAccountName": { - "type": "string", - "metadata": { - "description": "Name of the storage account that is used by the Event Processor Host" - } - }, - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "eventHubName": "eventhubs-sdk-test-hub", - "consumerGroupName": "sdk-test-consumer", - "location": "[resourceGroup().location]", - "apiVersion": "2015-08-01", - "defaultSASKeyName": "RootManageSharedAccessKey", - "authRuleResourceId": "[resourceId('Microsoft.EventHub/namespaces/authorizationRules', parameters('namespaceName'), variables('defaultSASKeyName'))]", - "storageAccountResourceId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]" - }, - "resources": [ - { - "apiVersion": "2015-08-01", - "name": "[parameters('namespaceName')]", - "type": "Microsoft.EventHub/Namespaces", - "location": "[variables('location')]", - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "resources": [ - { - "apiVersion": "2015-08-01", - "name": "[variables('eventHubName')]", - "type": "EventHubs", - "dependsOn": [ - "[concat('Microsoft.EventHub/namespaces/', parameters('namespaceName'))]" - ], - "properties": { - "path": "[variables('eventHubName')]" - }, - "resources": [ - { - "apiVersion": "2015-08-01", - "name": "[variables('consumerGroupName')]", - "type": "ConsumerGroups", - "dependsOn": [ - "[variables('eventHubName')]" - ], - "properties": {} - } - ] - } - ] - }, - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[parameters('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[variables('location')]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": { - } - } - ], - "outputs": { - "NamespaceConnectionString": { - "type": "string", - "value": "[listkeys(variables('authRuleResourceId'), variables('apiVersion')).primaryConnectionString]" - }, - "StorageAccountConnectionString": { - "type": "string", - "value": "[Concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value)]" - } - } -} \ No newline at end of file diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 b/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 new file mode 100755 index 000000000000..126701efa719 --- /dev/null +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 @@ -0,0 +1,383 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +<# + .SYNOPSIS + Performs the tasks needed to setup an Azure subscription for use with the Event Hubs client + library test suite. + + .DESCRIPTION + This script handles creation and configuration of needed resources within an Azure subscription + for use with the Event Hubs client library's Live test suite. + + Upon completion, the script will output a set of environment variables with sensitive information which + are used for testing. When running Live tests, please be sure to have these environment variables available, + either within Visual Studio or command line environment. + + For more detailed help, please use the -Help switch. +#> + +# ======================= +# == Script Parameters == +# ======================= + +[CmdletBinding(DefaultParameterSetName="Help")] +[OutputType([String])] +param +( + [Parameter(Mandatory=$true, ParameterSetName="Help", Position=0)] + [Switch] $Help, + + [Parameter(Mandatory=$true, ParameterSetName="Execute", Position=0)] + [ValidateNotNullOrEmpty()] + [string] $SubscriptionName, + + [Parameter(Mandatory=$true, ParameterSetName="Execute")] + [ValidateNotNullOrEmpty()] + [string] $ResourceGroupName, + + [Parameter(Mandatory=$true, ParameterSetName="Execute")] + [ValidateNotNullOrEmpty()] + [ValidateScript({ $_.Length -ge 6})] + [string] $StorageAccountName, + + [Parameter(Mandatory=$true, ParameterSetName="Execute")] + [ValidateNotNullOrEmpty()] + [ValidateScript({ $_.Length -ge 6})] + [string] $ServicePrincipalName, + + [Parameter(Mandatory=$true, ParameterSetName="Execute")] + [AllowNull()] + $AzureRegion = $null +) + +# ===================== +# == Module Imports == +# ===================== + +Import-Module Az.Resources + +# ========================== +# == Function Definitions == +# ========================== + +function DisplayHelp +{ + <# + .SYNOPSIS + Displays the usage help text. + + .DESCRIPTION + Displays the help text for usage. + + .OUTPUTS + Help text for usage to the console window. + #> + + $indent = " " + + Write-Host "`n" + Write-Host "Event Hubs Live Test Environment Setup" + Write-Host "" + Write-Host "$($indent)This script handles creation and configuration of needed resources within an Azure subscription" + Write-Host "$($indent)for use with the Event Hubs client library Live test suite." + Write-Host "" + Write-Host "$($indent)Upon completion, the script will output a set of environment variables with sensitive information which" + Write-Host "$($indent)fare used for testing. When running Live tests, please be sure to have these environment variables available," + Write-Host "$($indent)either within Visual Studio or command line environment." + Write-Host "" + Write-Host "$($indent)NOTE: Some of these values, such as the client secret, are difficult to recover; please copy them and keep in a" + Write-Host "$($indent)safe place." + Write-Host "" + Write-Host "" + Write-Host "$($indent)Available Parameters:" + Write-Host "" + Write-Host "$($indent)-Help`t`t`tDisplays this message." + Write-Host "" + + Write-Host "$($indent)-SubscriptionName`t`tRequired. The name of the Azure subscription to be used for" + Write-Host "$($indent)`t`t`t`trunning the Live tests." + Write-Host "" + + Write-Host "$($indent)-ResourceGroupName`t`tThe name of the Azure Resource Group that will contain the resources" + Write-Host "$($indent)`t`t`t`tused for the tests. This will be created if it does not exist." + Write-Host "" + + Write-Host "$($indent)-StorageAccountName`t`tThe name of the Azure Storage account that will be used as durable " + Write-Host "$($indent)`t`t`t`tstorage for the Event Processor Host series of tests. This will be created if it does" + Write-Host "$($indent)`t`t`t`tnot exist." + Write-Host "" + + Write-Host "$($indent)-ServicePrincipalName`tThe name to use for the service principal that will be" + Write-Host "$($indent)`t`t`t`tbe created to manage the Event Hub instances dynamically for the tests. This" + Write-Host "$($indent)`t`t`t`tprincipal must not already exist." + Write-Host "" + + Write-Host "$($indent)-AzureRegion`t`tThe Azure region that resources should be created in. This value should be" + Write-Host "$($indent)the name of the region, in lowercase, with no spaces. For example: southcentralus" + Write-Host "" + Write-Host "$($indent)`t`t`t`tDefault: South Central US (southcentralus)" + Write-Host "" +} + +function SelectRandomCharacters +{ + <# + .SYNOPSIS + Selects a number of random characters from a set. + #> + + param + ( + [Parameter(Mandatory=$true)] + [int]$length, + + [Parameter(Mandatory=$true)] + [string]$characters + ) + + $random = (1..$length | ForEach { Get-Random -Maximum $characters.length }) + return (-join $characters[$random]) +} + +function GenerateRandomPassword() +{ + <# + .SYNOPSIS + Generates a random password that can be assigned to a service principal. + + .DESCRIPTION + The password generated by this function will contain a mix of alpha, + numeric, and special characters and will vary a small amount in its length. + #> + + $baseLength = (Get-Random -Minimum 28 -Maximum 37) + $upper = (Get-Random -Minimum 6 -Maximum ([int][Math]::Ceiling($baseLength / 3))) + $special = (Get-Random -Minimum 2 -Maximum 3) + $lower = ($baseLength - $upper - $special - $special) + + $password = SelectRandomCharacters $lower "abcdefghiklmnoprstuvwxyz" + $password += SelectRandomCharacters $upper "ABCDEFGHKLMNOPRSTUVWXYZ" + $password += SelectRandomCharacters $special "1234567890" + $password += SelectRandomCharacters $special "!$%&/()=?}][{@#*+" + + $scrambled = ($password.ToCharArray()) | Get-Random -Count ($password.Length) + return (-join $scrambled) +} + +function TearDownResources +{ + <# + .SYNOPSIS + Cleans up any Azure resoruces created by the script. + + .DESCRIPTION + Responsible for cleaning up any Azure resoruces created + by the script in case of failure. + #> + + param + ( + [Parameter(Mandatory=$true)] + [bool] $cleanResourceGroup, + + [Parameter(Mandatory=$true)] + [bool] $cleanStorage + ) + + Write-Host("Cleaning up resources that were created:") + + if ($cleanStorage) + { + try + { + Write-Host "`t...Removing Azure Storage account `"$($AzureStorageName)`"" + Remove-AzStorageAccount -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)" -Force | Out-Null + } + catch + { + Write-Error "The Azure Storage account: $($StorageAccountName) could not be removed. You will need to delete this manually." + Write-Error "" + Write-Error $_.Exception.Message + } + } + + if ($cleanResourceGroup) + { + try + { + Write-Host "`t...Removing resource group `"$($ResourceGroupName)`"" + Remove-AzResourceGroup -Name "$($ResourceGroupName)" -Force | Out-Null + } + catch + { + Write-Error "The resource group: $($ResourceGroupName) could not be removed. You will need to delete this manually." + Write-Error "" + Write-Error $_.Exception.Message + } + } +} + +# ==================== +# == Script Actions == +# ==================== + +if ($Help) +{ + DisplayHelp $Defaults + exit 0 +} + +if ([String]::IsNullOrEmpty($AzureRegion)) +{ + $AzureRegion = "southcentralus" +} + +# Disallow prinicpal names with a space. + +if ($ServicePrincipalName.Contains(" ")) +{ + Write-Error "The principal name may not contain spaces." + exit -1 +} + +# Verify the location is valid for an Event Hubs namespace. + +$validLocations = @{} +Get-AzLocation | where { $_.Providers.Contains("Microsoft.EventHub")} | ForEach { $validLocations[$_.Location] = $_.Location } + +if (!$validLocations.Contains($AzureRegion)) +{ + Write-Error "The Azure region must be one of: `n$($validLocations.Keys -join ", ")`n`n" + exit -1 +} + +# Capture the subscription. The cmdlet will error if there was no subscription, +# so no need to validate. + +Write-Host "" +Write-Host "Working:" +Write-Host "`t...Requesting subscription" +$subscription = (Get-AzSubscription -SubscriptionName "$($SubscriptionName)" -ErrorAction SilentlyContinue) + +if ($subscription -eq $null) +{ + Write-Error "Unable to locate the requested Azure subscription: $($SubscriptionName)" + exit -1 +} + +Set-AzContext -SubscriptionId "$($subscription.Id)" -Scope "Process" | Out-Null + +# Create the resource group, if needed. + +Write-Host "`t...Requesting resource group" + +$createResourceGroup = $false +$resourceGroup = (Get-AzResourceGroup -ResourceGroupName "$($ResourceGroupName)" -ErrorAction SilentlyContinue) + +if ($resourceGroup -eq $null) +{ + $createResourceGroup = $true +} + +if ($createResourceGroup) +{ + Write-Host "`t...Creaating new resource group" + $resourceGroup = (New-AzResourceGroup -Name "$($ResourceGroupName)" -Location "$($AzureRegion)") +} + +if ($resourceGroup -eq $null) +{ + Write-Error "Unable to locate or create the resource goup: $($ResourceGroupName)" + exit -1 +} + +# At this point, we may have created a resource, so be safe and allow for removing any +# resoruces created should the script fail. + +try +{ + # Create the Azure Storage account, if needed. + + Write-Host "`t...Requesting Azure Storage account" + $createStorage = $false + $storageAccount = (Get-AzStorageAccount -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)" -ErrorAction SilentlyContinue) + + if ($storageAccount -eq $null) + { + $createStorage = $true + } + + if ($createStorage) + { + Write-Host "`t...Creating new Azure Storage account" + Start-Sleep 1 + + $storageAccount = (New-AzStorageAccount -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)" -Location "$($AzureRegion)" -SkuName "Standard_LRS") + } + + if ($storageAccount -eq $null) + { + Write-Error "Unable to locate or create the Azure Storage account: $($StorageAccountName)" + TearDownResources $createResourceGroup $createStorage $false + exit -1 + } + + $storageKey = (Get-AzStorageAccountKey -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)").Value[0] + + # Create the service prinicpal and grant contributor access for management in the resource group. + + Write-Host "`t...Creating new service principal" + Start-Sleep 1 + + $credentials = New-Object Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential -Property @{StartDate=Get-Date; EndDate=Get-Date -Year 2099; Password="$(GenerateRandomPassword)"} + $principal = (New-AzADServicePrincipal -DisplayName "$($ServicePrincipalName)" -PasswordCredential $credentials) + + if ($principal -eq $null) + { + Write-Error "Unable to create the service principal: $($ServicePrincipalName)" + TearDownResources $createResourceGroup + exit -1 + } + + Write-Host "`t...Assigning permissions (this will take a moment)" + Start-Sleep 60 + + # The propagation of the identity is non-deterministic. Attempt to retry once after waiting for another minute if + # the initial attempt fails. + + try + { + New-AzRoleAssignment -ApplicationId "$($principal.ApplicationId)" -RoleDefinitionName "Contributor" -ResourceGroupName "$($ResourceGroupName)" | Out-Null + } + catch + { + Write-Host "`t...Still waiting for identity propagation (this will take a moment)" + Start-Sleep 60 + New-AzRoleAssignment -ApplicationId "$($principal.ApplicationId)" -RoleDefinitionName "Contributor" -ResourceGroupName "$($ResourceGroupName)" | Out-Null + } + + # Write the environment variables + + Write-Host "Done." + Write-Host "" + Write-Host "" + Write-Host "EVENT_HUBS_RESOURCEGROUP=$($ResourceGroupName)" + Write-Host "" + Write-Host "EVENT_HUBS_SUBSCRIPTION=$($subscription.SubscriptionId)" + Write-Host "" + Write-Host "EVENT_HUBS_TENANT=$($subscription.TenantId)" + Write-Host "" + Write-Host "EVENT_HUBS_CLIENT=$($principal.ApplicationId)" + Write-Host "" + Write-Host "EVENT_HUBS_SECRET=$($credentials.Password)" + Write-Host "" + Write-Host "EVENT_HUBS_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=$($StorageAccountName);AccountKey=$($storageKey);EndpointSuffix=core.windows.net" + Write-Host "" +} +catch +{ + Write-Error $_.Exception.Message + TearDownResources $createResourceGroup $createStorage + exit -1 +} diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Amqp/AmqpMEssageCoverterTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Amqp/AmqpMEssageCoverterTests.cs index 2f95c924fa46..4730e36dceb8 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Amqp/AmqpMEssageCoverterTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Amqp/AmqpMEssageCoverterTests.cs @@ -55,7 +55,8 @@ private static ArraySegment[] ReadMessagePayLoad(AmqpMessage message, int ArraySegment[] messageBuffers = message.GetPayload(payloadSize, out more); if (messageBuffers != null) { - foreach (var segment in messageBuffers) { message.CompletePayload(segment.Count); } + foreach (var segment in messageBuffers) + { message.CompletePayload(segment.Count); } buffers.AddRange(messageBuffers); } } diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientNegativeCases.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientNegativeCases.cs index f37c7c59ed43..7c145b286532 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientNegativeCases.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientNegativeCases.cs @@ -225,16 +225,16 @@ await Assert.ThrowsAsync(async () => [DisplayTestMethodName] public async Task CreateClientWithoutEntityPathShouldFail() { - // Remove entity path from connection string. - var csb = new EventHubsConnectionStringBuilder(TestUtility.EventHubsConnectionString); - csb.EntityPath = null; + // Remove entity path from connection string. + var csb = new EventHubsConnectionStringBuilder(TestUtility.EventHubsConnectionString); + csb.EntityPath = null; + + await Assert.ThrowsAsync(() => + { + EventHubClient.CreateFromConnectionString(csb.ToString()); + throw new Exception("Entity path wasn't provided in the connection string and this new call was supposed to fail"); + }); - await Assert.ThrowsAsync(() => - { - EventHubClient.CreateFromConnectionString(csb.ToString()); - throw new Exception("Entity path wasn't provided in the connection string and this new call was supposed to fail"); - }); - } [Fact] diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientTestBase.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientTestBase.cs index e5df6aed2f33..5b3a33bbc17a 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientTestBase.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ClientTestBase.cs @@ -8,7 +8,6 @@ namespace Microsoft.Azure.EventHubs.Tests.Client using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; - using Microsoft.Azure.EventHubs.Primitives; using Xunit; public class ClientTestBase diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/DiagnosticsTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/DiagnosticsTests.cs index ed12b0a3967a..521716b02779 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/DiagnosticsTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/DiagnosticsTests.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.EventHubs.Tests.Client using System.Threading.Tasks; using Xunit; - #pragma warning disable xUnit2002 +#pragma warning disable xUnit2002 [CollectionDefinition(nameof(DiagnosticsTests), DisableParallelization = true)] [Collection(nameof(DiagnosticsTests))] diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PartitionPumpTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PartitionPumpTests.cs index f12e053c7fab..9dafd1fc4718 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PartitionPumpTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PartitionPumpTests.cs @@ -118,8 +118,8 @@ public async Task ReceiveHandlerReregister() // Not expecting any errors. handler.ErrorReceived += (s, e) => { - // SetReceiveHandler will ignore any exception thrown so log here for output. - TestUtility.Log($"TestPartitionReceiveHandler.ProcessError {e.GetType().Name}: {e.Message}"); + // SetReceiveHandler will ignore any exception thrown so log here for output. + TestUtility.Log($"TestPartitionReceiveHandler.ProcessError {e.GetType().Name}: {e.Message}"); throw new Exception($"TestPartitionReceiveHandler.ProcessError {e.GetType().Name}: {e.Message}"); }; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PluginTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PluginTests.cs index 6bbd958c65d8..674143bc4a9c 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PluginTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/PluginTests.cs @@ -4,8 +4,8 @@ namespace Microsoft.Azure.EventHubs.Tests.Client { using System; - using System.Threading.Tasks; using System.Text; + using System.Threading.Tasks; using Microsoft.Azure.EventHubs.Core; using Xunit; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ReceiverTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ReceiverTests.cs index 13288122afd5..4fbc98124c9c 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ReceiverTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/ReceiverTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.Azure.EventHubs.Tests.Client using System.Collections.Generic; using System.Linq; using System.Text; - using System.Threading; using System.Threading.Tasks; using Xunit; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RetryTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RetryTests.cs index d12095aa34dc..f10da757136f 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RetryTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RetryTests.cs @@ -4,9 +4,8 @@ namespace Microsoft.Azure.EventHubs.Tests.Client { using System; - using Xunit; - using System.Threading; using System.Threading.Tasks; + using Xunit; public class RetryTests { diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RuntimeInformationTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RuntimeInformationTests.cs index 6909b47cf2b2..8457edbbafc1 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RuntimeInformationTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/RuntimeInformationTests.cs @@ -6,7 +6,6 @@ namespace Microsoft.Azure.EventHubs.Tests.Client using System; using System.Collections.Generic; using System.Linq; - using System.Threading; using System.Threading.Tasks; using Xunit; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/SendTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/SendTests.cs index d15f41fcfb92..fe144b599d4c 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/SendTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/SendTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.Azure.EventHubs.Tests.Client using System.Collections.Generic; using System.Linq; using System.Text; - using System.Threading; using System.Threading.Tasks; using Xunit; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/TokenProviderTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/TokenProviderTests.cs index 213cf4b6befa..31ec3a019740 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/TokenProviderTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/TokenProviderTests.cs @@ -4,7 +4,6 @@ namespace Microsoft.Azure.EventHubs.Tests.Client { using System; - using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Microsoft.IdentityModel.Clients.ActiveDirectory; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/WebSocketTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/WebSocketTests.cs index e6ca177fcc5f..b6ff717a10df 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/WebSocketTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Client/WebSocketTests.cs @@ -4,12 +4,9 @@ namespace Microsoft.Azure.EventHubs.Tests.Client { using System; - using System.Collections.Generic; - using System.Linq; using System.Net; using System.Net.WebSockets; using System.Text; - using System.Threading; using System.Threading.Tasks; using Xunit; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs old mode 100644 new mode 100755 index 003d2a67533e..eedb121e7317 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; @@ -11,29 +11,23 @@ using System.Threading.Tasks; using Microsoft.Azure.Management.EventHub; using Microsoft.Azure.Management.EventHub.Models; +using Microsoft.Azure.Management.ResourceManager; using Microsoft.IdentityModel.Clients.ActiveDirectory; using Microsoft.Rest; using Polly; - namespace Microsoft.Azure.EventHubs.Tests { - internal sealed class EventHubScope : IAsyncDisposable { - - private const int RetryMaximumAttemps = 8; - - private const double RetryExponentialBackoffSeconds = 0.5; - - private const double RetryBaseJitterSeconds = 3.0; + private const int RetryMaximumAttemps = 12; + private const double RetryExponentialBackoffSeconds = 1.5; + private const double RetryBaseJitterSeconds = 7.0; private static readonly TimeSpan CredentialRefreshBuffer = TimeSpan.FromMinutes(5); - private static readonly ThreadLocal RandomNumberGenerator = new ThreadLocal(() => new Random(Interlocked.Increment(ref s_randomSeed)), false); private static int s_randomSeed = Environment.TickCount; - private static ManagementToken s_managementToken; private bool _disposed = false; @@ -83,17 +77,19 @@ internal static async Task CreateAsync(int partitionCount, IEnumerable consumerGroups, [CallerMemberName] string caller = "") { - var eventHubName = $"{ caller }-{ Guid.NewGuid().ToString("D").Substring(0, 8) }"; + caller = (caller.Length < 16) ? caller : caller.Substring(0, 15); + var groups = (consumerGroups ?? Enumerable.Empty()).ToList(); var resourceGroup = TestUtility.EventHubsResourceGroup; var eventHubNamespace = TestUtility.EventHubsNamespace; var token = await AquireManagementTokenAsync(); - var client = new EventHubManagementClient(new TokenCredentials(token)) { SubscriptionId = TestUtility.EventHubsSubscription }; - try + string CreateName() => $"{ Guid.NewGuid().ToString("D").Substring(0, 13) }-{ caller }"; + + using (var client = new EventHubManagementClient(new TokenCredentials(token)) { SubscriptionId = TestUtility.EventHubsSubscription }) { - var eventHub = new Eventhub(name: eventHubName, partitionCount: partitionCount); - await CreateRetryPolicy().ExecuteAsync(() => client.EventHubs.CreateOrUpdateAsync(resourceGroup, eventHubNamespace, eventHubName, eventHub)); + var eventHub = new Eventhub(partitionCount: partitionCount); + eventHub = await CreateRetryPolicy().ExecuteAsync(() => client.EventHubs.CreateOrUpdateAsync(resourceGroup, eventHubNamespace, CreateName(), eventHub)); var consumerPolicy = CreateRetryPolicy(); @@ -102,16 +98,65 @@ await Task.WhenAll consumerGroups.Select(groupName => { var group = new ConsumerGroup(name: groupName); - return consumerPolicy.ExecuteAsync(() => client.ConsumerGroups.CreateOrUpdateAsync(resourceGroup, eventHubNamespace, eventHubName, groupName, group)); + return consumerPolicy.ExecuteAsync(() => client.ConsumerGroups.CreateOrUpdateAsync(resourceGroup, eventHubNamespace, eventHub.Name, groupName, group)); }) ); + + return new EventHubScope(eventHub.Name, groups); } - finally + } + + public static async Task CreateNamespaceAsync() + { + var subscription = TestUtility.EventHubsSubscription; + var resourceGroup = TestUtility.EventHubsResourceGroup; + var token = await AquireManagementTokenAsync(); + + string CreateName() => $"net-eventhubs-track-one-{ Guid.NewGuid().ToString("D").Substring(0, 8) }"; + + using (var client = new EventHubManagementClient(new TokenCredentials(token)) { SubscriptionId = subscription }) { - client?.Dispose(); + var location = await QueryResourceGroupLocationAsync(token, resourceGroup, subscription); + + var tags = new Dictionary + { + { "source", typeof(EventHubScope).Assembly.GetName().Name }, + { "platform", System.Runtime.InteropServices.RuntimeInformation.OSDescription }, + { "framework", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription }, + { "created", $"{ DateTimeOffset.UtcNow.ToString("s") }Z" }, + { "cleanup-after", $"{ DateTimeOffset.UtcNow.AddDays(1).ToString("s") }Z" } + }; + + var eventHubsNamespace = new EHNamespace(sku: new Sku("Standard", "Standard", 12), tags: tags, isAutoInflateEnabled: true, maximumThroughputUnits: 20, location: location); + eventHubsNamespace = await CreateRetryPolicy().ExecuteAsync(() => client.Namespaces.CreateOrUpdateAsync(resourceGroup, CreateName(), eventHubsNamespace)); + + var accessKey = await CreateRetryPolicy().ExecuteAsync(() => client.Namespaces.ListKeysAsync(resourceGroup, eventHubsNamespace.Name, "RootManageSharedAccessKey")); + return new NamespaceProperties(eventHubsNamespace.Name, accessKey.PrimaryConnectionString); } + } + + public static async Task DeleteNamespaceAsync(string namespaceName) + { + var subscription = TestUtility.EventHubsSubscription; + var resourceGroup = TestUtility.EventHubsResourceGroup; + var token = await AquireManagementTokenAsync(); - return new EventHubScope(eventHubName, groups); + using (var client = new EventHubManagementClient(new TokenCredentials(token)) { SubscriptionId = subscription }) + { + await CreateRetryPolicy().ExecuteAsync(() => client.Namespaces.DeleteAsync(resourceGroup, namespaceName)); + ; + } + } + + private static async Task QueryResourceGroupLocationAsync(string accessToken, + string resourceGroupName, + string subscriptionId) + { + using (var client = new ResourceManagementClient(new TokenCredentials(accessToken)) { SubscriptionId = subscriptionId }) + { + var resourceGroup = await CreateRetryPolicy().ExecuteAsync(() => client.ResourceGroups.GetAsync(resourceGroupName)); + return resourceGroup.Location; + } } private static IAsyncPolicy CreateRetryPolicy(int maxRetryAttempts = RetryMaximumAttemps, double exponentialBackoffSeconds = RetryExponentialBackoffSeconds, double baseJitterSeconds = RetryBaseJitterSeconds) => @@ -146,7 +191,7 @@ private static async Task AquireManagementTokenAsync() if ((String.IsNullOrEmpty(result?.AccessToken))) { - throw new AuthenticationException("Unable to aquire an Active Directory token for the Event Hubs management client."); + throw new AuthenticationException("Unable to acquire an Active Directory token for the Event Hubs management client."); } token = new ManagementToken(result.AccessToken, result.ExpiresOn); @@ -156,9 +201,21 @@ private static async Task AquireManagementTokenAsync() return token.Token; } + public struct NamespaceProperties + { + public readonly string Name; + public readonly string ConnectionString; + + internal NamespaceProperties(string name, + string connectionString) + { + Name = name; + ConnectionString = connectionString; + } + } + private class ManagementToken { - public readonly string Token; public readonly DateTimeOffset ExpiresOn; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/LiveTestAttribute.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/LiveTestAttribute.cs index b6f1a557d203..6b3ca11dd66a 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/LiveTestAttribute.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/LiveTestAttribute.cs @@ -10,6 +10,6 @@ namespace Microsoft.Azure.EventHubs.Tests [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)] public class LiveTestAttribute : Attribute, ITraitAttribute { - public LiveTestAttribute(string name = "TestCategory", string value = "Live") {} + public LiveTestAttribute(string name = "TestCategory", string value = "Live") { } } } diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs index e92c08c07393..fed65fdb3937 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs @@ -9,7 +9,7 @@ internal static class TestConstants { // Environment Variables internal const string EventHubsConnectionStringEnvironmentVariableName = "EVENT_HUBS_CONNECTION_STRING"; - internal const string StorageConnectionStringEnvironmentVariableName = "EVENT_HUBS_STORAGE_CONNECTION_STRING"; + internal const string StorageConnectionStringEnvironmentVariableName = "EVENT_HUBS_STORAGE_CONNECTION_STRING"; internal const string EventHubsSubscriptionEnvironmentVariableName = "EVENT_HUBS_SUBSCRIPTION"; internal const string EventHubsResourceGroupEnvironmentVariableName = "EVENT_HUBS_RESOURCEGROUP"; internal const string EventHubsNamespaceEnvironmentVariableName = "EVENT_HUBS_NAMESPACE"; @@ -19,6 +19,6 @@ internal static class TestConstants // General - internal static readonly TimeSpan DefaultOperationTimeout = TimeSpan.FromSeconds(30); + internal static readonly TimeSpan DefaultOperationTimeout = TimeSpan.FromSeconds(30); } } \ No newline at end of file diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs new file mode 100755 index 000000000000..e3fbd90b049d --- /dev/null +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +using Xunit.Abstractions; +using Xunit.Sdk; + +namespace Microsoft.Azure.EventHubs.Tests +{ + public class TestRunFixture : XunitTestFramework, IDisposable + { + public TestRunFixture(IMessageSink messageSink) : base(messageSink) + { + // Initialization for the full test run should appear here. + } + + public new void Dispose() + { + if (TestUtility.WasEventHubsNamespaceCreated) + { + EventHubScope.DeleteNamespaceAsync(TestUtility.EventHubsNamespace).GetAwaiter().GetResult(); + } + + base.Dispose(); + } + } +} diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs index 7289af966470..a4f0adb94548 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs @@ -13,53 +13,45 @@ namespace Microsoft.Azure.EventHubs.Tests internal static class TestUtility { - - private static readonly Lazy EventHubsConnectionStringInstance = - new Lazy( () => ReadEnvironmentVariable(TestConstants.EventHubsConnectionStringEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - private static readonly Lazy StorageConnectionStringInstance = - new Lazy( () => ReadEnvironmentVariable(TestConstants.StorageConnectionStringEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - + new Lazy(() => ReadEnvironmentVariable(TestConstants.StorageConnectionStringEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); + private static readonly Lazy EventHubsSubscriptionInstance = new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsSubscriptionEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - + private static readonly Lazy EventHubsResourceGroupInstance = new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsResourceGroupEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - - private static readonly Lazy EventHubsNamespaceInstance = - new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsNamespaceEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - + private static readonly Lazy EventHubsTenantInstance = new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsTenantEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - + private static readonly Lazy EventHubsClientInstance = new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsClientEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - + private static readonly Lazy EventHubsSecretInstance = new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsSecretEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - internal static string EventHubsConnectionString => EventHubsConnectionStringInstance.Value; + private static readonly Lazy ActiveEventHubsNamespace = + new Lazy(() => EventHubScope.CreateNamespaceAsync().GetAwaiter().GetResult(), LazyThreadSafetyMode.ExecutionAndPublication); + + internal static bool WasEventHubsNamespaceCreated => ActiveEventHubsNamespace.IsValueCreated; + + internal static string EventHubsConnectionString => ActiveEventHubsNamespace.Value.ConnectionString; + + internal static string EventHubsNamespace => ActiveEventHubsNamespace.Value.Name; internal static string StorageConnectionString => StorageConnectionStringInstance.Value; internal static string EventHubsSubscription => EventHubsSubscriptionInstance.Value; - internal static string EventHubsResourceGroup => EventHubsResourceGroupInstance.Value; - - internal static string EventHubsNamespace => EventHubsNamespaceInstance.Value; - - internal static string EventHubsTenant => EventHubsTenantInstance.Value; - internal static string EventHubsClient => EventHubsClientInstance.Value; - internal static string EventHubsSecret => EventHubsSecretInstance.Value; - internal static string GetEntityConnectionString(string entityName) => new EventHubsConnectionStringBuilder(EventHubsConnectionString) { EntityPath = entityName }.ToString(); @@ -111,7 +103,7 @@ internal static void Log(string message) Debug.WriteLine(formattedMessage); Console.WriteLine(formattedMessage); } - + public static string BuildEventHubsConnectionString(string eventHubName) { var connectionString = new EventHubsConnectionStringBuilder(EventHubsConnectionString); @@ -121,7 +113,7 @@ public static string BuildEventHubsConnectionString(string eventHubName) return connectionString.ToString(); } - + private static string ReadEnvironmentVariable(string variableName) { var environmentVar = Environment.GetEnvironmentVariable(variableName); diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Instrastructure.Tests/TaskExtensionTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Instrastructure.Tests/TaskExtensionTests.cs index 4e64474a2f99..e0e30919f417 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Instrastructure.Tests/TaskExtensionTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Instrastructure.Tests/TaskExtensionTests.cs @@ -4,7 +4,6 @@ namespace Microsoft.Azure.EventHubs.Tests { using System; - using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Xunit; @@ -12,7 +11,7 @@ namespace Microsoft.Azure.EventHubs.Tests public class TaskExtensionsTests { // It has been observed during the CI build that test runs can cause delays that were noted at - // 1-2 seconds and were causing intermitten failures as a result. The long delay has been set at 5 + // 1-2 seconds and were causing intermittent failures as a result. The long delay has been set at 5 // seconds arbitrarily, which may delay results should tests fail but is otherwise not expected to // be an actual wait time under normal circumstances. private readonly TimeSpan LongDelay = TimeSpan.FromSeconds(5); @@ -44,7 +43,7 @@ public async Task WithTimeoutGenericThrowsWhenATimeoutOccursAndNoActionIsSpecifi { Func actionUnderTest = async () => await Task.Delay(LongDelay) - .ContinueWith( _ => "blue") + .ContinueWith(_ => "blue") .WithTimeout(TinyDelay); await Assert.ThrowsAsync(actionUnderTest); @@ -63,7 +62,7 @@ public async Task WithTimeoutGeneticExecutesTheTimeoutCallbackWhenATimeoutOccurs }; var result = await Task.Delay(LongDelay) - .ContinueWith( _ => "blue") + .ContinueWith(_ => "blue") .WithTimeout(TinyDelay, null, timeoutCallback); Assert.True(timeoutActionInvoked, "The timeout action should have been invoked."); @@ -94,7 +93,7 @@ public async Task WithTimeoutGenericDoesNotThrowsWhenATimeoutDoesNotOccur() try { - await Task.Delay(TinyDelay).ContinueWith( _ => "blue").WithTimeout(LongDelay); + await Task.Delay(TinyDelay).ContinueWith(_ => "blue").WithTimeout(LongDelay); } catch (TimeoutException) { @@ -108,7 +107,7 @@ public async Task WithTimeoutGenericDoesNotThrowsWhenATimeoutDoesNotOccur() public async Task WithTimeoutGenericReturnsTheValueWhenATimeoutDoesNotOccur() { var expected = "hello"; - var result = await Task.Delay(TinyDelay).ContinueWith( _ => expected).WithTimeout(LongDelay); + var result = await Task.Delay(TinyDelay).ContinueWith(_ => expected).WithTimeout(LongDelay); Assert.Equal(result, expected); } @@ -127,7 +126,7 @@ public async Task WithTimeoutPropagatesAnExceptionThatCompletesBeforeTimeout() { Func actionUnderTest = async () => await Task.Delay(TinyDelay) - .ContinueWith( _ => throw new MissingMemberException("oh no")) + .ContinueWith(_ => throw new MissingMemberException("oh no")) .WithTimeout(LongDelay); await Assert.ThrowsAsync(actionUnderTest); @@ -136,10 +135,10 @@ await Task.Delay(TinyDelay) [Fact] public async Task WithTimeoutGenericPropagatesAnExceptionThatCompletesBeforeTimeout() { - Func actionUnderTest = async () => - await Task.Delay(TinyDelay) - .ContinueWith( _ => throw new MissingMemberException("oh no")) - .WithTimeout(LongDelay); + Func actionUnderTest = async () => + await Task.Delay(TinyDelay) + .ContinueWith(_ => throw new MissingMemberException("oh no")) + .WithTimeout(LongDelay); await Assert.ThrowsAsync(actionUnderTest); } @@ -175,12 +174,12 @@ public async Task WithTimeoutInvokesTheCancellationTokenWhenATimeoutOccurs() [Fact] public async Task WithTimeoutGenericInvokesTheCancellationTokenWhenATimeoutOccurs() { - var token = new CancellationTokenSource(); + var token = new CancellationTokenSource(); try { await Task.Delay(LongDelay) - .ContinueWith( _ => "hello") + .ContinueWith(_ => "hello") .WithTimeout(TinyDelay, token); } diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj index e7a6aec08b01..f874b3f2ccdf 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj @@ -21,6 +21,7 @@ + diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorNegativeCases.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorNegativeCases.cs index 81985f229b24..1bc037a0816c 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorNegativeCases.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorNegativeCases.cs @@ -4,10 +4,6 @@ namespace Microsoft.Azure.EventHubs.Tests.Processor { using System; - using System.Collections.Concurrent; - using System.Collections.Generic; - using System.Linq; - using System.Text; using System.Threading.Tasks; using Microsoft.Azure.EventHubs.Processor; using Xunit; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorTestBase.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorTestBase.cs index 65457ad97919..eec7b17b5bd9 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorTestBase.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Processor/ProcessorTestBase.cs @@ -18,14 +18,14 @@ namespace Microsoft.Azure.EventHubs.Tests.Processor public class ProcessorTestBase { - + public string[] GetPartitionIds(string connectionString) { var ehClient = EventHubClient.CreateFromConnectionString(connectionString); var eventHubInfo = ehClient.GetRuntimeInformationAsync().WaitAndUnwrapException(); return eventHubInfo.PartitionIds; } - + /// /// Validating cases where entity path is provided through eventHubPath and EH connection string parameters /// on the EPH constructor. @@ -35,79 +35,79 @@ public string[] GetPartitionIds(string connectionString) [DisplayTestMethodName] public void ProcessorHostEntityPathSetting() { - var connectionString = TestUtility.BuildEventHubsConnectionString("dimmyeventhubname"); - var csb = new EventHubsConnectionStringBuilder(connectionString) - { - EntityPath = "myeh" - }; + var connectionString = TestUtility.BuildEventHubsConnectionString("dimmyeventhubname"); + var csb = new EventHubsConnectionStringBuilder(connectionString) + { + EntityPath = "myeh" + }; - // Entity path provided in the connection string. - TestUtility.Log("Testing condition: Entity path provided in the connection string only."); - var eventProcessorHost = new EventProcessorHost( - null, - PartitionReceiver.DefaultConsumerGroupName, - csb.ToString(), - TestUtility.StorageConnectionString, - "dimmyeventhubname".ToLower()); - Assert.Equal("myeh", eventProcessorHost.EventHubPath); + // Entity path provided in the connection string. + TestUtility.Log("Testing condition: Entity path provided in the connection string only."); + var eventProcessorHost = new EventProcessorHost( + null, + PartitionReceiver.DefaultConsumerGroupName, + csb.ToString(), + TestUtility.StorageConnectionString, + "dimmyeventhubname".ToLower()); + Assert.Equal("myeh", eventProcessorHost.EventHubPath); + + // Entity path provided in the eventHubPath parameter. + TestUtility.Log("Testing condition: Entity path provided in the eventHubPath only."); + csb.EntityPath = null; + eventProcessorHost = new EventProcessorHost( + "myeh2", + PartitionReceiver.DefaultConsumerGroupName, + csb.ToString(), + TestUtility.StorageConnectionString, + "dimmyeventhubname".ToLower()); + Assert.Equal("myeh2", eventProcessorHost.EventHubPath); + + // The same entity path provided in both eventHubPath parameter and the connection string. + TestUtility.Log("Testing condition: The same entity path provided in the eventHubPath and connection string."); + csb.EntityPath = "mYeH"; + eventProcessorHost = new EventProcessorHost( + "myeh", + PartitionReceiver.DefaultConsumerGroupName, + csb.ToString(), + TestUtility.StorageConnectionString, + "dimmyeventhubname".ToLower()); + Assert.Equal("myeh", eventProcessorHost.EventHubPath); - // Entity path provided in the eventHubPath parameter. - TestUtility.Log("Testing condition: Entity path provided in the eventHubPath only."); + // Entity path not provided in both eventHubPath and the connection string. + TestUtility.Log("Testing condition: Entity path not provided in both eventHubPath and connection string."); + try + { csb.EntityPath = null; - eventProcessorHost = new EventProcessorHost( - "myeh2", + new EventProcessorHost( + string.Empty, PartitionReceiver.DefaultConsumerGroupName, csb.ToString(), TestUtility.StorageConnectionString, "dimmyeventhubname".ToLower()); - Assert.Equal("myeh2", eventProcessorHost.EventHubPath); + throw new Exception("Entity path wasn't provided and this new call was supposed to fail"); + } + catch (ArgumentException) + { + TestUtility.Log("Caught ArgumentException as expected."); + } - // The same entity path provided in both eventHubPath parameter and the connection string. - TestUtility.Log("Testing condition: The same entity path provided in the eventHubPath and connection string."); - csb.EntityPath = "mYeH"; - eventProcessorHost = new EventProcessorHost( - "myeh", + // Entity path conflict. + TestUtility.Log("Testing condition: Entity path conflict."); + try + { + csb.EntityPath = "myeh"; + new EventProcessorHost( + "myeh2", PartitionReceiver.DefaultConsumerGroupName, csb.ToString(), TestUtility.StorageConnectionString, "dimmyeventhubname".ToLower()); - Assert.Equal("myeh", eventProcessorHost.EventHubPath); - - // Entity path not provided in both eventHubPath and the connection string. - TestUtility.Log("Testing condition: Entity path not provided in both eventHubPath and connection string."); - try - { - csb.EntityPath = null; - new EventProcessorHost( - string.Empty, - PartitionReceiver.DefaultConsumerGroupName, - csb.ToString(), - TestUtility.StorageConnectionString, - "dimmyeventhubname".ToLower()); - throw new Exception("Entity path wasn't provided and this new call was supposed to fail"); - } - catch (ArgumentException) - { - TestUtility.Log("Caught ArgumentException as expected."); - } - - // Entity path conflict. - TestUtility.Log("Testing condition: Entity path conflict."); - try - { - csb.EntityPath = "myeh"; - new EventProcessorHost( - "myeh2", - PartitionReceiver.DefaultConsumerGroupName, - csb.ToString(), - TestUtility.StorageConnectionString, - "dimmyeventhubname".ToLower()); - throw new Exception("Entity path values conflict and this new call was supposed to fail"); - } - catch (ArgumentException) - { - TestUtility.Log("Caught ArgumentException as expected."); - } + throw new Exception("Entity path values conflict and this new call was supposed to fail"); + } + catch (ArgumentException) + { + TestUtility.Log("Caught ArgumentException as expected."); + } } [Fact] @@ -137,7 +137,7 @@ public async Task MultipleProcessorHosts() { await using (var scope = await EventHubScope.CreateAsync(3)) { - var connectionString = TestUtility.BuildEventHubsConnectionString(scope.EventHubName); + var connectionString = TestUtility.BuildEventHubsConnectionString(scope.EventHubName); string[] PartitionIds = GetPartitionIds(connectionString); int hostCount = 3; @@ -683,7 +683,7 @@ public async Task HostShouldRecoverAfterReceiverDisconnection() { await using (var scope = await EventHubScope.CreateAsync(1)) { - var connectionString = TestUtility.BuildEventHubsConnectionString(scope.EventHubName); + var connectionString = TestUtility.BuildEventHubsConnectionString(scope.EventHubName); string[] PartitionIds = GetPartitionIds(connectionString); // We will target one partition and do validation on it. var targetPartition = PartitionIds.First(); @@ -887,8 +887,8 @@ public async Task HostShouldRecoverWhenProcessEventsAsyncThrows() { TestUtility.Log($"{hostName} > {consumerGroupName} > Partition {partitionId} TestEventProcessor process error {errorArgs.Item2.Message}"); - // Throw once more here depending on where we are at exception sequence. - if (errorArgs.Item2.Message.Contains("ExceptionSequence1")) + // Throw once more here depending on where we are at exception sequence. + if (errorArgs.Item2.Message.Contains("ExceptionSequence1")) { throw new Exception("ExceptionSequence2"); } @@ -906,16 +906,16 @@ public async Task HostShouldRecoverWhenProcessEventsAsyncThrows() foreach (var e in eventsArgs.Item2.events) { - // If this is poisoned event then throw. - if (!poisonMessageReceived && e.Properties.ContainsKey(poisonMessageProperty)) + // If this is poisoned event then throw. + if (!poisonMessageReceived && e.Properties.ContainsKey(poisonMessageProperty)) { poisonMessageReceived = true; TestUtility.Log($"Received poisoned message from partition {partitionId}"); throw new Exception("ExceptionSequence1"); } - // Track received events so we can validate at the end. - if (!receivedEventCounts.ContainsKey(partitionId)) + // Track received events so we can validate at the end. + if (!receivedEventCounts.ContainsKey(partitionId)) { receivedEventCounts[partitionId] = 0; } @@ -939,7 +939,7 @@ public async Task HostShouldRecoverWhenProcessEventsAsyncThrows() TestUtility.Log("Waiting for partition ownership to settle..."); await Task.Delay(TimeSpan.FromSeconds(5)); - + // Send first set of messages. TestUtility.Log("Sending an event to each partition as the first set of messages."); @@ -1105,7 +1105,7 @@ public async Task ReRegisterAfterLeaseExpiry() private async Task>> DiscoverEndOfStream(string connectionString) { string[] PartitionIds = GetPartitionIds(connectionString); - var ehClient = EventHubClient.CreateFromConnectionString(connectionString); + var ehClient = EventHubClient.CreateFromConnectionString(connectionString); var partitions = new Dictionary>(); foreach (var pid in PartitionIds) @@ -1184,7 +1184,7 @@ private async Task RunGenericScenario(EventProcessorHost if (totalNumberOfEventsToSend > 0) { var ehClient = EventHubClient.CreateFromConnectionString(TestUtility.BuildEventHubsConnectionString(eventProcessorHost.EventHubPath)); - TestUtility.Log($"Sending {totalNumberOfEventsToSend} event(s) to each partition"); + TestUtility.Log($"Sending {totalNumberOfEventsToSend} event(s) to each partition"); var sendTasks = new List(); foreach (var partitionId in PartitionIds) { @@ -1221,7 +1221,7 @@ private async Task RunGenericScenario(EventProcessorHost private async Task GetOptionsAsync(string connectionString) { - var partitions = await DiscoverEndOfStream( connectionString); + var partitions = await DiscoverEndOfStream(connectionString); return new EventProcessorOptions { MaxBatchSize = 100, diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Properties/AssemblyInfo.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Properties/AssemblyInfo.cs index ddfcf1cb906f..d0b8d65adff9 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Properties/AssemblyInfo.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using Xunit; +[assembly: Xunit.TestFramework("Microsoft.Azure.EventHubs.Tests.TestRunFixture", "Microsoft.Azure.EventHubs.Tests")] diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/CheckpointingTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/CheckpointingTests.cs index cfeba3782b4c..bd61e8e533cd 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/CheckpointingTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/CheckpointingTests.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.EventHubs.Tests.ServiceFabricProcessor public class CheckpointingTests { - [Fact(Skip="Test not reliable under macOS; to be investigated as art of issue #5451")] + [Fact(Skip = "Test not reliable under macOS; to be investigated as art of issue #5451")] [DisplayTestMethodName] public void CheckpointBatchTest() { diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/EventHubExceptionTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/EventHubExceptionTests.cs index 73f9c215b48e..b87d4063ed47 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/EventHubExceptionTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/EventHubExceptionTests.cs @@ -4,8 +4,6 @@ namespace Microsoft.Azure.EventHubs.Tests.ServiceFabricProcessor { using System; - using System.Collections.Generic; - using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.Azure.EventHubs.ServiceFabricProcessor; @@ -490,8 +488,11 @@ public override EventHubWrappers.IEventHubClient Create(string connectionString, } } - private enum EHErrorLocation { EventHubClientCreation, GetRuntimeInformation, CreateReceiver, Receiving, - ReceiverClosing, EventHubClientClosing }; + private enum EHErrorLocation + { + EventHubClientCreation, GetRuntimeInformation, CreateReceiver, Receiving, + ReceiverClosing, EventHubClientClosing + }; private abstract class EHErrorInjector { diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/UserExceptionTests.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/UserExceptionTests.cs index d14db3853f47..bc43dedc48c0 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/UserExceptionTests.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/UserExceptionTests.cs @@ -85,7 +85,7 @@ public void CloseException() Assert.Null(state.ShutdownException); } - [Fact(Skip="Test not reliable under macOS; to be investigated as art of issue #5451")] + [Fact(Skip = "Test not reliable under macOS; to be investigated as art of issue #5451")] [DisplayTestMethodName] public void EventException() { @@ -122,7 +122,7 @@ public void EventException() Assert.Null(state.ShutdownException); } - [Fact(Skip="Test not reliable under macOS; to be investigated as art of issue #5451")] + [Fact(Skip = "Test not reliable under macOS; to be investigated as art of issue #5451")] [DisplayTestMethodName] public void ErrorException() { From 1fbd5f70a68d7ceb3db55b333fa6dd0d366521cd Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Wed, 14 Aug 2019 14:32:48 -0400 Subject: [PATCH 14/24] [Event Hubs Client] Track One: Ephemeral Test Storage Accounts - Enhanced resource management approach for tests moving to a strategy where each test run creates an Azure storage instance that is removed when the run completes. Creation is only performed when an Event Hub scope is requested by a Live test. --- .../Azure.Messaging.EventHubs/CONTRIBUTING.md | 2 +- .../assets/live-tests-azure-setup.ps1 | 20 ++--- .../Microsoft.Azure.EventHubs/README.md | 5 +- .../assets/live-tests-azure-setup.ps1 | 82 +++---------------- .../tests/Infrastructure/EventHubScope.cs | 67 +++++++++++---- .../tests/Infrastructure/TestConstants.cs | 3 - .../tests/Infrastructure/TestRunFixture.cs | 16 +++- .../tests/Infrastructure/TestUtility.cs | 16 ++-- .../Microsoft.Azure.EventHubs.Tests.csproj | 1 + 9 files changed, 102 insertions(+), 110 deletions(-) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md b/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md index 2d2827b49eb5..4bfa5bf0cbfe 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md @@ -27,7 +27,7 @@ Tests in the Event Hubs client library are split into two categories: - **Unit tests** have no special considerations; these are self-contained and execute locally without any reliance on external resources. Unit tests are considered the default test type in the Event Hubs client library and, thus, have no explicit category trait attached to them. -- **Integration tests** have dependencies on live Azure resources and require setting up your development environment prior to running. Known in the Azure SDK project commonly as "Live" tests, these tests are decorated with a category trait of "Live". Specifically, an Azure resource group and Azure Service Principal with "contributor" rights to that resource group is required. For each test run, the Live tests will use the service principal to dynamically create an Event Hubs namespace within the resource group and remove it once the test run is complete. +- **Integration tests** have dependencies on live Azure resources and require setting up your development environment prior to running. Known in the Azure SDK project commonly as "Live" tests, these tests are decorated with a category trait of "Live". To run them, an Azure resource group and Azure Service Principal with "contributor" rights to that resource group are required. For each test run, the Live tests will use the service principal to dynamically create an Event Hubs namespace within the resource group and remove it once the test run is complete. The Live tests read information from the following environment variables: diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1 b/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1 index 1a6fb1d9b23b..14622439b128 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1 +++ b/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1 @@ -78,7 +78,7 @@ function DisplayHelp Write-Host "$($indent)for use with the Event Hubs client library Live test suite." Write-Host "" Write-Host "$($indent)Upon completion, the script will output a set of environment variables with sensitive information which" - Write-Host "$($indent)fare used for testing. When running Live tests, please be sure to have these environment variables available," + Write-Host "$($indent)are used for testing. When running Live tests, please be sure to have these environment variables available," Write-Host "$($indent)either within Visual Studio or command line environment." Write-Host "" Write-Host "$($indent)NOTE: Some of these values, such as the client secret, are difficult to recover; please copy them and keep in a" @@ -98,7 +98,7 @@ function DisplayHelp Write-Host "$($indent)`t`t`t`tused for the tests. This will be created if it does not exist." Write-Host "" - Write-Host "$($indent)-ServicePrincipalName`tThe name to use for the service principal that will be" + Write-Host "$($indent)-ServicePrincipalName`tThe name to use for the service principal that will" Write-Host "$($indent)`t`t`t`tbe created to manage the Event Hub instances dynamically for the tests. This" Write-Host "$($indent)`t`t`t`tprincipal must not already exist." Write-Host "" @@ -159,10 +159,10 @@ function TearDownResources { <# .SYNOPSIS - Cleans up any Azure resoruces created by the script. + Cleans up any Azure resources created by the script. .DESCRIPTION - Responsible for cleaning up any Azure resoruces created + Responsible for cleaning up any Azure resources created by the script in case of failure. #> @@ -205,7 +205,7 @@ if ([String]::IsNullOrEmpty($AzureRegion)) $AzureRegion = "southcentralus" } -# Disallow prinicpal names with a space. +# Disallow principal names with a space. if ($ServicePrincipalName.Contains(" ")) { @@ -254,22 +254,22 @@ if ($resourceGroup -eq $null) if ($createResourceGroup) { - Write-Host "`t...Creaating new resource group" + Write-Host "`t...Creating new resource group" $resourceGroup = (New-AzResourceGroup -Name "$($ResourceGroupName)" -Location "$($AzureRegion)") } if ($resourceGroup -eq $null) { - Write-Error "Unable to locate or create the resource goup: $($ResourceGroupName)" + Write-Error "Unable to locate or create the resource group: $($ResourceGroupName)" exit -1 } # At this point, we may have created a resource, so be safe and allow for removing any -# resoruces created should the script fail. +# resources created should the script fail. try { - # Create the service prinicpal and grant contributor access for management in the resource group. + # Create the service principal and grant contributor access for management in the resource group. Write-Host "`t...Creating new service principal" Start-Sleep 1 @@ -301,7 +301,7 @@ try New-AzRoleAssignment -ApplicationId "$($principal.ApplicationId)" -RoleDefinitionName "Contributor" -ResourceGroupName "$($ResourceGroupName)" | Out-Null } - # Write the environment variables + # Write the environment variables. Write-Host "Done." Write-Host "" diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/README.md b/sdk/eventhub/Microsoft.Azure.EventHubs/README.md index 6da57a5e8ff6..9bee0bae4b11 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/README.md +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/README.md @@ -63,7 +63,7 @@ Tests in the Event Hubs client library are split into two categories: - **Unit tests** have no special considerations; these are self-contained and execute locally without any reliance on external resources. Unit tests are considered the default test type in the Event Hubs client library and, thus, have no explicit category trait attached to them. -- **Integration tests** have dependencies on live Azure resources and require setting up your development environment prior to running. Known in the Azure SDK project commonly as "Live" tests, these tests are decorated with a category trait of "Live". Specifically, an Azure resource group and Azure Service Principal with "contributor" rights to that resource group is required. For each test run, the Live tests will use the service principal to dynamically create an Event Hubs namespace within the resource group and remove it once the test run is complete. +- **Integration tests** have dependencies on live Azure resources and require setting up your development environment prior to running. Known in the Azure SDK project commonly as "Live" tests, these tests are decorated with a category trait of "LiveTest". To run them, an Azure resource group and Azure Service Principal with "contributor" rights to that resource group are required. For each test run, the Live tests will use the service principal to dynamically create an Event Hubs namespace and Azure Storage account within the resource group and remove them once the test run is complete. The Live tests read information from the following environment variables: @@ -82,9 +82,6 @@ The Live tests read information from the following environment variables: `EVENT_HUBS_SECRET` The client secret (password) of the Azure Active Directory application that is associated with the service principal -`EVENT_HUBS_STORAGE_CONNECTION_STRING` - The connection string for the Azure storage account used by the Event Processor Host series of tests. - To make setting up your environment easier, a [PowerShell script](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1) is included in the repository and will create and/or configure the needed Azure resources. To use this script, open a PowerShell instance and login to your Azure account using `Login-AzAccount`, then execute the script. You will need to provide some information, after which the script will configure the Azure resources and then output the set of environment variables with the correct values for running tests. The simplest way to get started is to execute the script with your subscription name and then follow the prompts: diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 b/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 index 126701efa719..14622439b128 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 @@ -36,11 +36,6 @@ param [ValidateNotNullOrEmpty()] [string] $ResourceGroupName, - [Parameter(Mandatory=$true, ParameterSetName="Execute")] - [ValidateNotNullOrEmpty()] - [ValidateScript({ $_.Length -ge 6})] - [string] $StorageAccountName, - [Parameter(Mandatory=$true, ParameterSetName="Execute")] [ValidateNotNullOrEmpty()] [ValidateScript({ $_.Length -ge 6})] @@ -83,7 +78,7 @@ function DisplayHelp Write-Host "$($indent)for use with the Event Hubs client library Live test suite." Write-Host "" Write-Host "$($indent)Upon completion, the script will output a set of environment variables with sensitive information which" - Write-Host "$($indent)fare used for testing. When running Live tests, please be sure to have these environment variables available," + Write-Host "$($indent)are used for testing. When running Live tests, please be sure to have these environment variables available," Write-Host "$($indent)either within Visual Studio or command line environment." Write-Host "" Write-Host "$($indent)NOTE: Some of these values, such as the client secret, are difficult to recover; please copy them and keep in a" @@ -103,12 +98,7 @@ function DisplayHelp Write-Host "$($indent)`t`t`t`tused for the tests. This will be created if it does not exist." Write-Host "" - Write-Host "$($indent)-StorageAccountName`t`tThe name of the Azure Storage account that will be used as durable " - Write-Host "$($indent)`t`t`t`tstorage for the Event Processor Host series of tests. This will be created if it does" - Write-Host "$($indent)`t`t`t`tnot exist." - Write-Host "" - - Write-Host "$($indent)-ServicePrincipalName`tThe name to use for the service principal that will be" + Write-Host "$($indent)-ServicePrincipalName`tThe name to use for the service principal that will" Write-Host "$($indent)`t`t`t`tbe created to manage the Event Hub instances dynamically for the tests. This" Write-Host "$($indent)`t`t`t`tprincipal must not already exist." Write-Host "" @@ -169,39 +159,21 @@ function TearDownResources { <# .SYNOPSIS - Cleans up any Azure resoruces created by the script. + Cleans up any Azure resources created by the script. .DESCRIPTION - Responsible for cleaning up any Azure resoruces created + Responsible for cleaning up any Azure resources created by the script in case of failure. #> param ( [Parameter(Mandatory=$true)] - [bool] $cleanResourceGroup, - - [Parameter(Mandatory=$true)] - [bool] $cleanStorage + [bool] $cleanResourceGroup ) Write-Host("Cleaning up resources that were created:") - if ($cleanStorage) - { - try - { - Write-Host "`t...Removing Azure Storage account `"$($AzureStorageName)`"" - Remove-AzStorageAccount -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)" -Force | Out-Null - } - catch - { - Write-Error "The Azure Storage account: $($StorageAccountName) could not be removed. You will need to delete this manually." - Write-Error "" - Write-Error $_.Exception.Message - } - } - if ($cleanResourceGroup) { try @@ -233,7 +205,7 @@ if ([String]::IsNullOrEmpty($AzureRegion)) $AzureRegion = "southcentralus" } -# Disallow prinicpal names with a space. +# Disallow principal names with a space. if ($ServicePrincipalName.Contains(" ")) { @@ -282,50 +254,22 @@ if ($resourceGroup -eq $null) if ($createResourceGroup) { - Write-Host "`t...Creaating new resource group" + Write-Host "`t...Creating new resource group" $resourceGroup = (New-AzResourceGroup -Name "$($ResourceGroupName)" -Location "$($AzureRegion)") } if ($resourceGroup -eq $null) { - Write-Error "Unable to locate or create the resource goup: $($ResourceGroupName)" + Write-Error "Unable to locate or create the resource group: $($ResourceGroupName)" exit -1 } # At this point, we may have created a resource, so be safe and allow for removing any -# resoruces created should the script fail. +# resources created should the script fail. try { - # Create the Azure Storage account, if needed. - - Write-Host "`t...Requesting Azure Storage account" - $createStorage = $false - $storageAccount = (Get-AzStorageAccount -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)" -ErrorAction SilentlyContinue) - - if ($storageAccount -eq $null) - { - $createStorage = $true - } - - if ($createStorage) - { - Write-Host "`t...Creating new Azure Storage account" - Start-Sleep 1 - - $storageAccount = (New-AzStorageAccount -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)" -Location "$($AzureRegion)" -SkuName "Standard_LRS") - } - - if ($storageAccount -eq $null) - { - Write-Error "Unable to locate or create the Azure Storage account: $($StorageAccountName)" - TearDownResources $createResourceGroup $createStorage $false - exit -1 - } - - $storageKey = (Get-AzStorageAccountKey -ResourceGroupName "$($ResourceGroupName)" -Name "$($StorageAccountName)").Value[0] - - # Create the service prinicpal and grant contributor access for management in the resource group. + # Create the service principal and grant contributor access for management in the resource group. Write-Host "`t...Creating new service principal" Start-Sleep 1 @@ -357,7 +301,7 @@ try New-AzRoleAssignment -ApplicationId "$($principal.ApplicationId)" -RoleDefinitionName "Contributor" -ResourceGroupName "$($ResourceGroupName)" | Out-Null } - # Write the environment variables + # Write the environment variables. Write-Host "Done." Write-Host "" @@ -372,12 +316,10 @@ try Write-Host "" Write-Host "EVENT_HUBS_SECRET=$($credentials.Password)" Write-Host "" - Write-Host "EVENT_HUBS_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=$($StorageAccountName);AccountKey=$($storageKey);EndpointSuffix=core.windows.net" - Write-Host "" } catch { Write-Error $_.Exception.Message - TearDownResources $createResourceGroup $createStorage + TearDownResources $createResourceGroup exit -1 } diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs index eedb121e7317..f7dc803cb80f 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/EventHubScope.cs @@ -12,10 +12,13 @@ using Microsoft.Azure.Management.EventHub; using Microsoft.Azure.Management.EventHub.Models; using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.Storage; using Microsoft.IdentityModel.Clients.ActiveDirectory; using Microsoft.Rest; using Polly; +using Storage = Microsoft.Azure.Management.Storage.Models; + namespace Microsoft.Azure.EventHubs.Tests { internal sealed class EventHubScope : IAsyncDisposable @@ -106,7 +109,7 @@ await Task.WhenAll } } - public static async Task CreateNamespaceAsync() + public static async Task CreateNamespaceAsync() { var subscription = TestUtility.EventHubsSubscription; var resourceGroup = TestUtility.EventHubsResourceGroup; @@ -118,20 +121,11 @@ public static async Task CreateNamespaceAsync() { var location = await QueryResourceGroupLocationAsync(token, resourceGroup, subscription); - var tags = new Dictionary - { - { "source", typeof(EventHubScope).Assembly.GetName().Name }, - { "platform", System.Runtime.InteropServices.RuntimeInformation.OSDescription }, - { "framework", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription }, - { "created", $"{ DateTimeOffset.UtcNow.ToString("s") }Z" }, - { "cleanup-after", $"{ DateTimeOffset.UtcNow.AddDays(1).ToString("s") }Z" } - }; - - var eventHubsNamespace = new EHNamespace(sku: new Sku("Standard", "Standard", 12), tags: tags, isAutoInflateEnabled: true, maximumThroughputUnits: 20, location: location); + var eventHubsNamespace = new EHNamespace(sku: new Sku("Standard", "Standard", 12), tags: GetResourceTags(), isAutoInflateEnabled: true, maximumThroughputUnits: 20, location: location); eventHubsNamespace = await CreateRetryPolicy().ExecuteAsync(() => client.Namespaces.CreateOrUpdateAsync(resourceGroup, CreateName(), eventHubsNamespace)); var accessKey = await CreateRetryPolicy().ExecuteAsync(() => client.Namespaces.ListKeysAsync(resourceGroup, eventHubsNamespace.Name, "RootManageSharedAccessKey")); - return new NamespaceProperties(eventHubsNamespace.Name, accessKey.PrimaryConnectionString); + return new AzureResourceProperties(eventHubsNamespace.Name, accessKey.PrimaryConnectionString); } } @@ -148,6 +142,39 @@ public static async Task DeleteNamespaceAsync(string namespaceName) } } + public static async Task CreateStorageAsync() + { + var subscription = TestUtility.EventHubsSubscription; + var resourceGroup = TestUtility.EventHubsResourceGroup; + var token = await AquireManagementTokenAsync(); + + string CreateName() => $"neteventhubstrackone{ Guid.NewGuid().ToString("D").Substring(0, 4) }"; + + using (var client = new StorageManagementClient(new TokenCredentials(token)) { SubscriptionId = subscription }) + { + var location = await QueryResourceGroupLocationAsync(token, resourceGroup, subscription); + + var sku = new Storage.Sku(Storage.SkuName.StandardLRS, Storage.SkuTier.Standard); + var parameters = new Storage.StorageAccountCreateParameters(sku, Storage.Kind.BlobStorage, location: location, tags: GetResourceTags(), accessTier: Storage.AccessTier.Hot); + var storageAccount = await CreateRetryPolicy().ExecuteAsync(() => client.StorageAccounts.CreateAsync(resourceGroup, CreateName(), parameters)); + + var storageKeys = await CreateRetryPolicy().ExecuteAsync(() => client.StorageAccounts.ListKeysAsync(resourceGroup, storageAccount.Name)); + return new AzureResourceProperties(storageAccount.Name, $"DefaultEndpointsProtocol=https;AccountName={ storageAccount.Name };AccountKey={ storageKeys.Keys[0].Value };EndpointSuffix=core.windows.net"); + } + } + + public static async Task DeleteStorageAsync(string accountName) + { + var subscription = TestUtility.EventHubsSubscription; + var resourceGroup = TestUtility.EventHubsResourceGroup; + var token = await AquireManagementTokenAsync(); + + using (var client = new StorageManagementClient(new TokenCredentials(token)) { SubscriptionId = subscription }) + { + await CreateRetryPolicy().ExecuteAsync(() => client.StorageAccounts.DeleteAsync(resourceGroup, accountName)); + } + } + private static async Task QueryResourceGroupLocationAsync(string accessToken, string resourceGroupName, string subscriptionId) @@ -159,6 +186,16 @@ private static async Task QueryResourceGroupLocationAsync(string accessT } } + private static Dictionary GetResourceTags() => + new Dictionary + { + { "source", typeof(EventHubScope).Assembly.GetName().Name }, + { "platform", System.Runtime.InteropServices.RuntimeInformation.OSDescription }, + { "framework", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription }, + { "created", $"{ DateTimeOffset.UtcNow.ToString("s") }Z" }, + { "cleanup-after", $"{ DateTimeOffset.UtcNow.AddDays(1).ToString("s") }Z" } + }; + private static IAsyncPolicy CreateRetryPolicy(int maxRetryAttempts = RetryMaximumAttemps, double exponentialBackoffSeconds = RetryExponentialBackoffSeconds, double baseJitterSeconds = RetryBaseJitterSeconds) => Policy .Handle(ex => IsRetriableStatus(ex.Response.StatusCode)) @@ -201,13 +238,13 @@ private static async Task AquireManagementTokenAsync() return token.Token; } - public struct NamespaceProperties + public struct AzureResourceProperties { public readonly string Name; public readonly string ConnectionString; - internal NamespaceProperties(string name, - string connectionString) + internal AzureResourceProperties(string name, + string connectionString) { Name = name; ConnectionString = connectionString; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs index fed65fdb3937..7ef5fa990c0a 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestConstants.cs @@ -8,11 +8,8 @@ namespace Microsoft.Azure.EventHubs.Tests internal static class TestConstants { // Environment Variables - internal const string EventHubsConnectionStringEnvironmentVariableName = "EVENT_HUBS_CONNECTION_STRING"; - internal const string StorageConnectionStringEnvironmentVariableName = "EVENT_HUBS_STORAGE_CONNECTION_STRING"; internal const string EventHubsSubscriptionEnvironmentVariableName = "EVENT_HUBS_SUBSCRIPTION"; internal const string EventHubsResourceGroupEnvironmentVariableName = "EVENT_HUBS_RESOURCEGROUP"; - internal const string EventHubsNamespaceEnvironmentVariableName = "EVENT_HUBS_NAMESPACE"; internal const string EventHubsTenantEnvironmentVariableName = "EVENT_HUBS_TENANT"; internal const string EventHubsClientEnvironmentVariableName = "EVENT_HUBS_CLIENT"; internal const string EventHubsSecretEnvironmentVariableName = "EVENT_HUBS_SECRET"; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs index e3fbd90b049d..4b47d1e5328a 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestRunFixture.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; +using System.Threading.Tasks; using Xunit.Abstractions; using Xunit.Sdk; @@ -16,9 +17,22 @@ public TestRunFixture(IMessageSink messageSink) : base(messageSink) public new void Dispose() { + Task namespaceDeleteTask = null; + Task storageDeleteTask = null; + if (TestUtility.WasEventHubsNamespaceCreated) { - EventHubScope.DeleteNamespaceAsync(TestUtility.EventHubsNamespace).GetAwaiter().GetResult(); + namespaceDeleteTask = EventHubScope.DeleteNamespaceAsync(TestUtility.EventHubsNamespace); + } + + if (TestUtility.WasStorageAccountCreated) + { + storageDeleteTask = EventHubScope.DeleteStorageAsync(TestUtility.StorageAccountName); + } + + if (namespaceDeleteTask != null || storageDeleteTask != null) + { + Task.WhenAll(namespaceDeleteTask ?? Task.CompletedTask, storageDeleteTask ?? Task.CompletedTask).GetAwaiter().GetResult(); } base.Dispose(); diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs index a4f0adb94548..3570e228806b 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Infrastructure/TestUtility.cs @@ -13,9 +13,6 @@ namespace Microsoft.Azure.EventHubs.Tests internal static class TestUtility { - private static readonly Lazy StorageConnectionStringInstance = - new Lazy(() => ReadEnvironmentVariable(TestConstants.StorageConnectionStringEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - private static readonly Lazy EventHubsSubscriptionInstance = new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsSubscriptionEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); @@ -31,16 +28,23 @@ internal static class TestUtility private static readonly Lazy EventHubsSecretInstance = new Lazy(() => ReadEnvironmentVariable(TestConstants.EventHubsSecretEnvironmentVariableName), LazyThreadSafetyMode.PublicationOnly); - private static readonly Lazy ActiveEventHubsNamespace = - new Lazy(() => EventHubScope.CreateNamespaceAsync().GetAwaiter().GetResult(), LazyThreadSafetyMode.ExecutionAndPublication); + private static readonly Lazy ActiveEventHubsNamespace = + new Lazy(() => EventHubScope.CreateNamespaceAsync().GetAwaiter().GetResult(), LazyThreadSafetyMode.ExecutionAndPublication); + + private static readonly Lazy ActiveStorageAccount = + new Lazy(() => EventHubScope.CreateStorageAsync().GetAwaiter().GetResult(), LazyThreadSafetyMode.ExecutionAndPublication); internal static bool WasEventHubsNamespaceCreated => ActiveEventHubsNamespace.IsValueCreated; + internal static bool WasStorageAccountCreated => ActiveStorageAccount.IsValueCreated; + internal static string EventHubsConnectionString => ActiveEventHubsNamespace.Value.ConnectionString; internal static string EventHubsNamespace => ActiveEventHubsNamespace.Value.Name; - internal static string StorageConnectionString => StorageConnectionStringInstance.Value; + internal static string StorageConnectionString => ActiveStorageAccount.Value.ConnectionString; + + internal static string StorageAccountName => ActiveStorageAccount.Value.Name; internal static string EventHubsSubscription => EventHubsSubscriptionInstance.Value; diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj index f874b3f2ccdf..f05d26ea30fa 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/tests/Microsoft.Azure.EventHubs.Tests.csproj @@ -21,6 +21,7 @@ + From 32df5920d3611f6a142e3e1d86a175646203535b Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Thu, 15 Aug 2019 13:55:10 -0400 Subject: [PATCH 15/24] Apply suggestions from code review Co-Authored-By: Connie Yau --- .../Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 b/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 index 14622439b128..110ee70443e7 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/assets/live-tests-azure-setup.ps1 @@ -47,7 +47,7 @@ param ) # ===================== -# == Module Imports == +# == Module Imports == # ===================== Import-Module Az.Resources From 8ad3342b9d64a396770434679c68a6051da27224 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Fri, 16 Aug 2019 05:46:00 +0000 Subject: [PATCH 16/24] Generated from 004d77657b470329193715edd882bc1934d0785a (#90) Fix bad discriminator value on ConnectionInfo which was breaking node/js SDK generation --- .../src/Generated/Models/ConnectionInfo.cs | 1 - .../SdkInfo_DataMigrationManagementClient.cs | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ConnectionInfo.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ConnectionInfo.cs index 581ac23dbf30..3bd51dd50c37 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ConnectionInfo.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ConnectionInfo.cs @@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// /// Defines the connection properties of a server /// - [Newtonsoft.Json.JsonObject("Unknown")] public partial class ConnectionInfo { /// diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs index ba72d06751d1..137ba383fd2c 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs @@ -30,16 +30,5 @@ public static IEnumerable> ApiInfo_DataMigrationMa }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datamigration/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Dev\\Git\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "e9b03021559994e2988fd977d465685795c2f70d"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - From 3d49184a9d3f44943243e1ca35649e6abd2229a5 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Sun, 18 Aug 2019 02:19:24 +0000 Subject: [PATCH 17/24] Generated from 8fbe83055ad65a067b53daa97e20a0223d0b6834 (#76) fix examples --- .../AzureMLCommitmentPlansManagementClient.cs | 173 +- .../CommitmentAssociationsOperations.cs | 397 ++-- ...mitmentAssociationsOperationsExtensions.cs | 54 +- .../CommitmentPlansOperations.cs | 745 ++++--- .../CommitmentPlansOperationsExtensions.cs | 62 +- ...IAzureMLCommitmentPlansManagementClient.cs | 34 +- .../ICommitmentAssociationsOperations.cs | 28 +- .../ICommitmentPlansOperations.cs | 31 +- .../Generated/CommitmentPlans/IOperations.cs | 47 + .../CommitmentPlans/ISkusOperations.cs | 46 + .../IUsageHistoryOperations.cs | 19 +- .../CommitmentPlans/Models/CatalogSku.cs | 114 + .../Models/CommitmentAssociation.cs | 28 +- .../Models/CommitmentAssociationProperties.cs | 28 +- .../CommitmentPlans/Models/CommitmentPlan.cs | 30 +- .../Models/CommitmentPlanPatchPayload.cs | 28 +- .../Models/CommitmentPlanProperties.cs | 53 +- .../MoveCommitmentAssociationRequest.cs | 20 +- .../Models/OperationDisplayInfo.cs | 78 + .../CommitmentPlans/Models/OperationEntity.cs | 60 + .../Generated/CommitmentPlans/Models/Page.cs | 29 +- .../Generated/CommitmentPlans/Models/Page1.cs | 53 + .../CommitmentPlans/Models/PlanQuantity.cs | 26 +- .../Models/PlanUsageHistory.cs | 56 +- .../CommitmentPlans/Models/Resource.cs | 42 +- .../CommitmentPlans/Models/ResourceSku.cs | 36 +- .../ResourceSkuRestrictionsReasonCode.cs | 22 + .../Models/ResourceSkuRestrictionsType.cs | 22 + .../CommitmentPlans/Models/SkuCapability.cs | 59 + .../CommitmentPlans/Models/SkuCapacity.cs | 77 + .../Models/SkuCapacityScaleType.cs | 23 + .../CommitmentPlans/Models/SkuCost.cs | 69 + .../CommitmentPlans/Models/SkuRestrictions.cs | 77 + .../Generated/CommitmentPlans/Operations.cs | 228 ++ .../CommitmentPlans/OperationsExtensions.cs | 57 + ..._AzureMLCommitmentPlansManagementClient.cs | 31 + .../CommitmentPlans/SkusOperations.cs | 232 ++ .../SkusOperationsExtensions.cs | 55 + .../CommitmentPlans/UsageHistoryOperations.cs | 193 +- .../UsageHistoryOperationsExtensions.cs | 32 +- .../AzureMLWebServicesManagementClient.cs | 68 +- .../IAzureMLWebServicesManagementClient.cs | 27 +- .../src/Generated/WebServices/IOperations.cs | 46 + .../WebServices/IWebServicesOperations.cs | 15 +- .../Generated/WebServices/Models/AssetItem.cs | 14 +- .../Generated/WebServices/Models/AssetType.cs | 12 +- .../Models/AsyncOperationErrorInfo.cs | 30 +- .../Models/AsyncOperationStatus.cs | 32 +- .../WebServices/Models/BlobLocation.cs | 14 +- .../WebServices/Models/ColumnFormat.cs | 12 +- .../WebServices/Models/ColumnSpecification.cs | 14 +- .../WebServices/Models/ColumnType.cs | 12 +- .../WebServices/Models/CommitmentPlan.cs | 14 +- .../Models/DiagnosticsConfiguration.cs | 14 +- .../WebServices/Models/DiagnosticsLevel.cs | 12 +- .../WebServices/Models/ExampleRequest.cs | 14 +- .../Generated/WebServices/Models/GraphEdge.cs | 14 +- .../Generated/WebServices/Models/GraphNode.cs | 14 +- .../WebServices/Models/GraphPackage.cs | 14 +- .../WebServices/Models/GraphParameter.cs | 14 +- .../WebServices/Models/GraphParameterLink.cs | 14 +- .../Generated/WebServices/Models/InputPort.cs | 14 +- .../WebServices/Models/InputPortType.cs | 12 +- .../Models/MachineLearningWorkspace.cs | 14 +- .../WebServices/Models/ModeValueInfo.cs | 14 +- .../Models/ModuleAssetParameter.cs | 14 +- .../Models/OperationDisplayInfo.cs | 78 + .../WebServices/Models/OperationEntity.cs | 60 + .../WebServices/Models/OutputPort.cs | 14 +- .../WebServices/Models/OutputPortType.cs | 12 +- .../src/Generated/WebServices/Models/Page.cs | 14 +- .../src/Generated/WebServices/Models/Page1.cs | 53 + .../WebServices/Models/ParameterType.cs | 12 +- .../WebServices/Models/PatchedResource.cs | 89 + .../WebServices/Models/PatchedWebService.cs | 76 + .../WebServices/Models/ProvisioningState.cs | 12 +- .../Models/RealtimeConfiguration.cs | 14 +- .../Generated/WebServices/Models/Resource.cs | 14 +- .../Models/ServiceInputOutputSpecification.cs | 14 +- .../WebServices/Models/StorageAccount.cs | 14 +- .../WebServices/Models/TableSpecification.cs | 14 +- .../WebServices/Models/WebService.cs | 14 +- .../WebServices/Models/WebServiceKeys.cs | 14 +- .../WebServices/Models/WebServiceParameter.cs | 14 +- .../Models/WebServiceProperties.cs | 18 +- .../Models/WebServicePropertiesForGraph.cs | 16 +- .../src/Generated/WebServices/Operations.cs | 227 ++ .../WebServices/OperationsExtensions.cs | 55 + ...Info_AzureMLWebServicesManagementClient.cs | 28 + .../WebServices/WebServicesOperations.cs | 25 +- .../WebServicesOperationsExtensions.cs | 19 +- ...chineLearningWorkspacesManagementClient.cs | 85 + .../src/Generated/Workspaces/IOperations.cs | 47 + .../Workspaces/IWorkspacesOperations.cs | 274 +++ ...chineLearningWorkspacesManagementClient.cs | 368 ++++ .../Workspaces/Models/ErrorResponse.cs | 77 + .../Models/ErrorResponseException.cs | 62 + .../Generated/Workspaces/Models/Operation.cs | 60 + .../Workspaces/Models/OperationDisplay.cs | 79 + .../src/Generated/Workspaces/Models/Page.cs | 53 + .../src/Generated/Workspaces/Models/Page1.cs | 53 + .../Generated/Workspaces/Models/Resource.cs | 102 + .../Generated/Workspaces/Models/Workspace.cs | 154 ++ .../Models/WorkspaceKeysResponse.cs | 61 + .../Workspaces/Models/WorkspaceState.cs | 90 + .../Workspaces/Models/WorkspaceType.cs | 78 + .../Models/WorkspaceUpdateParameters.cs | 80 + .../src/Generated/Workspaces/Operations.cs | 223 ++ .../Workspaces/OperationsExtensions.cs | 57 + ...chineLearningWorkspacesManagementClient.cs | 28 + .../Workspaces/WorkspacesOperations.cs | 1892 +++++++++++++++++ .../WorkspacesOperationsExtensions.cs | 423 ++++ 112 files changed, 8078 insertions(+), 1170 deletions(-) create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IOperations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ISkusOperations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CatalogSku.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationDisplayInfo.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationEntity.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page1.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsReasonCode.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsType.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapability.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacity.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacityScaleType.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCost.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuRestrictions.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Operations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/OperationsExtensions.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SdkInfo_AzureMLCommitmentPlansManagementClient.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperationsExtensions.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IOperations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationDisplayInfo.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationEntity.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page1.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedResource.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedWebService.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Operations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/OperationsExtensions.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/SdkInfo_AzureMLWebServicesManagementClient.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IMachineLearningWorkspacesManagementClient.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IOperations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IWorkspacesOperations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/MachineLearningWorkspacesManagementClient.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponse.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponseException.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Operation.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/OperationDisplay.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page1.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Resource.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Workspace.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceKeysResponse.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceState.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceType.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceUpdateParameters.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Operations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/OperationsExtensions.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/SdkInfo_MachineLearningWorkspacesManagementClient.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperations.cs create mode 100644 sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperationsExtensions.cs diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/AzureMLCommitmentPlansManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/AzureMLCommitmentPlansManagementClient.cs index 8443abc0cdc6..cc2a7be38301 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/AzureMLCommitmentPlansManagementClient.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/AzureMLCommitmentPlansManagementClient.cs @@ -1,17 +1,25 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { - using System.Linq; 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; /// /// These APIs allow end users to operate on Azure Machine Learning @@ -21,7 +29,7 @@ namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans /// associations between commitment plans, and retrieving commitment plan /// usage history. /// - public partial class AzureMLCommitmentPlansManagementClient : Microsoft.Rest.ServiceClient, IAzureMLCommitmentPlansManagementClient, IAzureClient + public partial class AzureMLCommitmentPlansManagementClient : ServiceClient, IAzureMLCommitmentPlansManagementClient, IAzureClient { /// /// The base URI of the service. @@ -31,17 +39,17 @@ public partial class AzureMLCommitmentPlansManagementClient : Microsoft.Rest.Ser /// /// Gets or sets json serialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; } + public JsonSerializerSettings SerializationSettings { get; private set; } /// /// Gets or sets json deserialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Credentials needed for the client to connect to Azure. /// - public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; } + public ServiceClientCredentials Credentials { get; private set; } /// /// Azure Subscription ID. @@ -54,22 +62,33 @@ public partial class AzureMLCommitmentPlansManagementClient : Microsoft.Rest.Ser public string ApiVersion { get; private set; } /// - /// Gets or sets the preferred language for the response. + /// 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. + /// 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. + /// Whether a unique x-ms-client-request-id should be generated. 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 IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the ISkusOperations. + /// + public virtual ISkusOperations Skus { get; private set; } + /// /// Gets the ICommitmentAssociationsOperations. /// @@ -85,15 +104,28 @@ public partial class AzureMLCommitmentPlansManagementClient : Microsoft.Rest.Ser /// public virtual IUsageHistoryOperations UsageHistory { get; private set; } + /// + /// Initializes a new instance of the AzureMLCommitmentPlansManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling AzureMLCommitmentPlansManagementClient.Dispose(). False: will not dispose provided httpClient + protected AzureMLCommitmentPlansManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + /// /// Initializes a new instance of the AzureMLCommitmentPlansManagementClient class. /// /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected AzureMLCommitmentPlansManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) + protected AzureMLCommitmentPlansManagementClient(params DelegatingHandler[] handlers) : base(handlers) { - this.Initialize(); + Initialize(); } /// @@ -105,9 +137,9 @@ protected AzureMLCommitmentPlansManagementClient(params System.Net.Http.Delegati /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected AzureMLCommitmentPlansManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) + protected AzureMLCommitmentPlansManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { - this.Initialize(); + Initialize(); } /// @@ -122,13 +154,13 @@ protected AzureMLCommitmentPlansManagementClient(System.Net.Http.HttpClientHandl /// /// Thrown when a required parameter is null /// - protected AzureMLCommitmentPlansManagementClient(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + protected AzureMLCommitmentPlansManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// @@ -146,13 +178,13 @@ protected AzureMLCommitmentPlansManagementClient(System.Uri baseUri, params Syst /// /// Thrown when a required parameter is null /// - protected AzureMLCommitmentPlansManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + protected AzureMLCommitmentPlansManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// @@ -167,16 +199,43 @@ protected AzureMLCommitmentPlansManagementClient(System.Uri baseUri, System.Net. /// /// Thrown when a required parameter is null /// - public AzureMLCommitmentPlansManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public AzureMLCommitmentPlansManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the AzureMLCommitmentPlansManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling AzureMLCommitmentPlansManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public AzureMLCommitmentPlansManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); } } @@ -195,16 +254,16 @@ public AzureMLCommitmentPlansManagementClient(Microsoft.Rest.ServiceClientCreden /// /// Thrown when a required parameter is null /// - public AzureMLCommitmentPlansManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public AzureMLCommitmentPlansManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -223,7 +282,7 @@ public AzureMLCommitmentPlansManagementClient(Microsoft.Rest.ServiceClientCreden /// /// Thrown when a required parameter is null /// - public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -233,11 +292,11 @@ public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, Microsoft.Rest { throw new System.ArgumentNullException("credentials"); } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -259,7 +318,7 @@ public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, Microsoft.Rest /// /// Thrown when a required parameter is null /// - public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -269,11 +328,11 @@ public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, Microsoft.Rest { throw new System.ArgumentNullException("credentials"); } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -286,41 +345,43 @@ public AzureMLCommitmentPlansManagementClient(System.Uri baseUri, Microsoft.Rest /// private void Initialize() { - this.CommitmentAssociations = new CommitmentAssociationsOperations(this); - this.CommitmentPlans = new CommitmentPlansOperations(this); - this.UsageHistory = new UsageHistoryOperations(this); - this.BaseUri = new System.Uri("https://management.azure.com"); - this.ApiVersion = "2016-05-01-preview"; - this.AcceptLanguage = "en-US"; - this.LongRunningOperationRetryTimeout = 30; - this.GenerateClientRequestId = true; - SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings + Operations = new Operations(this); + Skus = new SkusOperations(this); + CommitmentAssociations = new CommitmentAssociationsOperations(this); + CommitmentPlans = new CommitmentPlansOperations(this); + UsageHistory = new UsageHistoryOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2016-05-01-preview"; + 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 Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; - DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings + 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 Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperations.cs index d9d3b89dc083..744628259c4c 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperations.cs @@ -1,22 +1,31 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { - using System.Linq; 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; /// /// CommitmentAssociationsOperations operations. /// - internal partial class CommitmentAssociationsOperations : Microsoft.Rest.IServiceOperations, ICommitmentAssociationsOperations + internal partial class CommitmentAssociationsOperations : IServiceOperations, ICommitmentAssociationsOperations { /// /// Initializes a new instance of the CommitmentAssociationsOperations class. @@ -29,11 +38,11 @@ internal partial class CommitmentAssociationsOperations : Microsoft.Rest.IServic /// internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } - this.Client = client; + Client = client; } /// @@ -42,7 +51,7 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient public AzureMLCommitmentPlansManagementClient Client { get; private set; } /// - /// Gets a commitment association. + /// Get a commitment association. /// /// /// The resource group name. @@ -59,87 +68,92 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient /// /// 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 System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } if (commitmentAssociationName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentAssociationName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentAssociationName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("commitmentAssociationName", commitmentAssociationName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); _url = _url.Replace("{commitmentAssociationName}", System.Uri.EscapeDataString(commitmentAssociationName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -155,51 +169,51 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -209,7 +223,7 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -222,21 +236,21 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -259,86 +273,91 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient /// /// 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 System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (skipToken != null) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } - if (this.Client.ApiVersion != null) + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -354,51 +373,51 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -408,7 +427,7 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -421,27 +440,27 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Re-parents a commitment association from one commitment plan to another. + /// Re-parent a commitment association from one commitment plan to another. /// /// /// The resource group name. @@ -452,8 +471,9 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient /// /// The commitment association name. /// - /// - /// The move request payload. + /// + /// The ARM ID of the commitment plan to re-parent the commitment association + /// to. /// /// /// Headers that will be added to request. @@ -461,92 +481,98 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient /// /// 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 System.Threading.Tasks.Task> MoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, MoveCommitmentAssociationRequest movePayload, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> MoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, string destinationPlanId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } if (commitmentAssociationName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentAssociationName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentAssociationName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (movePayload == null) + MoveCommitmentAssociationRequest movePayload = new MoveCommitmentAssociationRequest(); + if (destinationPlanId != null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "movePayload"); + movePayload.DestinationPlanId = destinationPlanId; } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("commitmentAssociationName", commitmentAssociationName); tracingParameters.Add("movePayload", movePayload); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Move", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Move", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}/move").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); _url = _url.Replace("{commitmentAssociationName}", System.Uri.EscapeDataString(commitmentAssociationName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -563,56 +589,56 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient string _requestContent = null; if(movePayload != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(movePayload, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(movePayload, 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 (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -622,7 +648,7 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -635,21 +661,21 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -666,61 +692,66 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient /// /// 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 System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; _url = _url.Replace("{nextLink}", nextPageLink); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -736,51 +767,51 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -790,7 +821,7 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -803,21 +834,21 @@ internal CommitmentAssociationsOperations(AzureMLCommitmentPlansManagementClient _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperationsExtensions.cs index b179ecb7926f..4de4ae1a3247 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperationsExtensions.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentAssociationsOperationsExtensions.cs @@ -1,16 +1,20 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; using System.Threading.Tasks; - using Microsoft.Rest.Azure; - using Models; /// /// Extension methods for CommitmentAssociationsOperations. @@ -18,7 +22,7 @@ namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans public static partial class CommitmentAssociationsOperationsExtensions { /// - /// Gets a commitment association. + /// Get a commitment association. /// /// /// The operations group for this extension method. @@ -34,11 +38,11 @@ public static partial class CommitmentAssociationsOperationsExtensions /// public static CommitmentAssociation Get(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentAssociationName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentAssociationsOperations)s).GetAsync(resourceGroupName, commitmentPlanName, commitmentAssociationName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, commitmentPlanName, commitmentAssociationName).GetAwaiter().GetResult(); } /// - /// Gets a commitment association. + /// Get a commitment association. /// /// /// The operations group for this extension method. @@ -55,7 +59,7 @@ public static CommitmentAssociation Get(this ICommitmentAssociationsOperations o /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetAsync(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task GetAsync(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentAssociationName, null, cancellationToken).ConfigureAwait(false)) { @@ -78,9 +82,9 @@ public static CommitmentAssociation Get(this ICommitmentAssociationsOperations o /// /// Continuation token for pagination. /// - public static Microsoft.Rest.Azure.IPage List(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string)) + public static IPage List(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentAssociationsOperations)s).ListAsync(resourceGroupName, commitmentPlanName, skipToken), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, commitmentPlanName, skipToken).GetAwaiter().GetResult(); } /// @@ -101,7 +105,7 @@ public static CommitmentAssociation Get(this ICommitmentAssociationsOperations o /// /// The cancellation token. /// - public static async Task> ListAsync(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListAsync(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, skipToken, null, cancellationToken).ConfigureAwait(false)) { @@ -110,7 +114,7 @@ public static CommitmentAssociation Get(this ICommitmentAssociationsOperations o } /// - /// Re-parents a commitment association from one commitment plan to another. + /// Re-parent a commitment association from one commitment plan to another. /// /// /// The operations group for this extension method. @@ -124,16 +128,17 @@ public static CommitmentAssociation Get(this ICommitmentAssociationsOperations o /// /// The commitment association name. /// - /// - /// The move request payload. + /// + /// The ARM ID of the commitment plan to re-parent the commitment association + /// to. /// - public static CommitmentAssociation Move(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, MoveCommitmentAssociationRequest movePayload) + public static CommitmentAssociation Move(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, string destinationPlanId = default(string)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentAssociationsOperations)s).MoveAsync(resourceGroupName, commitmentPlanName, commitmentAssociationName, movePayload), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.MoveAsync(resourceGroupName, commitmentPlanName, commitmentAssociationName, destinationPlanId).GetAwaiter().GetResult(); } /// - /// Re-parents a commitment association from one commitment plan to another. + /// Re-parent a commitment association from one commitment plan to another. /// /// /// The operations group for this extension method. @@ -147,15 +152,16 @@ public static CommitmentAssociation Move(this ICommitmentAssociationsOperations /// /// The commitment association name. /// - /// - /// The move request payload. + /// + /// The ARM ID of the commitment plan to re-parent the commitment association + /// to. /// /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task MoveAsync(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, MoveCommitmentAssociationRequest movePayload, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task MoveAsync(this ICommitmentAssociationsOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, string destinationPlanId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.MoveWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentAssociationName, movePayload, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.MoveWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentAssociationName, destinationPlanId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -170,9 +176,9 @@ public static CommitmentAssociation Move(this ICommitmentAssociationsOperations /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListNext(this ICommitmentAssociationsOperations operations, string nextPageLink) + public static IPage ListNext(this ICommitmentAssociationsOperations operations, string nextPageLink) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentAssociationsOperations)s).ListNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// @@ -187,7 +193,7 @@ public static Microsoft.Rest.Azure.IPage ListNext(this IC /// /// The cancellation token. /// - public static async Task> ListNextAsync(this ICommitmentAssociationsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListNextAsync(this ICommitmentAssociationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperations.cs index 3a1fbcc7de82..0d72a8a4696e 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperations.cs @@ -1,22 +1,31 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { - using System.Linq; 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; /// /// CommitmentPlansOperations operations. /// - internal partial class CommitmentPlansOperations : Microsoft.Rest.IServiceOperations, ICommitmentPlansOperations + internal partial class CommitmentPlansOperations : IServiceOperations, ICommitmentPlansOperations { /// /// Initializes a new instance of the CommitmentPlansOperations class. @@ -29,11 +38,11 @@ internal partial class CommitmentPlansOperations : Microsoft.Rest.IServiceOperat /// internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } - this.Client = client; + Client = client; } /// @@ -57,81 +66,86 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -147,51 +161,51 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -201,7 +215,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -214,27 +228,27 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Creates a new Azure ML commitment plan resource or updates an existing one. + /// Create a new Azure ML commitment plan resource or updates an existing one. /// /// /// The payload to create or update the Azure ML commitment plan. @@ -251,90 +265,95 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(CommitmentPlan createOrUpdatePayload, string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(CommitmentPlan createOrUpdatePayload, string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (createOrUpdatePayload == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "createOrUpdatePayload"); + throw new ValidationException(ValidationRules.CannotBeNull, "createOrUpdatePayload"); } if (createOrUpdatePayload != null) { createOrUpdatePayload.Validate(); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("createOrUpdatePayload", createOrUpdatePayload); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -351,56 +370,56 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client string _requestContent = null; if(createOrUpdatePayload != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(createOrUpdatePayload, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(createOrUpdatePayload, 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 (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -410,7 +429,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -423,16 +442,16 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } // Deserialize Response @@ -441,21 +460,21 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -475,78 +494,83 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task RemoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task RemoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Remove", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Remove", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -562,43 +586,51 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -608,7 +640,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -617,7 +649,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -626,7 +658,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// Patch an existing Azure ML commitment plan resource. /// /// - /// The payload to patch the Azure ML commitment plan with. Only tags and SKU + /// The payload to use to patch the Azure ML commitment plan. Only tags and SKU /// may be modified on an existing commitment plan. /// /// @@ -641,86 +673,91 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task> PatchWithHttpMessagesAsync(CommitmentPlanPatchPayload patchPayload, string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> PatchWithHttpMessagesAsync(CommitmentPlanPatchPayload patchPayload, string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (patchPayload == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "patchPayload"); + throw new ValidationException(ValidationRules.CannotBeNull, "patchPayload"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("patchPayload", patchPayload); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Patch", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Patch", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -737,56 +774,56 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client string _requestContent = null; if(patchPayload != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(patchPayload, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(patchPayload, 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 (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -796,7 +833,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -809,21 +846,21 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -840,74 +877,79 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); if (skipToken != null) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } - if (this.Client.ApiVersion != null) + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -923,51 +965,51 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -977,7 +1019,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -990,21 +1032,21 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1024,80 +1066,85 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task>> ListInResourceGroupWithHttpMessagesAsync(string resourceGroupName, string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListInResourceGroupWithHttpMessagesAsync(string resourceGroupName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListInResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListInResourceGroup", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (skipToken != null) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } - if (this.Client.ApiVersion != null) + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1113,51 +1160,51 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1167,7 +1214,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1180,21 +1227,21 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1211,61 +1258,66 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; _url = _url.Replace("{nextLink}", nextPageLink); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1281,51 +1333,51 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1335,7 +1387,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1348,21 +1400,21 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1379,61 +1431,66 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client /// /// 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 System.Threading.Tasks.Task>> ListInResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListInResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListInResourceGroupNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListInResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; _url = _url.Replace("{nextLink}", nextPageLink); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1449,51 +1506,51 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1503,7 +1560,7 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1516,21 +1573,21 @@ internal CommitmentPlansOperations(AzureMLCommitmentPlansManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperationsExtensions.cs index 2b6416b5e276..efaa27437d72 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperationsExtensions.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/CommitmentPlansOperationsExtensions.cs @@ -1,16 +1,20 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; using System.Threading.Tasks; - using Microsoft.Rest.Azure; - using Models; /// /// Extension methods for CommitmentPlansOperations. @@ -32,7 +36,7 @@ public static partial class CommitmentPlansOperationsExtensions /// public static CommitmentPlan Get(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).GetAsync(resourceGroupName, commitmentPlanName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, commitmentPlanName).GetAwaiter().GetResult(); } /// @@ -51,7 +55,7 @@ public static CommitmentPlan Get(this ICommitmentPlansOperations operations, str /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task GetAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, null, cancellationToken).ConfigureAwait(false)) { @@ -60,7 +64,7 @@ public static CommitmentPlan Get(this ICommitmentPlansOperations operations, str } /// - /// Creates a new Azure ML commitment plan resource or updates an existing one. + /// Create a new Azure ML commitment plan resource or updates an existing one. /// /// /// The operations group for this extension method. @@ -76,11 +80,11 @@ public static CommitmentPlan Get(this ICommitmentPlansOperations operations, str /// public static CommitmentPlan CreateOrUpdate(this ICommitmentPlansOperations operations, CommitmentPlan createOrUpdatePayload, string resourceGroupName, string commitmentPlanName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).CreateOrUpdateAsync(createOrUpdatePayload, resourceGroupName, commitmentPlanName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(createOrUpdatePayload, resourceGroupName, commitmentPlanName).GetAwaiter().GetResult(); } /// - /// Creates a new Azure ML commitment plan resource or updates an existing one. + /// Create a new Azure ML commitment plan resource or updates an existing one. /// /// /// The operations group for this extension method. @@ -97,7 +101,7 @@ public static CommitmentPlan CreateOrUpdate(this ICommitmentPlansOperations oper /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this ICommitmentPlansOperations operations, CommitmentPlan createOrUpdatePayload, string resourceGroupName, string commitmentPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CreateOrUpdateAsync(this ICommitmentPlansOperations operations, CommitmentPlan createOrUpdatePayload, string resourceGroupName, string commitmentPlanName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(createOrUpdatePayload, resourceGroupName, commitmentPlanName, null, cancellationToken).ConfigureAwait(false)) { @@ -119,7 +123,7 @@ public static CommitmentPlan CreateOrUpdate(this ICommitmentPlansOperations oper /// public static void Remove(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).RemoveAsync(resourceGroupName, commitmentPlanName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + operations.RemoveAsync(resourceGroupName, commitmentPlanName).GetAwaiter().GetResult(); } /// @@ -137,9 +141,9 @@ public static void Remove(this ICommitmentPlansOperations operations, string res /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task RemoveAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task RemoveAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.RemoveWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, null, cancellationToken).ConfigureAwait(false); + (await operations.RemoveWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -149,7 +153,7 @@ public static void Remove(this ICommitmentPlansOperations operations, string res /// The operations group for this extension method. /// /// - /// The payload to patch the Azure ML commitment plan with. Only tags and SKU + /// The payload to use to patch the Azure ML commitment plan. Only tags and SKU /// may be modified on an existing commitment plan. /// /// @@ -160,7 +164,7 @@ public static void Remove(this ICommitmentPlansOperations operations, string res /// public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, CommitmentPlanPatchPayload patchPayload, string resourceGroupName, string commitmentPlanName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).PatchAsync(patchPayload, resourceGroupName, commitmentPlanName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.PatchAsync(patchPayload, resourceGroupName, commitmentPlanName).GetAwaiter().GetResult(); } /// @@ -170,7 +174,7 @@ public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, C /// The operations group for this extension method. /// /// - /// The payload to patch the Azure ML commitment plan with. Only tags and SKU + /// The payload to use to patch the Azure ML commitment plan. Only tags and SKU /// may be modified on an existing commitment plan. /// /// @@ -182,7 +186,7 @@ public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, C /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task PatchAsync(this ICommitmentPlansOperations operations, CommitmentPlanPatchPayload patchPayload, string resourceGroupName, string commitmentPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task PatchAsync(this ICommitmentPlansOperations operations, CommitmentPlanPatchPayload patchPayload, string resourceGroupName, string commitmentPlanName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PatchWithHttpMessagesAsync(patchPayload, resourceGroupName, commitmentPlanName, null, cancellationToken).ConfigureAwait(false)) { @@ -199,9 +203,9 @@ public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, C /// /// Continuation token for pagination. /// - public static Microsoft.Rest.Azure.IPage List(this ICommitmentPlansOperations operations, string skipToken = default(string)) + public static IPage List(this ICommitmentPlansOperations operations, string skipToken = default(string)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).ListAsync(skipToken), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListAsync(skipToken).GetAwaiter().GetResult(); } /// @@ -216,7 +220,7 @@ public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, C /// /// The cancellation token. /// - public static async Task> ListAsync(this ICommitmentPlansOperations operations, string skipToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListAsync(this ICommitmentPlansOperations operations, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(skipToken, null, cancellationToken).ConfigureAwait(false)) { @@ -236,9 +240,9 @@ public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, C /// /// Continuation token for pagination. /// - public static Microsoft.Rest.Azure.IPage ListInResourceGroup(this ICommitmentPlansOperations operations, string resourceGroupName, string skipToken = default(string)) + public static IPage ListInResourceGroup(this ICommitmentPlansOperations operations, string resourceGroupName, string skipToken = default(string)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).ListInResourceGroupAsync(resourceGroupName, skipToken), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListInResourceGroupAsync(resourceGroupName, skipToken).GetAwaiter().GetResult(); } /// @@ -256,7 +260,7 @@ public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, C /// /// The cancellation token. /// - public static async Task> ListInResourceGroupAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string skipToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListInResourceGroupAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListInResourceGroupWithHttpMessagesAsync(resourceGroupName, skipToken, null, cancellationToken).ConfigureAwait(false)) { @@ -273,9 +277,9 @@ public static CommitmentPlan Patch(this ICommitmentPlansOperations operations, C /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListNext(this ICommitmentPlansOperations operations, string nextPageLink) + public static IPage ListNext(this ICommitmentPlansOperations operations, string nextPageLink) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).ListNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// @@ -290,7 +294,7 @@ public static Microsoft.Rest.Azure.IPage ListNext(this ICommitme /// /// The cancellation token. /// - public static async Task> ListNextAsync(this ICommitmentPlansOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListNextAsync(this ICommitmentPlansOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { @@ -307,9 +311,9 @@ public static Microsoft.Rest.Azure.IPage ListNext(this ICommitme /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListInResourceGroupNext(this ICommitmentPlansOperations operations, string nextPageLink) + public static IPage ListInResourceGroupNext(this ICommitmentPlansOperations operations, string nextPageLink) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ICommitmentPlansOperations)s).ListInResourceGroupNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListInResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// @@ -324,7 +328,7 @@ public static Microsoft.Rest.Azure.IPage ListInResourceGroupNext /// /// The cancellation token. /// - public static async Task> ListInResourceGroupNextAsync(this ICommitmentPlansOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListInResourceGroupNextAsync(this ICommitmentPlansOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListInResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IAzureMLCommitmentPlansManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IAzureMLCommitmentPlansManagementClient.cs index aadd13efaa2e..72a5b494e1bd 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IAzureMLCommitmentPlansManagementClient.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IAzureMLCommitmentPlansManagementClient.cs @@ -1,16 +1,19 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using Newtonsoft.Json; /// /// These APIs allow end users to operate on Azure Machine Learning @@ -30,17 +33,17 @@ public partial interface IAzureMLCommitmentPlansManagementClient : System.IDispo /// /// Gets or sets json serialization settings. /// - Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; } + JsonSerializerSettings SerializationSettings { get; } /// /// Gets or sets json deserialization settings. /// - Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; } + JsonSerializerSettings DeserializationSettings { get; } /// /// Credentials needed for the client to connect to Azure. /// - Microsoft.Rest.ServiceClientCredentials Credentials { get; } + ServiceClientCredentials Credentials { get; } /// /// Azure Subscription ID. @@ -54,23 +57,34 @@ public partial interface IAzureMLCommitmentPlansManagementClient : System.IDispo string ApiVersion { get; } /// - /// Gets or sets the preferred language for the response. + /// 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. + /// 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. + /// Whether a unique x-ms-client-request-id should be generated. 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 IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the ISkusOperations. + /// + ISkusOperations Skus { get; } + /// /// Gets the ICommitmentAssociationsOperations. /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentAssociationsOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentAssociationsOperations.cs index e0adc9674072..c63328bccda6 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentAssociationsOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentAssociationsOperations.cs @@ -1,15 +1,22 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { + using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// CommitmentAssociationsOperations operations. @@ -17,7 +24,7 @@ namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans public partial interface ICommitmentAssociationsOperations { /// - /// Gets a commitment association. + /// Get a commitment association. /// /// /// The resource group name. @@ -43,7 +50,7 @@ public partial interface ICommitmentAssociationsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get all commitment associations for a parent commitment plan. /// @@ -71,9 +78,9 @@ public partial interface ICommitmentAssociationsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Re-parents a commitment association from one commitment plan to + /// Re-parent a commitment association from one commitment plan to /// another. /// /// @@ -85,8 +92,9 @@ public partial interface ICommitmentAssociationsOperations /// /// The commitment association name. /// - /// - /// The move request payload. + /// + /// The ARM ID of the commitment plan to re-parent the commitment + /// association to. /// /// /// The headers that will be added to request. @@ -103,7 +111,7 @@ public partial interface ICommitmentAssociationsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> MoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, MoveCommitmentAssociationRequest movePayload, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> MoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentAssociationName, string destinationPlanId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get all commitment associations for a parent commitment plan. /// @@ -125,6 +133,6 @@ public partial interface ICommitmentAssociationsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentPlansOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentPlansOperations.cs index 94ec75d951cf..846202f2fd55 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentPlansOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ICommitmentPlansOperations.cs @@ -1,15 +1,22 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { + using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// CommitmentPlansOperations operations. @@ -41,9 +48,9 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a new Azure ML commitment plan resource or updates an + /// Create a new Azure ML commitment plan resource or updates an /// existing one. /// /// @@ -70,7 +77,7 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(CommitmentPlan createOrUpdatePayload, string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(CommitmentPlan createOrUpdatePayload, string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Remove an existing Azure ML commitment plan. /// @@ -92,12 +99,12 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task RemoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task RemoveWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Patch an existing Azure ML commitment plan resource. /// /// - /// The payload to patch the Azure ML commitment plan with. Only tags + /// The payload to use to patch the Azure ML commitment plan. Only tags /// and SKU may be modified on an existing commitment plan. /// /// @@ -121,7 +128,7 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> PatchWithHttpMessagesAsync(CommitmentPlanPatchPayload patchPayload, string resourceGroupName, string commitmentPlanName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PatchWithHttpMessagesAsync(CommitmentPlanPatchPayload patchPayload, string resourceGroupName, string commitmentPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve all Azure ML commitment plans in a subscription. /// @@ -143,7 +150,7 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve all Azure ML commitment plans in a resource group. /// @@ -168,7 +175,7 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListInResourceGroupWithHttpMessagesAsync(string resourceGroupName, string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListInResourceGroupWithHttpMessagesAsync(string resourceGroupName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve all Azure ML commitment plans in a subscription. /// @@ -190,7 +197,7 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve all Azure ML commitment plans in a resource group. /// @@ -212,6 +219,6 @@ public partial interface ICommitmentPlansOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListInResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListInResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IOperations.cs new file mode 100644 index 000000000000..9f0a68a88fca --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IOperations.cs @@ -0,0 +1,47 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans +{ + 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 Azure Machine Learning Studio Commitment + /// Plan RP 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)); + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ISkusOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ISkusOperations.cs new file mode 100644 index 000000000000..9028d6af4a85 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/ISkusOperations.cs @@ -0,0 +1,46 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SkusOperations operations. + /// + public partial interface ISkusOperations + { + /// + /// Lists the available commitment plan SKUs. + /// + /// + /// 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)); + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IUsageHistoryOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IUsageHistoryOperations.cs index 4a82b5add85e..3ffd0ccec626 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IUsageHistoryOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/IUsageHistoryOperations.cs @@ -1,15 +1,22 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { + using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// UsageHistoryOperations operations. @@ -17,7 +24,7 @@ namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans public partial interface IUsageHistoryOperations { /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The resource group name. @@ -43,9 +50,9 @@ public partial interface IUsageHistoryOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The NextLink from the previous successful call to List operation. @@ -65,6 +72,6 @@ public partial interface IUsageHistoryOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CatalogSku.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CatalogSku.cs new file mode 100644 index 000000000000..e9a850bc9259 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CatalogSku.cs @@ -0,0 +1,114 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Details of a commitment plan SKU. + /// + public partial class CatalogSku + { + /// + /// Initializes a new instance of the CatalogSku class. + /// + public CatalogSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CatalogSku class. + /// + /// Resource type name + /// SKU name + /// SKU tier + /// Regions where the SKU is available. + /// SKU scaling information + /// The capability information for the + /// specified SKU. + /// The cost information for the specified + /// SKU. + /// Restrictions which would prevent a SKU + /// from being used. This is empty if there are no + /// restrictions. + public CatalogSku(string resourceType = default(string), string name = default(string), string tier = default(string), IList locations = default(IList), SkuCapacity capacity = default(SkuCapacity), IList capabilities = default(IList), IList costs = default(IList), IList restrictions = default(IList)) + { + ResourceType = resourceType; + Name = name; + Tier = tier; + Locations = locations; + Capacity = capacity; + Capabilities = capabilities; + Costs = costs; + Restrictions = restrictions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource type name + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; private set; } + + /// + /// Gets SKU name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets SKU tier + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; private set; } + + /// + /// Gets regions where the SKU is available. + /// + [JsonProperty(PropertyName = "locations")] + public IList Locations { get; private set; } + + /// + /// Gets SKU scaling information + /// + [JsonProperty(PropertyName = "capacity")] + public SkuCapacity Capacity { get; private set; } + + /// + /// Gets the capability information for the specified SKU. + /// + [JsonProperty(PropertyName = "capabilities")] + public IList Capabilities { get; private set; } + + /// + /// Gets the cost information for the specified SKU. + /// + [JsonProperty(PropertyName = "costs")] + public IList Costs { get; private set; } + + /// + /// Gets restrictions which would prevent a SKU from being used. This + /// is empty if there are no restrictions. + /// + [JsonProperty(PropertyName = "restrictions")] + public IList Restrictions { get; private set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociation.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociation.cs index 2a3c767d54bc..a792c135e404 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociation.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociation.cs @@ -1,13 +1,18 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -19,7 +24,10 @@ public partial class CommitmentAssociation : Resource /// /// Initializes a new instance of the CommitmentAssociation class. /// - public CommitmentAssociation() { } + public CommitmentAssociation() + { + CustomInit(); + } /// /// Initializes a new instance of the CommitmentAssociation class. @@ -33,29 +41,35 @@ public CommitmentAssociation() { } /// concurrency. /// The properties of the commitment /// association resource. - public CommitmentAssociation(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string etag = default(string), CommitmentAssociationProperties properties = default(CommitmentAssociationProperties)) + public CommitmentAssociation(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string), CommitmentAssociationProperties properties = default(CommitmentAssociationProperties)) : base(location, id, name, type, tags) { Etag = etag; Properties = properties; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets an entity tag used to enforce optimistic concurrency. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "etag")] + [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } /// /// Gets or sets the properties of the commitment association resource. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + [JsonProperty(PropertyName = "properties")] public CommitmentAssociationProperties Properties { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public override void Validate() diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociationProperties.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociationProperties.cs index 4dbf6adf5501..8bb23bcc5ebe 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociationProperties.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentAssociationProperties.cs @@ -1,13 +1,16 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -19,7 +22,10 @@ public partial class CommitmentAssociationProperties /// Initializes a new instance of the CommitmentAssociationProperties /// class. /// - public CommitmentAssociationProperties() { } + public CommitmentAssociationProperties() + { + CustomInit(); + } /// /// Initializes a new instance of the CommitmentAssociationProperties @@ -37,26 +43,32 @@ public CommitmentAssociationProperties() { } AssociatedResourceId = associatedResourceId; CommitmentPlanId = commitmentPlanId; CreationDate = creationDate; + CustomInit(); } /// - /// Gets the ID of the resource this association points to, such as - /// the ARM ID of an Azure ML web service. + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ID of the resource this association points to, such as the + /// ARM ID of an Azure ML web service. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "associatedResourceId")] + [JsonProperty(PropertyName = "associatedResourceId")] public string AssociatedResourceId { get; private set; } /// /// Gets the ARM ID of the parent Azure ML commitment plan. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "commitmentPlanId")] + [JsonProperty(PropertyName = "commitmentPlanId")] public string CommitmentPlanId { get; private set; } /// /// Gets the date at which this commitment association was created, in /// ISO 8601 format. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "creationDate")] + [JsonProperty(PropertyName = "creationDate")] public System.DateTime? CreationDate { get; private set; } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlan.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlan.cs index fd4f4c618ae4..83b3bb34c5a1 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlan.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlan.cs @@ -1,13 +1,18 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -18,7 +23,10 @@ public partial class CommitmentPlan : Resource /// /// Initializes a new instance of the CommitmentPlan class. /// - public CommitmentPlan() { } + public CommitmentPlan() + { + CustomInit(); + } /// /// Initializes a new instance of the CommitmentPlan class. @@ -32,36 +40,42 @@ public CommitmentPlan() { } /// concurrency. /// The commitment plan properties. /// The commitment plan SKU. - public CommitmentPlan(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string etag = default(string), CommitmentPlanProperties properties = default(CommitmentPlanProperties), ResourceSku sku = default(ResourceSku)) + public CommitmentPlan(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string), CommitmentPlanProperties properties = default(CommitmentPlanProperties), ResourceSku sku = default(ResourceSku)) : base(location, id, name, type, tags) { Etag = etag; Properties = properties; Sku = sku; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets an entity tag used to enforce optimistic concurrency. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "etag")] + [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } /// /// Gets the commitment plan properties. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + [JsonProperty(PropertyName = "properties")] public CommitmentPlanProperties Properties { get; private set; } /// /// Gets or sets the commitment plan SKU. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] + [JsonProperty(PropertyName = "sku")] public ResourceSku Sku { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public override void Validate() diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanPatchPayload.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanPatchPayload.cs index aa229333b127..6f28a8357c84 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanPatchPayload.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanPatchPayload.cs @@ -1,13 +1,18 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -18,7 +23,10 @@ public partial class CommitmentPlanPatchPayload /// /// Initializes a new instance of the CommitmentPlanPatchPayload class. /// - public CommitmentPlanPatchPayload() { } + public CommitmentPlanPatchPayload() + { + CustomInit(); + } /// /// Initializes a new instance of the CommitmentPlanPatchPayload class. @@ -26,22 +34,28 @@ public CommitmentPlanPatchPayload() { } /// User-defined tags for the commitment /// plan. /// The commitment plan SKU. - public CommitmentPlanPatchPayload(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), ResourceSku sku = default(ResourceSku)) + public CommitmentPlanPatchPayload(IDictionary tags = default(IDictionary), ResourceSku sku = default(ResourceSku)) { Tags = tags; Sku = sku; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets user-defined tags for the commitment plan. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } /// /// Gets or sets the commitment plan SKU. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] + [JsonProperty(PropertyName = "sku")] public ResourceSku Sku { get; set; } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanProperties.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanProperties.cs index d4c173ec1a39..ae9ce844ab4e 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanProperties.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/CommitmentPlanProperties.cs @@ -1,13 +1,18 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -18,7 +23,10 @@ public partial class CommitmentPlanProperties /// /// Initializes a new instance of the CommitmentPlanProperties class. /// - public CommitmentPlanProperties() { } + public CommitmentPlanProperties() + { + CustomInit(); + } /// /// Initializes a new instance of the CommitmentPlanProperties class. @@ -42,10 +50,9 @@ public CommitmentPlanProperties() { } /// The frequency at which this /// commitment plan's included quantities are refilled. /// Indicates whether this - /// commitment plan will be moved into a suspended state if usage - /// beyond the commitment plan's included quantities is - /// incurred. - public CommitmentPlanProperties(bool? chargeForOverage = default(bool?), bool? chargeForPlan = default(bool?), System.DateTime? creationDate = default(System.DateTime?), System.Collections.Generic.IDictionary includedQuantities = default(System.Collections.Generic.IDictionary), int? maxAssociationLimit = default(int?), int? maxCapacityLimit = default(int?), int? minCapacityLimit = default(int?), string planMeter = default(string), int? refillFrequencyInDays = default(int?), bool? suspendPlanOnOverage = default(bool?)) + /// commitment plan will be moved into a suspended state if usage goes + /// beyond the commitment plan's included quantities. + public CommitmentPlanProperties(bool? chargeForOverage = default(bool?), bool? chargeForPlan = default(bool?), System.DateTime? creationDate = default(System.DateTime?), IDictionary includedQuantities = default(IDictionary), int? maxAssociationLimit = default(int?), int? maxCapacityLimit = default(int?), int? minCapacityLimit = default(int?), string planMeter = default(string), int? refillFrequencyInDays = default(int?), bool? suspendPlanOnOverage = default(bool?)) { ChargeForOverage = chargeForOverage; ChargeForPlan = chargeForPlan; @@ -57,73 +64,79 @@ public CommitmentPlanProperties() { } PlanMeter = planMeter; RefillFrequencyInDays = refillFrequencyInDays; SuspendPlanOnOverage = suspendPlanOnOverage; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets indicates whether usage beyond the commitment plan's included /// quantities will be charged. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "chargeForOverage")] + [JsonProperty(PropertyName = "chargeForOverage")] public bool? ChargeForOverage { get; private set; } /// /// Gets indicates whether the commitment plan will incur a charge. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "chargeForPlan")] + [JsonProperty(PropertyName = "chargeForPlan")] public bool? ChargeForPlan { get; private set; } /// /// Gets the date at which this commitment plan was created, in ISO /// 8601 format. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "creationDate")] + [JsonProperty(PropertyName = "creationDate")] public System.DateTime? CreationDate { get; private set; } /// /// Gets the included resource quantities this plan gives you. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "includedQuantities")] - public System.Collections.Generic.IDictionary IncludedQuantities { get; private set; } + [JsonProperty(PropertyName = "includedQuantities")] + public IDictionary IncludedQuantities { get; private set; } /// /// Gets the maximum number of commitment associations that can be /// children of this commitment plan. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "maxAssociationLimit")] + [JsonProperty(PropertyName = "maxAssociationLimit")] public int? MaxAssociationLimit { get; private set; } /// /// Gets the maximum scale-out capacity for this commitment plan. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "maxCapacityLimit")] + [JsonProperty(PropertyName = "maxCapacityLimit")] public int? MaxCapacityLimit { get; private set; } /// /// Gets the minimum scale-out capacity for this commitment plan. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "minCapacityLimit")] + [JsonProperty(PropertyName = "minCapacityLimit")] public int? MinCapacityLimit { get; private set; } /// /// Gets the Azure meter which will be used to charge for this /// commitment plan. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "planMeter")] + [JsonProperty(PropertyName = "planMeter")] public string PlanMeter { get; private set; } /// /// Gets the frequency at which this commitment plan's included /// quantities are refilled. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "refillFrequencyInDays")] + [JsonProperty(PropertyName = "refillFrequencyInDays")] public int? RefillFrequencyInDays { get; private set; } /// /// Gets indicates whether this commitment plan will be moved into a - /// suspended state if usage beyond the commitment plan's included - /// quantities is incurred. + /// suspended state if usage goes beyond the commitment plan's included + /// quantities. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "suspendPlanOnOverage")] + [JsonProperty(PropertyName = "suspendPlanOnOverage")] public bool? SuspendPlanOnOverage { get; private set; } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/MoveCommitmentAssociationRequest.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/MoveCommitmentAssociationRequest.cs index dacdbb3b3931..5579e6c7c0ce 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/MoveCommitmentAssociationRequest.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/MoveCommitmentAssociationRequest.cs @@ -1,13 +1,16 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -20,7 +23,10 @@ public partial class MoveCommitmentAssociationRequest /// Initializes a new instance of the MoveCommitmentAssociationRequest /// class. /// - public MoveCommitmentAssociationRequest() { } + public MoveCommitmentAssociationRequest() + { + CustomInit(); + } /// /// Initializes a new instance of the MoveCommitmentAssociationRequest @@ -31,13 +37,19 @@ public MoveCommitmentAssociationRequest() { } public MoveCommitmentAssociationRequest(string destinationPlanId = default(string)) { DestinationPlanId = destinationPlanId; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the ARM ID of the commitment plan to re-parent the /// commitment association to. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "destinationPlanId")] + [JsonProperty(PropertyName = "destinationPlanId")] public string DestinationPlanId { get; set; } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationDisplayInfo.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationDisplayInfo.cs new file mode 100644 index 000000000000..f5b7791b0df6 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationDisplayInfo.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The API operation info. + /// + public partial class OperationDisplayInfo + { + /// + /// Initializes a new instance of the OperationDisplayInfo class. + /// + public OperationDisplayInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplayInfo class. + /// + /// The description of the operation. + /// The action that users can perform, based on + /// their permission level. + /// The service provider. + /// The resource on which the operation is + /// performed. + public OperationDisplayInfo(string description = default(string), string operation = default(string), string provider = default(string), string resource = default(string)) + { + Description = description; + Operation = operation; + Provider = provider; + Resource = resource; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the description of the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + /// + /// Gets the action that users can perform, based on their permission + /// level. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; private set; } + + /// + /// Gets the service provider. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; private set; } + + /// + /// Gets the resource on which the operation is performed. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; private set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationEntity.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationEntity.cs new file mode 100644 index 000000000000..4431ebd97b82 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/OperationEntity.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// An API operation. + /// + public partial class OperationEntity + { + /// + /// Initializes a new instance of the OperationEntity class. + /// + public OperationEntity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationEntity class. + /// + /// Operation name: + /// {provider}/{resource}/{operation}. + /// The API operation info. + public OperationEntity(string name = default(string), OperationDisplayInfo display = default(OperationDisplayInfo)) + { + Name = name; + Display = display; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets operation name: {provider}/{resource}/{operation}. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets or sets the API operation info. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplayInfo Display { get; set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page.cs index b0c92b5772ea..d8191257580d 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page.cs @@ -1,44 +1,51 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + 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 - [Newtonsoft.Json.JsonObject] - public class Page : Microsoft.Rest.Azure.IPage + [JsonObject] + public class Page : IPage { /// /// Gets the link to the next page. /// - [Newtonsoft.Json.JsonProperty("nextLink")] - public System.String NextPageLink { get; private set; } + [JsonProperty("")] + public string NextPageLink { get; private set; } - [Newtonsoft.Json.JsonProperty("value")] - private System.Collections.Generic.IList Items{ get; 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 System.Collections.Generic.IEnumerator GetEnumerator() + public IEnumerator GetEnumerator() { - return (Items == null) ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.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. - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page1.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page1.cs new file mode 100644 index 000000000000..bfe6b9c800a2 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Page1.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + 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 Page1 : 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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanQuantity.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanQuantity.cs index c838a4c9dc80..698f61193f3e 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanQuantity.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanQuantity.cs @@ -1,13 +1,16 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -19,7 +22,10 @@ public partial class PlanQuantity /// /// Initializes a new instance of the PlanQuantity class. /// - public PlanQuantity() { } + public PlanQuantity() + { + CustomInit(); + } /// /// Initializes a new instance of the PlanQuantity class. @@ -38,32 +44,38 @@ public PlanQuantity() { } Amount = amount; IncludedQuantityMeter = includedQuantityMeter; OverageMeter = overageMeter; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the quantity added to the commitment plan at an interval /// specified by its allowance frequency. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "allowance")] + [JsonProperty(PropertyName = "allowance")] public double? Allowance { get; private set; } /// /// Gets the quantity available to the plan the last time usage was /// calculated. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "amount")] + [JsonProperty(PropertyName = "amount")] public double? Amount { get; private set; } /// /// Gets the Azure meter for usage against included quantities. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "includedQuantityMeter")] + [JsonProperty(PropertyName = "includedQuantityMeter")] public string IncludedQuantityMeter { get; private set; } /// /// Gets the Azure meter for usage which exceeds included quantities. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "overageMeter")] + [JsonProperty(PropertyName = "overageMeter")] public string OverageMeter { get; private set; } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanUsageHistory.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanUsageHistory.cs index deaeab8f757f..a6ed7a67e562 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanUsageHistory.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/PlanUsageHistory.cs @@ -1,13 +1,18 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -19,7 +24,10 @@ public partial class PlanUsageHistory /// /// Initializes a new instance of the PlanUsageHistory class. /// - public PlanUsageHistory() { } + public PlanUsageHistory() + { + CustomInit(); + } /// /// Initializes a new instance of the PlanUsageHistory class. @@ -41,7 +49,7 @@ public PlanUsageHistory() { } /// resources. /// The date of usage, in ISO 8601 /// format. - public PlanUsageHistory(System.Collections.Generic.IDictionary planDeletionOverage = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary planMigrationOverage = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary planQuantitiesAfterUsage = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary planQuantitiesBeforeUsage = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary planUsageOverage = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary usage = default(System.Collections.Generic.IDictionary), System.DateTime? usageDate = default(System.DateTime?)) + public PlanUsageHistory(IDictionary planDeletionOverage = default(IDictionary), IDictionary planMigrationOverage = default(IDictionary), IDictionary planQuantitiesAfterUsage = default(IDictionary), IDictionary planQuantitiesBeforeUsage = default(IDictionary), IDictionary planUsageOverage = default(IDictionary), IDictionary usage = default(IDictionary), System.DateTime? usageDate = default(System.DateTime?)) { PlanDeletionOverage = planDeletionOverage; PlanMigrationOverage = planMigrationOverage; @@ -50,55 +58,61 @@ public PlanUsageHistory() { } PlanUsageOverage = planUsageOverage; Usage = usage; UsageDate = usageDate; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets overage incurred as a result of deleting a commitment /// plan. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "planDeletionOverage")] - public System.Collections.Generic.IDictionary PlanDeletionOverage { get; set; } + [JsonProperty(PropertyName = "planDeletionOverage")] + public IDictionary PlanDeletionOverage { get; set; } /// - /// Gets or sets overage incurred as a result of migrating a - /// commitment plan from one SKU to another. + /// Gets or sets overage incurred as a result of migrating a commitment + /// plan from one SKU to another. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "planMigrationOverage")] - public System.Collections.Generic.IDictionary PlanMigrationOverage { get; set; } + [JsonProperty(PropertyName = "planMigrationOverage")] + public IDictionary PlanMigrationOverage { get; set; } /// /// Gets or sets included quantities remaining after usage against the /// commitment plan's associated resources was calculated. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "planQuantitiesAfterUsage")] - public System.Collections.Generic.IDictionary PlanQuantitiesAfterUsage { get; set; } + [JsonProperty(PropertyName = "planQuantitiesAfterUsage")] + public IDictionary PlanQuantitiesAfterUsage { get; set; } /// - /// Gets or sets included quantities remaining before usage against - /// the commitment plan's associated resources was calculated. + /// Gets or sets included quantities remaining before usage against the + /// commitment plan's associated resources was calculated. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "planQuantitiesBeforeUsage")] - public System.Collections.Generic.IDictionary PlanQuantitiesBeforeUsage { get; set; } + [JsonProperty(PropertyName = "planQuantitiesBeforeUsage")] + public IDictionary PlanQuantitiesBeforeUsage { get; set; } /// /// Gets or sets usage against the commitment plan's associated /// resources which was not covered by included quantities and is /// therefore overage. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "planUsageOverage")] - public System.Collections.Generic.IDictionary PlanUsageOverage { get; set; } + [JsonProperty(PropertyName = "planUsageOverage")] + public IDictionary PlanUsageOverage { get; set; } /// /// Gets or sets usage against the commitment plan's associated /// resources. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "usage")] - public System.Collections.Generic.IDictionary Usage { get; set; } + [JsonProperty(PropertyName = "usage")] + public IDictionary Usage { get; set; } /// /// Gets or sets the date of usage, in ISO 8601 format. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "usageDate")] + [JsonProperty(PropertyName = "usageDate")] public System.DateTime? UsageDate { get; set; } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Resource.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Resource.cs index 67c1add69648..2b6e5d479126 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Resource.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/Resource.cs @@ -1,24 +1,34 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// Common properties of an ARM resource. /// - public partial class Resource : Microsoft.Rest.Azure.IResource + public partial class Resource : IResource { /// /// Initializes a new instance of the Resource class. /// - public Resource() { } + public Resource() + { + CustomInit(); + } /// /// Initializes a new instance of the Resource class. @@ -28,56 +38,62 @@ public Resource() { } /// Resource name. /// Resource type. /// User-defined tags for the resource. - public Resource(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary)) + public Resource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) { Id = id; Name = name; Location = location; Type = type; Tags = tags; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets resource Id. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// /// Gets resource name. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; private set; } /// /// Gets or sets resource location. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets resource type. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + [JsonProperty(PropertyName = "type")] public string Type { get; private set; } /// /// Gets or sets user-defined tags for the resource. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Location == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Location"); + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSku.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSku.cs index 8db25c7df3ae..584b04ada117 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSku.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSku.cs @@ -1,13 +1,16 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -18,13 +21,16 @@ public partial class ResourceSku /// /// Initializes a new instance of the ResourceSku class. /// - public ResourceSku() { } + public ResourceSku() + { + CustomInit(); + } /// /// Initializes a new instance of the ResourceSku class. /// - /// The scale-out capacity of the resource. 1 - /// is 1x, 2 is 2x, etc. This impacts the quantities and cost of any + /// The scale-out capacity of the resource. 1 is + /// 1x, 2 is 2x, etc. This impacts the quantities and cost of any /// commitment plan resource. /// The SKU name. Along with tier, uniquely /// identifies the SKU. @@ -35,28 +41,34 @@ public ResourceSku() { } Capacity = capacity; Name = name; Tier = tier; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the scale-out capacity of the resource. 1 is 1x, 2 is /// 2x, etc. This impacts the quantities and cost of any commitment /// plan resource. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "capacity")] + [JsonProperty(PropertyName = "capacity")] public int? Capacity { get; set; } /// - /// Gets or sets the SKU name. Along with tier, uniquely identifies - /// the SKU. + /// Gets or sets the SKU name. Along with tier, uniquely identifies the + /// SKU. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// Gets or sets the SKU tier. Along with name, uniquely identifies - /// the SKU. + /// Gets or sets the SKU tier. Along with name, uniquely identifies the + /// SKU. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tier")] + [JsonProperty(PropertyName = "tier")] public string Tier { get; set; } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsReasonCode.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsReasonCode.cs new file mode 100644 index 000000000000..7c1ab21b400f --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsReasonCode.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + + /// + /// Defines values for ResourceSkuRestrictionsReasonCode. + /// + public static class ResourceSkuRestrictionsReasonCode + { + public const string QuotaId = "QuotaId"; + public const string NotAvailableForSubscription = "NotAvailableForSubscription"; + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsType.cs new file mode 100644 index 000000000000..ac37b1127674 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/ResourceSkuRestrictionsType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + + /// + /// Defines values for ResourceSkuRestrictionsType. + /// + public static class ResourceSkuRestrictionsType + { + public const string Location = "location"; + public const string Zone = "zone"; + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapability.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapability.cs new file mode 100644 index 000000000000..4948e52b192e --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapability.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes The SKU capabilities object. + /// + public partial class SkuCapability + { + /// + /// Initializes a new instance of the SkuCapability class. + /// + public SkuCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SkuCapability class. + /// + /// The capability name. + /// The capability value. + public SkuCapability(string name = default(string), string value = default(string)) + { + Name = name; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the capability name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the capability value. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; private set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacity.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacity.cs new file mode 100644 index 000000000000..26450a837d03 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacity.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes scaling information of a SKU. + /// + public partial class SkuCapacity + { + /// + /// Initializes a new instance of the SkuCapacity class. + /// + public SkuCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SkuCapacity class. + /// + /// The minimum capacity. + /// The maximum capacity that can be set. + /// The default capacity. + /// The scale type applicable to the sku. + /// Possible values include: 'Automatic', 'Manual', 'None' + public SkuCapacity(long? minimum = default(long?), long? maximum = default(long?), long? defaultProperty = default(long?), string scaleType = default(string)) + { + Minimum = minimum; + Maximum = maximum; + DefaultProperty = defaultProperty; + ScaleType = scaleType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the minimum capacity. + /// + [JsonProperty(PropertyName = "minimum")] + public long? Minimum { get; private set; } + + /// + /// Gets the maximum capacity that can be set. + /// + [JsonProperty(PropertyName = "maximum")] + public long? Maximum { get; private set; } + + /// + /// Gets the default capacity. + /// + [JsonProperty(PropertyName = "default")] + public long? DefaultProperty { get; private set; } + + /// + /// Gets the scale type applicable to the sku. Possible values include: + /// 'Automatic', 'Manual', 'None' + /// + [JsonProperty(PropertyName = "scaleType")] + public string ScaleType { get; private set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacityScaleType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacityScaleType.cs new file mode 100644 index 000000000000..d668e06eb08b --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCapacityScaleType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + + /// + /// Defines values for SkuCapacityScaleType. + /// + public static class SkuCapacityScaleType + { + public const string Automatic = "Automatic"; + public const string Manual = "Manual"; + public const string None = "None"; + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCost.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCost.cs new file mode 100644 index 000000000000..7b28e0b052ce --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuCost.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes metadata for SKU cost info. + /// + public partial class SkuCost + { + /// + /// Initializes a new instance of the SkuCost class. + /// + public SkuCost() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SkuCost class. + /// + /// The meter used for this part of a SKU's + /// cost. + /// The multiplier for the meter ID. + /// The overall duration represented by the + /// quantity. + public SkuCost(string meterID = default(string), long? quantity = default(long?), string extendedUnit = default(string)) + { + MeterID = meterID; + Quantity = quantity; + ExtendedUnit = extendedUnit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the meter used for this part of a SKU's cost. + /// + [JsonProperty(PropertyName = "meterID")] + public string MeterID { get; private set; } + + /// + /// Gets the multiplier for the meter ID. + /// + [JsonProperty(PropertyName = "quantity")] + public long? Quantity { get; private set; } + + /// + /// Gets the overall duration represented by the quantity. + /// + [JsonProperty(PropertyName = "extendedUnit")] + public string ExtendedUnit { get; private set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuRestrictions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuRestrictions.cs new file mode 100644 index 000000000000..0f040d4a5d0f --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Models/SkuRestrictions.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes restrictions which would prevent a SKU from being used. + /// + public partial class SkuRestrictions + { + /// + /// Initializes a new instance of the SkuRestrictions class. + /// + public SkuRestrictions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SkuRestrictions class. + /// + /// The type of restrictions. Possible values + /// include: 'location', 'zone' + /// The value of restrictions. If the restriction + /// type is set to location. This would be different locations where + /// the SKU is restricted. + /// The reason for restriction. Possible + /// values include: 'QuotaId', 'NotAvailableForSubscription' + public SkuRestrictions(string type = default(string), IList values = default(IList), string reasonCode = default(string)) + { + Type = type; + Values = values; + ReasonCode = reasonCode; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the type of restrictions. Possible values include: 'location', + /// 'zone' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the value of restrictions. If the restriction type is set to + /// location. This would be different locations where the SKU is + /// restricted. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; private set; } + + /// + /// Gets the reason for restriction. Possible values include: + /// 'QuotaId', 'NotAvailableForSubscription' + /// + [JsonProperty(PropertyName = "reasonCode")] + public string ReasonCode { get; private set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Operations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Operations.cs new file mode 100644 index 000000000000..82f2821876ab --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/Operations.cs @@ -0,0 +1,228 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans +{ + 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(AzureMLCommitmentPlansManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AzureMLCommitmentPlansManagementClient + /// + public AzureMLCommitmentPlansManagementClient Client { get; private set; } + + /// + /// Lists all of the available Azure Machine Learning Studio Commitment Plan RP + /// 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.MachineLearning/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 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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/OperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/OperationsExtensions.cs new file mode 100644 index 000000000000..fcbce82c783f --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/OperationsExtensions.cs @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available Azure Machine Learning Studio Commitment Plan RP + /// REST API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Azure Machine Learning Studio Commitment Plan RP + /// 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; + } + } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SdkInfo_AzureMLCommitmentPlansManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SdkInfo_AzureMLCommitmentPlansManagementClient.cs new file mode 100644 index 000000000000..a62dd37437eb --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SdkInfo_AzureMLCommitmentPlansManagementClient.cs @@ -0,0 +1,31 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_AzureMLCommitmentPlansManagementClient + { + get + { + return new Tuple[] + { + new Tuple("MachineLearning", "CommitmentAssociations", "2016-05-01-preview"), + new Tuple("MachineLearning", "CommitmentPlans", "2016-05-01-preview"), + new Tuple("MachineLearning", "Operations", "2016-05-01-preview"), + new Tuple("MachineLearning", "Skus", "2016-05-01-preview"), + new Tuple("MachineLearning", "UsageHistory", "2016-05-01-preview"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperations.cs new file mode 100644 index 000000000000..998f6fa13842 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperations.cs @@ -0,0 +1,232 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans +{ + 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; + + /// + /// SkusOperations operations. + /// + internal partial class SkusOperations : IServiceOperations, ISkusOperations + { + /// + /// Initializes a new instance of the SkusOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SkusOperations(AzureMLCommitmentPlansManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AzureMLCommitmentPlansManagementClient + /// + public AzureMLCommitmentPlansManagementClient Client { get; private set; } + + /// + /// Lists the available commitment plan SKUs. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus").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; + } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperationsExtensions.cs new file mode 100644 index 000000000000..496c081e8d1e --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/SkusOperationsExtensions.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SkusOperations. + /// + public static partial class SkusOperationsExtensions + { + /// + /// Lists the available commitment plan SKUs. + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable List(this ISkusOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists the available commitment plan SKUs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ISkusOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperations.cs index 968a7145dad8..b9e85c531685 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperations.cs @@ -1,22 +1,31 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { - using System.Linq; 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; /// /// UsageHistoryOperations operations. /// - internal partial class UsageHistoryOperations : Microsoft.Rest.IServiceOperations, IUsageHistoryOperations + internal partial class UsageHistoryOperations : IServiceOperations, IUsageHistoryOperations { /// /// Initializes a new instance of the UsageHistoryOperations class. @@ -29,11 +38,11 @@ internal partial class UsageHistoryOperations : Microsoft.Rest.IServiceOperation /// internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } - this.Client = client; + Client = client; } /// @@ -42,7 +51,7 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) public AzureMLCommitmentPlansManagementClient Client { get; private set; } /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The resource group name. @@ -59,86 +68,91 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) /// /// 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 System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (commitmentPlanName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "commitmentPlanName"); + throw new ValidationException(ValidationRules.CannotBeNull, "commitmentPlanName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("commitmentPlanName", commitmentPlanName); tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/usageHistory").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{commitmentPlanName}", System.Uri.EscapeDataString(commitmentPlanName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (skipToken != null) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } - if (this.Client.ApiVersion != null) + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -154,51 +168,51 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -208,7 +222,7 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -221,27 +235,27 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The NextLink from the previous successful call to List operation. @@ -252,61 +266,66 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) /// /// 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 System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; _url = _url.Replace("{nextLink}", nextPageLink); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -322,51 +341,51 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -376,7 +395,7 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -389,21 +408,21 @@ internal UsageHistoryOperations(AzureMLCommitmentPlansManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperationsExtensions.cs index fd6654385ed7..d4cc21bace18 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperationsExtensions.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/CommitmentPlans/UsageHistoryOperationsExtensions.cs @@ -1,16 +1,20 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; using System.Threading.Tasks; - using Microsoft.Rest.Azure; - using Models; /// /// Extension methods for UsageHistoryOperations. @@ -18,7 +22,7 @@ namespace Microsoft.Azure.Management.MachineLearning.CommitmentPlans public static partial class UsageHistoryOperationsExtensions { /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The operations group for this extension method. @@ -32,13 +36,13 @@ public static partial class UsageHistoryOperationsExtensions /// /// Continuation token for pagination. /// - public static Microsoft.Rest.Azure.IPage List(this IUsageHistoryOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string)) + public static IPage List(this IUsageHistoryOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IUsageHistoryOperations)s).ListAsync(resourceGroupName, commitmentPlanName, skipToken), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, commitmentPlanName, skipToken).GetAwaiter().GetResult(); } /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The operations group for this extension method. @@ -55,7 +59,7 @@ public static partial class UsageHistoryOperationsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this IUsageHistoryOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListAsync(this IUsageHistoryOperations operations, string resourceGroupName, string commitmentPlanName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, skipToken, null, cancellationToken).ConfigureAwait(false)) { @@ -64,7 +68,7 @@ public static partial class UsageHistoryOperationsExtensions } /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The operations group for this extension method. @@ -72,13 +76,13 @@ public static partial class UsageHistoryOperationsExtensions /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListNext(this IUsageHistoryOperations operations, string nextPageLink) + public static IPage ListNext(this IUsageHistoryOperations operations, string nextPageLink) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IUsageHistoryOperations)s).ListNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Retrieves the usage history for an Azure ML commitment plan. + /// Retrieve the usage history for an Azure ML commitment plan. /// /// /// The operations group for this extension method. @@ -89,7 +93,7 @@ public static Microsoft.Rest.Azure.IPage ListNext(this IUsageH /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IUsageHistoryOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListNextAsync(this IUsageHistoryOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/AzureMLWebServicesManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/AzureMLWebServicesManagementClient.cs index 97f5b86e4e18..8a04aa606cb9 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/AzureMLWebServicesManagementClient.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/AzureMLWebServicesManagementClient.cs @@ -1,12 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; @@ -62,27 +65,46 @@ public partial class AzureMLWebServicesManagementClient : ServiceClient - /// Gets or sets the preferred language for the response. + /// 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. + /// 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. + /// Whether a unique x-ms-client-request-id should be generated. 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 IOperations. + /// + public virtual IOperations Operations { get; private set; } + /// /// Gets the IWebServicesOperations. /// public virtual IWebServicesOperations WebServices { get; private set; } + /// + /// Initializes a new instance of the AzureMLWebServicesManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling AzureMLWebServicesManagementClient.Dispose(). False: will not dispose provided httpClient + protected AzureMLWebServicesManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + /// /// Initializes a new instance of the AzureMLWebServicesManagementClient class. /// @@ -178,6 +200,33 @@ public AzureMLWebServicesManagementClient(ServiceClientCredentials credentials, } } + /// + /// Initializes a new instance of the AzureMLWebServicesManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling AzureMLWebServicesManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public AzureMLWebServicesManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + /// /// Initializes a new instance of the AzureMLWebServicesManagementClient class. /// @@ -284,6 +333,7 @@ public AzureMLWebServicesManagementClient(System.Uri baseUri, ServiceClientCrede /// private void Initialize() { + Operations = new Operations(this); WebServices = new WebServicesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2017-01-01"; diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IAzureMLWebServicesManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IAzureMLWebServicesManagementClient.cs index 86bed6fbb621..f5e1e2214463 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IAzureMLWebServicesManagementClient.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IAzureMLWebServicesManagementClient.cs @@ -1,12 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -57,23 +60,29 @@ public partial interface IAzureMLWebServicesManagementClient : System.IDisposabl string ApiVersion { get; } /// - /// Gets or sets the preferred language for the response. + /// 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. + /// 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. + /// Whether a unique x-ms-client-request-id should be generated. 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 IOperations. + /// + IOperations Operations { get; } + /// /// Gets the IWebServicesOperations. /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IOperations.cs new file mode 100644 index 000000000000..fd9f36c77a8b --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IOperations.cs @@ -0,0 +1,46 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices +{ + 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 the available 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)); + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IWebServicesOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IWebServicesOperations.cs index f7c80dd83010..9d056b8fe3c6 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IWebServicesOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/IWebServicesOperations.cs @@ -1,12 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -112,7 +115,7 @@ public partial interface IWebServicesOperations /// /// Thrown when a required parameter is null /// - Task> PatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, WebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, PatchedWebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes the specified web service. /// @@ -302,7 +305,7 @@ public partial interface IWebServicesOperations /// /// Thrown when a required parameter is null /// - Task> BeginPatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, WebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginPatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, PatchedWebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes the specified web service. /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetItem.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetItem.cs index 57150943b626..690dc8e00b4c 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetItem.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetItem.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -24,7 +26,7 @@ public partial class AssetItem /// public AssetItem() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetType.cs index 22b3736a9325..a134414a7895 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetType.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AssetType.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for AssetType. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationErrorInfo.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationErrorInfo.cs index af099828f123..d3ac17b54151 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationErrorInfo.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationErrorInfo.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -23,7 +25,7 @@ public partial class AsyncOperationErrorInfo /// public AsyncOperationErrorInfo() { - CustomInit(); + CustomInit(); } /// @@ -49,28 +51,28 @@ public AsyncOperationErrorInfo() partial void CustomInit(); /// - /// Gets or sets the error code. + /// Gets the error code. /// [JsonProperty(PropertyName = "code")] - public string Code { get; set; } + public string Code { get; private set; } /// - /// Gets or sets the error target. + /// Gets the error target. /// [JsonProperty(PropertyName = "target")] - public string Target { get; set; } + public string Target { get; private set; } /// - /// Gets or sets the error message. + /// Gets the error message. /// [JsonProperty(PropertyName = "message")] - public string Message { get; set; } + public string Message { get; private set; } /// - /// Gets or sets an array containing error information. + /// Gets an array containing error information. /// [JsonProperty(PropertyName = "details")] - public IList Details { get; set; } + public IList Details { get; private set; } } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationStatus.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationStatus.cs index 4a268f847399..2c940e32cd83 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationStatus.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/AsyncOperationStatus.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Linq; @@ -21,7 +23,7 @@ public partial class AsyncOperationStatus /// public AsyncOperationStatus() { - CustomInit(); + CustomInit(); } /// @@ -58,16 +60,16 @@ public AsyncOperationStatus() partial void CustomInit(); /// - /// Gets or sets async operation id. + /// Gets async operation id. /// [JsonProperty(PropertyName = "id")] - public string Id { get; set; } + public string Id { get; private set; } /// - /// Gets or sets async operation name. + /// Gets async operation name. /// [JsonProperty(PropertyName = "name")] - public string Name { get; set; } + public string Name { get; private set; } /// /// Gets read Only: The provisioning state of the web service. Valid @@ -90,17 +92,17 @@ public AsyncOperationStatus() public System.DateTime? EndTime { get; private set; } /// - /// Gets or sets async operation progress. + /// Gets async operation progress. /// [JsonProperty(PropertyName = "percentComplete")] - public double? PercentComplete { get; set; } + public double? PercentComplete { get; private set; } /// - /// Gets or sets if the async operation fails, this structure contains - /// the error details. + /// Gets if the async operation fails, this structure contains the + /// error details. /// [JsonProperty(PropertyName = "errorInfo")] - public AsyncOperationErrorInfo ErrorInfo { get; set; } + public AsyncOperationErrorInfo ErrorInfo { get; private set; } } } diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/BlobLocation.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/BlobLocation.cs index 0db14597bb0c..627b2b55fecf 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/BlobLocation.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/BlobLocation.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -22,7 +24,7 @@ public partial class BlobLocation /// public BlobLocation() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnFormat.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnFormat.cs index 1b0375302ad5..a8057c21d771 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnFormat.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnFormat.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for ColumnFormat. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnSpecification.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnSpecification.cs index ce020e2c147e..2e0dcd19f09d 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnSpecification.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnSpecification.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -26,7 +28,7 @@ public partial class ColumnSpecification /// public ColumnSpecification() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnType.cs index f8d47e9e0a5d..dbe2f90335c9 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnType.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ColumnType.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for ColumnType. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/CommitmentPlan.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/CommitmentPlan.cs index ce496069f342..94b87a45226f 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/CommitmentPlan.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/CommitmentPlan.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +25,7 @@ public partial class CommitmentPlan /// public CommitmentPlan() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsConfiguration.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsConfiguration.cs index 1da135a7b2cf..9a300e5aee71 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsConfiguration.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsConfiguration.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -22,7 +24,7 @@ public partial class DiagnosticsConfiguration /// public DiagnosticsConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsLevel.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsLevel.cs index f22377f4647d..4bf6bd229014 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsLevel.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/DiagnosticsLevel.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for DiagnosticsLevel. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ExampleRequest.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ExampleRequest.cs index 908cd5b3bb0c..493a651a8a9c 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ExampleRequest.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ExampleRequest.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -23,7 +25,7 @@ public partial class ExampleRequest /// public ExampleRequest() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphEdge.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphEdge.cs index f040a7d8d11d..5ef2ba6ff68f 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphEdge.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphEdge.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Linq; @@ -21,7 +23,7 @@ public partial class GraphEdge /// public GraphEdge() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphNode.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphNode.cs index d4ed58fb9152..4cf4f90a3e7a 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphNode.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphNode.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -25,7 +27,7 @@ public partial class GraphNode /// public GraphNode() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphPackage.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphPackage.cs index 71722811f013..379940c51807 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphPackage.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphPackage.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -23,7 +25,7 @@ public partial class GraphPackage /// public GraphPackage() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameter.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameter.cs index d6c098841611..43fe68f0a609 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameter.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameter.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -24,7 +26,7 @@ public partial class GraphParameter /// public GraphParameter() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameterLink.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameterLink.cs index 3827df6fc49d..250c0f05930c 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameterLink.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/GraphParameterLink.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -22,7 +24,7 @@ public partial class GraphParameterLink /// public GraphParameterLink() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPort.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPort.cs index d5c42f5dea37..e3e4721e7f77 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPort.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPort.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Linq; @@ -21,7 +23,7 @@ public partial class InputPort /// public InputPort() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPortType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPortType.cs index cbdbff530fd4..5335a80af7cd 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPortType.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/InputPortType.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for InputPortType. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/MachineLearningWorkspace.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/MachineLearningWorkspace.cs index 303e70af525f..aa5c19c1ba9d 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/MachineLearningWorkspace.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/MachineLearningWorkspace.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +25,7 @@ public partial class MachineLearningWorkspace /// public MachineLearningWorkspace() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModeValueInfo.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModeValueInfo.cs index 081d3d19de62..b262c205db3a 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModeValueInfo.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModeValueInfo.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -23,7 +25,7 @@ public partial class ModeValueInfo /// public ModeValueInfo() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModuleAssetParameter.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModuleAssetParameter.cs index f9a4a3875e63..6a8e80b53b49 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModuleAssetParameter.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ModuleAssetParameter.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -23,7 +25,7 @@ public partial class ModuleAssetParameter /// public ModuleAssetParameter() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationDisplayInfo.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationDisplayInfo.cs new file mode 100644 index 000000000000..bd06c0199bd8 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationDisplayInfo.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The API operation info. + /// + public partial class OperationDisplayInfo + { + /// + /// Initializes a new instance of the OperationDisplayInfo class. + /// + public OperationDisplayInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplayInfo class. + /// + /// The description of the operation. + /// The action that users can perform, based on + /// their permission level. + /// The service provider. + /// The resource on which the operation is + /// performed. + public OperationDisplayInfo(string description = default(string), string operation = default(string), string provider = default(string), string resource = default(string)) + { + Description = description; + Operation = operation; + Provider = provider; + Resource = resource; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the description of the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + /// + /// Gets the action that users can perform, based on their permission + /// level. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; private set; } + + /// + /// Gets the service provider. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; private set; } + + /// + /// Gets the resource on which the operation is performed. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; private set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationEntity.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationEntity.cs new file mode 100644 index 000000000000..badc8d3c0576 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OperationEntity.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// An API operation. + /// + public partial class OperationEntity + { + /// + /// Initializes a new instance of the OperationEntity class. + /// + public OperationEntity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationEntity class. + /// + /// Operation name: + /// {provider}/{resource}/{operation}. + /// The API operation info. + public OperationEntity(string name = default(string), OperationDisplayInfo display = default(OperationDisplayInfo)) + { + Name = name; + Display = display; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets operation name: {provider}/{resource}/{operation}. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets or sets the API operation info. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplayInfo Display { get; set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPort.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPort.cs index 35beacb2053a..d8f281b57510 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPort.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPort.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Linq; @@ -21,7 +23,7 @@ public partial class OutputPort /// public OutputPort() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPortType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPortType.cs index aa06b4c27444..7af9ede58d5d 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPortType.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/OutputPortType.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for OutputPortType. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page.cs index 59eadd37557f..41dcf8e69bc0 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; @@ -24,7 +26,7 @@ public class Page : IPage /// /// Gets the link to the next page. /// - [JsonProperty("nextLink")] + [JsonProperty("")] public string NextPageLink { get; private set; } [JsonProperty("value")] diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page1.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page1.cs new file mode 100644 index 000000000000..e0a99dda6b2a --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Page1.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models +{ + 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 Page1 : 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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ParameterType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ParameterType.cs index 004c0cdb1e58..763898404ad2 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ParameterType.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ParameterType.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for ParameterType. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedResource.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedResource.cs new file mode 100644 index 000000000000..00567dcd4f13 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedResource.cs @@ -0,0 +1,89 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Azure resource. + /// + public partial class PatchedResource : IResource + { + /// + /// Initializes a new instance of the PatchedResource class. + /// + public PatchedResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PatchedResource class. + /// + /// Specifies the resource ID. + /// Specifies the name of the resource. + /// Specifies the location of the + /// resource. + /// Specifies the type of the resource. + /// Contains resource tags defined as key/value + /// pairs. + public PatchedResource(string id = default(string), string name = default(string), string location = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Location = location; + Type = type; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets specifies the resource ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets specifies the name of the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets specifies the location of the resource. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; private set; } + + /// + /// Gets specifies the type of the resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets contains resource tags defined as key/value pairs. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedWebService.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedWebService.cs new file mode 100644 index 000000000000..68ea35f99189 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/PatchedWebService.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Instance of an Patched Azure ML web service resource. + /// + public partial class PatchedWebService : PatchedResource + { + /// + /// Initializes a new instance of the PatchedWebService class. + /// + public PatchedWebService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PatchedWebService class. + /// + /// Specifies the resource ID. + /// Specifies the name of the resource. + /// Specifies the location of the + /// resource. + /// Specifies the type of the resource. + /// Contains resource tags defined as key/value + /// pairs. + /// Contains the property payload that + /// describes the web service. + public PatchedWebService(string id = default(string), string name = default(string), string location = default(string), string type = default(string), IDictionary tags = default(IDictionary), WebServiceProperties properties = default(WebServiceProperties)) + : base(id, name, location, type, tags) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets contains the property payload that describes the web + /// service. + /// + [JsonProperty(PropertyName = "properties")] + public WebServiceProperties Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ProvisioningState.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ProvisioningState.cs index 144a6fe04df4..fea33276d254 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ProvisioningState.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ProvisioningState.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; /// /// Defines values for ProvisioningState. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/RealtimeConfiguration.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/RealtimeConfiguration.cs index 7b095d537b75..488a790fad18 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/RealtimeConfiguration.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/RealtimeConfiguration.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +25,7 @@ public partial class RealtimeConfiguration /// public RealtimeConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Resource.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Resource.cs index 892032cfa24d..d54ffba79ab6 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Resource.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/Resource.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; @@ -25,7 +27,7 @@ public partial class Resource : IResource /// public Resource() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ServiceInputOutputSpecification.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ServiceInputOutputSpecification.cs index 96a77fdaf876..476dfc87979d 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ServiceInputOutputSpecification.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/ServiceInputOutputSpecification.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -26,7 +28,7 @@ public partial class ServiceInputOutputSpecification /// public ServiceInputOutputSpecification() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/StorageAccount.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/StorageAccount.cs index 6bbe4e0e7ee9..1a264bd9e2a8 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/StorageAccount.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/StorageAccount.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Linq; @@ -21,7 +23,7 @@ public partial class StorageAccount /// public StorageAccount() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/TableSpecification.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/TableSpecification.cs index 5916d2486c4b..dbe126bc7348 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/TableSpecification.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/TableSpecification.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -25,7 +27,7 @@ public partial class TableSpecification /// public TableSpecification() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebService.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebService.cs index 3b6fc2453dca..0b56f3061965 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebService.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebService.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -24,7 +26,7 @@ public partial class WebService : Resource /// public WebService() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceKeys.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceKeys.cs index 3a1f7e8a1edc..4b3a8a9f4718 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceKeys.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceKeys.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Linq; @@ -21,7 +23,7 @@ public partial class WebServiceKeys /// public WebServiceKeys() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceParameter.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceParameter.cs index 545c49f699da..e2042c2bef3b 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceParameter.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceParameter.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Linq; @@ -21,7 +23,7 @@ public partial class WebServiceParameter /// public WebServiceParameter() { - CustomInit(); + CustomInit(); } /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceProperties.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceProperties.cs index 197cee34c8d2..759a91f89e12 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceProperties.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServiceProperties.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -23,7 +25,7 @@ public partial class WebServiceProperties /// public WebServiceProperties() { - CustomInit(); + CustomInit(); } /// @@ -95,7 +97,7 @@ public WebServiceProperties() /// determined by adding the size of the Assets, Input, Output, /// Package, Parameters, and the ExampleRequest. /// The URI of the payload blob. This - /// paramater contains a value only if the payloadsInBlobStorage + /// parameter contains a value only if the payloadsInBlobStorage /// parameter is set to true. Otherwise is set to null. public WebServiceProperties(string title = default(string), string description = default(string), System.DateTime? createdOn = default(System.DateTime?), System.DateTime? modifiedOn = default(System.DateTime?), string provisioningState = default(string), WebServiceKeys keys = default(WebServiceKeys), bool? readOnlyProperty = default(bool?), string swaggerLocation = default(string), bool? exposeSampleData = default(bool?), RealtimeConfiguration realtimeConfiguration = default(RealtimeConfiguration), DiagnosticsConfiguration diagnostics = default(DiagnosticsConfiguration), StorageAccount storageAccount = default(StorageAccount), MachineLearningWorkspace machineLearningWorkspace = default(MachineLearningWorkspace), CommitmentPlan commitmentPlan = default(CommitmentPlan), ServiceInputOutputSpecification input = default(ServiceInputOutputSpecification), ServiceInputOutputSpecification output = default(ServiceInputOutputSpecification), ExampleRequest exampleRequest = default(ExampleRequest), IDictionary assets = default(IDictionary), IDictionary parameters = default(IDictionary), bool? payloadsInBlobStorage = default(bool?), BlobLocation payloadsLocation = default(BlobLocation)) { @@ -286,7 +288,7 @@ public WebServiceProperties() public bool? PayloadsInBlobStorage { get; set; } /// - /// Gets or sets the URI of the payload blob. This paramater contains a + /// Gets or sets the URI of the payload blob. This parameter contains a /// value only if the payloadsInBlobStorage parameter is set to true. /// Otherwise is set to null. /// diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServicePropertiesForGraph.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServicePropertiesForGraph.cs index c261e5337216..44c6f8ff079e 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServicePropertiesForGraph.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Models/WebServicePropertiesForGraph.cs @@ -1,13 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; - using Microsoft.Azure.Management.MachineLearning.WebServices; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -25,7 +27,7 @@ public partial class WebServicePropertiesForGraph : WebServiceProperties /// public WebServicePropertiesForGraph() { - CustomInit(); + CustomInit(); } /// @@ -98,7 +100,7 @@ public WebServicePropertiesForGraph() /// determined by adding the size of the Assets, Input, Output, /// Package, Parameters, and the ExampleRequest. /// The URI of the payload blob. This - /// paramater contains a value only if the payloadsInBlobStorage + /// parameter contains a value only if the payloadsInBlobStorage /// parameter is set to true. Otherwise is set to null. /// The definition of the graph package making up /// this web service. diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Operations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Operations.cs new file mode 100644 index 000000000000..2a37dc75aa29 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/Operations.cs @@ -0,0 +1,227 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices +{ + 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(AzureMLWebServicesManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AzureMLWebServicesManagementClient + /// + public AzureMLWebServicesManagementClient Client { get; private set; } + + /// + /// Lists all the available 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.MachineLearning/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 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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/OperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/OperationsExtensions.cs new file mode 100644 index 000000000000..3a7a8ec9b98c --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/OperationsExtensions.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all the available REST API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all the available 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; + } + } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/SdkInfo_AzureMLWebServicesManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/SdkInfo_AzureMLWebServicesManagementClient.cs new file mode 100644 index 000000000000..462ef8a83d1f --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/SdkInfo_AzureMLWebServicesManagementClient.cs @@ -0,0 +1,28 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.WebServices +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_AzureMLWebServicesManagementClient + { + get + { + return new Tuple[] + { + new Tuple("MachineLearning", "Operations", "2017-01-01"), + new Tuple("MachineLearning", "WebServices", "2017-01-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperations.cs index 830384b1d781..715676d82175 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperations.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperations.cs @@ -1,12 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -302,7 +305,7 @@ internal WebServicesOperations(AzureMLWebServicesManagementClient client) /// /// The cancellation token. /// - public async Task> PatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, WebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, PatchedWebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request AzureOperationResponse _response = await BeginPatchWithHttpMessagesAsync(resourceGroupName, webServiceName, patchPayload, customHeaders, cancellationToken).ConfigureAwait(false); @@ -733,7 +736,7 @@ internal WebServicesOperations(AzureMLWebServicesManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -919,7 +922,7 @@ internal WebServicesOperations(AzureMLWebServicesManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1208,7 +1211,7 @@ internal WebServicesOperations(AzureMLWebServicesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginPatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, WebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginPatchWithHttpMessagesAsync(string resourceGroupName, string webServiceName, PatchedWebService patchPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1706,7 +1709,7 @@ internal WebServicesOperations(AzureMLWebServicesManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1927,7 +1930,7 @@ internal WebServicesOperations(AzureMLWebServicesManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -2100,7 +2103,7 @@ internal WebServicesOperations(AzureMLWebServicesManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperationsExtensions.cs index 9d1dd4ff5507..4c8a0cc80d3e 100644 --- a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperationsExtensions.cs +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/WebServices/WebServicesOperationsExtensions.cs @@ -1,12 +1,15 @@ -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.MachineLearning.WebServices { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.MachineLearning; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -139,7 +142,7 @@ public static WebService CreateOrUpdate(this IWebServicesOperations operations, /// /// The payload to use to patch the web service. /// - public static WebService Patch(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, WebService patchPayload) + public static WebService Patch(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, PatchedWebService patchPayload) { return operations.PatchAsync(resourceGroupName, webServiceName, patchPayload).GetAwaiter().GetResult(); } @@ -164,7 +167,7 @@ public static WebService Patch(this IWebServicesOperations operations, string re /// /// The cancellation token. /// - public static async Task PatchAsync(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, WebService patchPayload, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PatchAsync(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, PatchedWebService patchPayload, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PatchWithHttpMessagesAsync(resourceGroupName, webServiceName, patchPayload, null, cancellationToken).ConfigureAwait(false)) { @@ -448,7 +451,7 @@ public static WebService BeginCreateOrUpdate(this IWebServicesOperations operati /// /// The payload to use to patch the web service. /// - public static WebService BeginPatch(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, WebService patchPayload) + public static WebService BeginPatch(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, PatchedWebService patchPayload) { return operations.BeginPatchAsync(resourceGroupName, webServiceName, patchPayload).GetAwaiter().GetResult(); } @@ -473,7 +476,7 @@ public static WebService BeginPatch(this IWebServicesOperations operations, stri /// /// The cancellation token. /// - public static async Task BeginPatchAsync(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, WebService patchPayload, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPatchAsync(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, PatchedWebService patchPayload, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginPatchWithHttpMessagesAsync(resourceGroupName, webServiceName, patchPayload, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IMachineLearningWorkspacesManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IMachineLearningWorkspacesManagementClient.cs new file mode 100644 index 000000000000..20956cd5db00 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IMachineLearningWorkspacesManagementClient.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// These APIs allow end users to operate on Azure Machine Learning + /// Workspace resources. They support CRUD operations for Azure Machine + /// Learning Workspaces. + /// + public partial interface IMachineLearningWorkspacesManagementClient : 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 Microsoft Azure subscription ID. + /// + string SubscriptionId { get; set; } + + /// + /// The client API version. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. 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 IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the IWorkspacesOperations. + /// + IWorkspacesOperations Workspaces { get; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IOperations.cs new file mode 100644 index 000000000000..e7133f305dcc --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IOperations.cs @@ -0,0 +1,47 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + 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 Azure Machine Learning Studio 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)); + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IWorkspacesOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IWorkspacesOperations.cs new file mode 100644 index 000000000000..d952edf1dd7b --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/IWorkspacesOperations.cs @@ -0,0 +1,274 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkspacesOperations operations. + /// + public partial interface IWorkspacesOperations + { + /// + /// Gets the properties of the specified machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning + /// workspace belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// 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 workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workspace with the specified parameters. + /// + /// + /// The name of the resource group to which the machine learning + /// workspace belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for creating or updating a machine learning + /// workspace. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Workspace parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning + /// workspace belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// 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 workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a machine learning workspace with the specified parameters. + /// + /// + /// The name of the resource group to which the machine learning + /// workspace belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for updating a machine learning workspace. + /// + /// + /// 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 workspaceName, WorkspaceUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Resync storage keys associated with this workspace. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning + /// workspace belongs. + /// + /// + /// 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 ResyncStorageKeysWithHttpMessagesAsync(string workspaceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List the authorization keys associated with this workspace. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning + /// workspace belongs. + /// + /// + /// 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> ListWorkspaceKeysWithHttpMessagesAsync(string workspaceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the available machine learning workspaces under the + /// specified resource group. + /// + /// + /// The name of the resource group to which the machine learning + /// workspace belongs. + /// + /// + /// 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)); + /// + /// Lists all the available machine learning workspaces under the + /// specified subscription. + /// + /// + /// 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 the available machine learning workspaces under the + /// specified 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)); + /// + /// Lists all the available machine learning workspaces under the + /// specified subscription. + /// + /// + /// 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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/MachineLearningWorkspacesManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/MachineLearningWorkspacesManagementClient.cs new file mode 100644 index 000000000000..c161ba5d6f51 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/MachineLearningWorkspacesManagementClient.cs @@ -0,0 +1,368 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + 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; + + /// + /// These APIs allow end users to operate on Azure Machine Learning + /// Workspace resources. They support CRUD operations for Azure Machine + /// Learning Workspaces. + /// + public partial class MachineLearningWorkspacesManagementClient : ServiceClient, IMachineLearningWorkspacesManagementClient, 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 Microsoft Azure subscription ID. + /// + public string SubscriptionId { get; set; } + + /// + /// The client API version. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. 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 IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the IWorkspacesOperations. + /// + public virtual IWorkspacesOperations Workspaces { get; private set; } + + /// + /// Initializes a new instance of the MachineLearningWorkspacesManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling MachineLearningWorkspacesManagementClient.Dispose(). False: will not dispose provided httpClient + protected MachineLearningWorkspacesManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the MachineLearningWorkspacesManagementClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected MachineLearningWorkspacesManagementClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the MachineLearningWorkspacesManagementClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected MachineLearningWorkspacesManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the MachineLearningWorkspacesManagementClient 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 MachineLearningWorkspacesManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the MachineLearningWorkspacesManagementClient 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 MachineLearningWorkspacesManagementClient(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 MachineLearningWorkspacesManagementClient 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 MachineLearningWorkspacesManagementClient(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 MachineLearningWorkspacesManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling MachineLearningWorkspacesManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public MachineLearningWorkspacesManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the MachineLearningWorkspacesManagementClient 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 MachineLearningWorkspacesManagementClient(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 MachineLearningWorkspacesManagementClient 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 MachineLearningWorkspacesManagementClient(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 MachineLearningWorkspacesManagementClient 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 MachineLearningWorkspacesManagementClient(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() + { + Operations = new Operations(this); + Workspaces = new WorkspacesOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2016-04-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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponse.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponse.cs new file mode 100644 index 000000000000..726875b65fd7 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponse.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The error response send when an operation fails. + /// + public partial class ErrorResponse + { + /// + /// Initializes a new instance of the ErrorResponse class. + /// + public ErrorResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + /// error code + /// error message + public ErrorResponse(string code, string message) + { + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets error code + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets error message + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Code == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Code"); + } + if (Message == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Message"); + } + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponseException.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponseException.cs new file mode 100644 index 000000000000..b8cb0fb9cef2 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/ErrorResponseException.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ErrorResponse + /// information. + /// + public partial class ErrorResponseException : 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 ErrorResponse Body { get; set; } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + public ErrorResponseException() + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + public ErrorResponseException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + /// Inner exception. + public ErrorResponseException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Operation.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Operation.cs new file mode 100644 index 000000000000..56b1142d5e51 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Operation.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure Machine Learning Studio REST API operation + /// + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// Operation name: + /// {provider}/{resource}/{operation} + /// Display name of operation + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) + { + Name = name; + Display = display; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation name: {provider}/{resource}/{operation} + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets display name of operation + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/OperationDisplay.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/OperationDisplay.cs new file mode 100644 index 000000000000..4d7ff6ec3ac7 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/OperationDisplay.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Display name of operation + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// The resource provider name: + /// Microsoft.MachineLearning + /// The resource on which the operation is + /// performed. + /// The operation that users can + /// perform. + /// The description for the + /// operation. + public OperationDisplay(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 the resource provider name: Microsoft.MachineLearning + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets the resource on which the operation is performed. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets the operation that users can perform. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets the description for the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page.cs new file mode 100644 index 000000000000..4831c9246fe7 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + 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("")] + 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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page1.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page1.cs new file mode 100644 index 000000000000..ef01aaba6929 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Page1.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + 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 Page1 : 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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Resource.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Resource.cs new file mode 100644 index 000000000000..fb19a06a6bd0 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Resource.cs @@ -0,0 +1,102 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An Azure resource. + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// The location of the resource. This cannot be + /// changed after the resource is created. + /// The resource ID. + /// The name of the resource. + /// The type of the resource. + /// The tags of the resource. + 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 the resource ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets the location of the resource. This cannot be changed + /// after the resource is created. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the tags of the resource. + /// + [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/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Workspace.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Workspace.cs new file mode 100644 index 000000000000..f2acda53a03b --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/Workspace.cs @@ -0,0 +1,154 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An object that represents a machine learning workspace. + /// + [Rest.Serialization.JsonTransformation] + public partial class Workspace : Resource + { + /// + /// Initializes a new instance of the Workspace class. + /// + public Workspace() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Workspace class. + /// + /// The location of the resource. This cannot be + /// changed after the resource is created. + /// The fully qualified arm id of + /// the storage account associated with this workspace. + /// The email id of the owner for this + /// workspace. + /// The resource ID. + /// The name of the resource. + /// The type of the resource. + /// The tags of the resource. + /// The type of this workspace. Possible + /// values include: 'Production', 'Free', 'Anonymous', 'PaidStandard', + /// 'PaidPremium' + /// The current state of workspace + /// resource. Possible values include: 'Deleted', 'Enabled', + /// 'Disabled', 'Migrated', 'Updated', 'Registered', + /// 'Unregistered' + /// The immutable id associated with this + /// workspace. + /// The creation time for this workspace + /// resource. + /// The regional endpoint for the machine + /// learning studio service which hosts this workspace. + /// The key vault identifier used + /// for encrypted workspaces. + public Workspace(string location, string userStorageAccountId, string ownerEmail, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), WorkspaceType? workspaceType = default(WorkspaceType?), WorkspaceState? workspaceState = default(WorkspaceState?), string workspaceId = default(string), string creationTime = default(string), string studioEndpoint = default(string), string keyVaultIdentifierId = default(string)) + : base(location, id, name, type, tags) + { + UserStorageAccountId = userStorageAccountId; + OwnerEmail = ownerEmail; + WorkspaceType = workspaceType; + WorkspaceState = workspaceState; + WorkspaceId = workspaceId; + CreationTime = creationTime; + StudioEndpoint = studioEndpoint; + KeyVaultIdentifierId = keyVaultIdentifierId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fully qualified arm id of the storage account + /// associated with this workspace. + /// + [JsonProperty(PropertyName = "properties.userStorageAccountId")] + public string UserStorageAccountId { get; set; } + + /// + /// Gets or sets the email id of the owner for this workspace. + /// + [JsonProperty(PropertyName = "properties.ownerEmail")] + public string OwnerEmail { get; set; } + + /// + /// Gets the type of this workspace. Possible values include: + /// 'Production', 'Free', 'Anonymous', 'PaidStandard', 'PaidPremium' + /// + [JsonProperty(PropertyName = "properties.workspaceType")] + public WorkspaceType? WorkspaceType { get; private set; } + + /// + /// Gets the current state of workspace resource. Possible values + /// include: 'Deleted', 'Enabled', 'Disabled', 'Migrated', 'Updated', + /// 'Registered', 'Unregistered' + /// + [JsonProperty(PropertyName = "properties.workspaceState")] + public WorkspaceState? WorkspaceState { get; private set; } + + /// + /// Gets the immutable id associated with this workspace. + /// + [JsonProperty(PropertyName = "properties.workspaceId")] + public string WorkspaceId { get; private set; } + + /// + /// Gets the creation time for this workspace resource. + /// + [JsonProperty(PropertyName = "properties.creationTime")] + public string CreationTime { get; private set; } + + /// + /// Gets the regional endpoint for the machine learning studio service + /// which hosts this workspace. + /// + [JsonProperty(PropertyName = "properties.studioEndpoint")] + public string StudioEndpoint { get; private set; } + + /// + /// Gets or sets the key vault identifier used for encrypted + /// workspaces. + /// + [JsonProperty(PropertyName = "properties.keyVaultIdentifierId")] + public string KeyVaultIdentifierId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (UserStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "UserStorageAccountId"); + } + if (OwnerEmail == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "OwnerEmail"); + } + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceKeysResponse.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceKeysResponse.cs new file mode 100644 index 000000000000..f7d53d57cd6d --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceKeysResponse.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Workspace authorization keys for a workspace. + /// + public partial class WorkspaceKeysResponse + { + /// + /// Initializes a new instance of the WorkspaceKeysResponse class. + /// + public WorkspaceKeysResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkspaceKeysResponse class. + /// + /// Primary authorization key for this + /// workspace. + /// Secondary authorization key for this + /// workspace. + public WorkspaceKeysResponse(string primaryToken = default(string), string secondaryToken = default(string)) + { + PrimaryToken = primaryToken; + SecondaryToken = secondaryToken; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets primary authorization key for this workspace. + /// + [JsonProperty(PropertyName = "primaryToken")] + public string PrimaryToken { get; set; } + + /// + /// Gets or sets secondary authorization key for this workspace. + /// + [JsonProperty(PropertyName = "secondaryToken")] + public string SecondaryToken { get; set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceState.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceState.cs new file mode 100644 index 000000000000..7397c093770a --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceState.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for WorkspaceState. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum WorkspaceState + { + [EnumMember(Value = "Deleted")] + Deleted, + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled, + [EnumMember(Value = "Migrated")] + Migrated, + [EnumMember(Value = "Updated")] + Updated, + [EnumMember(Value = "Registered")] + Registered, + [EnumMember(Value = "Unregistered")] + Unregistered + } + internal static class WorkspaceStateEnumExtension + { + internal static string ToSerializedValue(this WorkspaceState? value) + { + return value == null ? null : ((WorkspaceState)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this WorkspaceState value) + { + switch( value ) + { + case WorkspaceState.Deleted: + return "Deleted"; + case WorkspaceState.Enabled: + return "Enabled"; + case WorkspaceState.Disabled: + return "Disabled"; + case WorkspaceState.Migrated: + return "Migrated"; + case WorkspaceState.Updated: + return "Updated"; + case WorkspaceState.Registered: + return "Registered"; + case WorkspaceState.Unregistered: + return "Unregistered"; + } + return null; + } + + internal static WorkspaceState? ParseWorkspaceState(this string value) + { + switch( value ) + { + case "Deleted": + return WorkspaceState.Deleted; + case "Enabled": + return WorkspaceState.Enabled; + case "Disabled": + return WorkspaceState.Disabled; + case "Migrated": + return WorkspaceState.Migrated; + case "Updated": + return WorkspaceState.Updated; + case "Registered": + return WorkspaceState.Registered; + case "Unregistered": + return WorkspaceState.Unregistered; + } + return null; + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceType.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceType.cs new file mode 100644 index 000000000000..697dc69f9439 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceType.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for WorkspaceType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum WorkspaceType + { + [EnumMember(Value = "Production")] + Production, + [EnumMember(Value = "Free")] + Free, + [EnumMember(Value = "Anonymous")] + Anonymous, + [EnumMember(Value = "PaidStandard")] + PaidStandard, + [EnumMember(Value = "PaidPremium")] + PaidPremium + } + internal static class WorkspaceTypeEnumExtension + { + internal static string ToSerializedValue(this WorkspaceType? value) + { + return value == null ? null : ((WorkspaceType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this WorkspaceType value) + { + switch( value ) + { + case WorkspaceType.Production: + return "Production"; + case WorkspaceType.Free: + return "Free"; + case WorkspaceType.Anonymous: + return "Anonymous"; + case WorkspaceType.PaidStandard: + return "PaidStandard"; + case WorkspaceType.PaidPremium: + return "PaidPremium"; + } + return null; + } + + internal static WorkspaceType? ParseWorkspaceType(this string value) + { + switch( value ) + { + case "Production": + return WorkspaceType.Production; + case "Free": + return WorkspaceType.Free; + case "Anonymous": + return WorkspaceType.Anonymous; + case "PaidStandard": + return WorkspaceType.PaidStandard; + case "PaidPremium": + return WorkspaceType.PaidPremium; + } + return null; + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceUpdateParameters.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceUpdateParameters.cs new file mode 100644 index 000000000000..490d970fdb71 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Models/WorkspaceUpdateParameters.cs @@ -0,0 +1,80 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for updating a machine learning workspace. + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkspaceUpdateParameters + { + /// + /// Initializes a new instance of the WorkspaceUpdateParameters class. + /// + public WorkspaceUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkspaceUpdateParameters class. + /// + /// The resource tags for the machine learning + /// workspace. + /// The current state of workspace + /// resource. Possible values include: 'Deleted', 'Enabled', + /// 'Disabled', 'Migrated', 'Updated', 'Registered', + /// 'Unregistered' + /// The key vault identifier used + /// for encrypted workspaces. + public WorkspaceUpdateParameters(IDictionary tags = default(IDictionary), WorkspaceState? workspaceState = default(WorkspaceState?), string keyVaultIdentifierId = default(string)) + { + Tags = tags; + WorkspaceState = workspaceState; + KeyVaultIdentifierId = keyVaultIdentifierId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource tags for the machine learning workspace. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the current state of workspace resource. Possible + /// values include: 'Deleted', 'Enabled', 'Disabled', 'Migrated', + /// 'Updated', 'Registered', 'Unregistered' + /// + [JsonProperty(PropertyName = "properties.workspaceState")] + public WorkspaceState? WorkspaceState { get; set; } + + /// + /// Gets or sets the key vault identifier used for encrypted + /// workspaces. + /// + [JsonProperty(PropertyName = "properties.keyVaultIdentifierId")] + public string KeyVaultIdentifierId { get; set; } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Operations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Operations.cs new file mode 100644 index 000000000000..06893bf1b75c --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/Operations.cs @@ -0,0 +1,223 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + 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(MachineLearningWorkspacesManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the MachineLearningWorkspacesManagementClient + /// + public MachineLearningWorkspacesManagementClient Client { get; private set; } + + /// + /// Lists all of the available Azure Machine Learning Studio 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.MachineLearning/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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/OperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/OperationsExtensions.cs new file mode 100644 index 000000000000..319c893bb01a --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/OperationsExtensions.cs @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available Azure Machine Learning Studio REST API + /// operations. + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Azure Machine Learning Studio 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; + } + } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/SdkInfo_MachineLearningWorkspacesManagementClient.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/SdkInfo_MachineLearningWorkspacesManagementClient.cs new file mode 100644 index 000000000000..9d1d92314e01 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/SdkInfo_MachineLearningWorkspacesManagementClient.cs @@ -0,0 +1,28 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_MachineLearningWorkspacesManagementClient + { + get + { + return new Tuple[] + { + new Tuple("MachineLearning", "Operations", "2016-04-01"), + new Tuple("MachineLearning", "Workspaces", "2016-04-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperations.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperations.cs new file mode 100644 index 000000000000..6d5a6e5971c9 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperations.cs @@ -0,0 +1,1892 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + 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; + + /// + /// WorkspacesOperations operations. + /// + internal partial class WorkspacesOperations : IServiceOperations, IWorkspacesOperations + { + /// + /// Initializes a new instance of the WorkspacesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WorkspacesOperations(MachineLearningWorkspacesManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the MachineLearningWorkspacesManagementClient + /// + public MachineLearningWorkspacesManagementClient Client { get; private set; } + + /// + /// Gets the properties of the specified machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// 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 workspaceName, 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"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + 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.MachineLearning/workspaces/{workspaceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Creates or updates a workspace with the specified parameters. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for creating or updating a machine learning workspace. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Workspace parameters, 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"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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.MachineLearning/workspaces/{workspaceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Deletes a machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// 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 workspaceName, 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"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + 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.MachineLearning/workspaces/{workspaceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Updates a machine learning workspace with the specified parameters. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for updating a machine learning workspace. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, WorkspaceUpdateParameters parameters, 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"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", 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.MachineLearning/workspaces/{workspaceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Resync storage keys associated with this workspace. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// 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 ResyncStorageKeysWithHttpMessagesAsync(string workspaceName, string resourceGroupName, 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"); + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ResyncStorageKeys", 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.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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("POST"); + _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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the authorization keys associated with this workspace. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// 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> ListWorkspaceKeysWithHttpMessagesAsync(string workspaceName, string resourceGroupName, 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"); + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListWorkspaceKeys", 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.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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("POST"); + _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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the available machine learning workspaces under the specified + /// resource group. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// 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 (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + // 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.MachineLearning/workspaces").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the available machine learning workspaces under the specified + /// subscription. + /// + /// + /// 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.MachineLearning/workspaces").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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the available machine learning workspaces under the specified + /// 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the available machine learning workspaces under the specified + /// subscription. + /// + /// + /// 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperationsExtensions.cs b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperationsExtensions.cs new file mode 100644 index 000000000000..bbf1605cc9d0 --- /dev/null +++ b/sdk/machinelearning/Microsoft.Azure.Management.MachineLearning/src/Generated/Workspaces/WorkspacesOperationsExtensions.cs @@ -0,0 +1,423 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.MachineLearning.Workspaces +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for WorkspacesOperations. + /// + public static partial class WorkspacesOperationsExtensions + { + /// + /// Gets the properties of the specified machine learning workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + public static Workspace Get(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName) + { + return operations.GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the specified machine learning workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workspace with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for creating or updating a machine learning workspace. + /// + public static Workspace CreateOrUpdate(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, Workspace parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workspace with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for creating or updating a machine learning workspace. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, Workspace parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a machine learning workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + public static void Delete(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName) + { + operations.DeleteAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a machine learning workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a machine learning workspace with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for updating a machine learning workspace. + /// + public static Workspace Update(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, WorkspaceUpdateParameters parameters) + { + return operations.UpdateAsync(resourceGroupName, workspaceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a machine learning workspace with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The parameters for updating a machine learning workspace. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, WorkspaceUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Resync storage keys associated with this workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + public static void ResyncStorageKeys(this IWorkspacesOperations operations, string workspaceName, string resourceGroupName) + { + operations.ResyncStorageKeysAsync(workspaceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Resync storage keys associated with this workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The cancellation token. + /// + public static async Task ResyncStorageKeysAsync(this IWorkspacesOperations operations, string workspaceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ResyncStorageKeysWithHttpMessagesAsync(workspaceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List the authorization keys associated with this workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + public static WorkspaceKeysResponse ListWorkspaceKeys(this IWorkspacesOperations operations, string workspaceName, string resourceGroupName) + { + return operations.ListWorkspaceKeysAsync(workspaceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// List the authorization keys associated with this workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the machine learning workspace. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The cancellation token. + /// + public static async Task ListWorkspaceKeysAsync(this IWorkspacesOperations operations, string workspaceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWorkspaceKeysWithHttpMessagesAsync(workspaceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + public static IPage ListByResourceGroup(this IWorkspacesOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the machine learning workspace + /// belongs. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IWorkspacesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IWorkspacesOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IWorkspacesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IWorkspacesOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// 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 IWorkspacesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IWorkspacesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the available machine learning workspaces under the specified + /// subscription. + /// + /// + /// 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 IWorkspacesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} From fcceb0bb9db20401ef33ec14f420fb0d1d65ed4b Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2019 03:23:40 +0000 Subject: [PATCH 18/24] Generated from f1ef9612fd56160b7976caeae1830276cd848761 (#99) fix bad 'unknown' discriminator value in the rest of our datamigration models --- .../src/Generated/Models/CommandProperties.cs | 1 - .../src/Generated/Models/ProjectTaskProperties.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CommandProperties.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CommandProperties.cs index 54ae9281bea1..90355f383357 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CommandProperties.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CommandProperties.cs @@ -19,7 +19,6 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// Base class for all types of DMS command properties. If command is not /// supported by current client, this object is returned. /// - [Newtonsoft.Json.JsonObject("Unknown")] public partial class CommandProperties { /// diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ProjectTaskProperties.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ProjectTaskProperties.cs index f8378be9a3ea..ba0a714d4aa5 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ProjectTaskProperties.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ProjectTaskProperties.cs @@ -19,7 +19,6 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// Base class for all types of DMS task properties. If task is not /// supported by current client, this object is returned. /// - [Newtonsoft.Json.JsonObject("Unknown")] public partial class ProjectTaskProperties { /// From 1e5f868a562c4c46e8add2ceea1bf125f1deb272 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2019 03:39:46 +0000 Subject: [PATCH 19/24] Generated from 2bb00d2fea7f4803a2e768e29d0d46a54244cbf2 (#100) fix: MD010/no-hard-tabs Remove hard tabs --- .../src/Generated/Models/VirtualMachine.cs | 32 +++++++++++++++++-- .../Generated/Models/VirtualMachineUpdate.cs | 32 +++++++++++++++++-- .../SdkInfo_ComputeManagementClient.cs | 11 ------- 3 files changed, 60 insertions(+), 15 deletions(-) diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs index e4c03c9a52a5..65586a9afa72 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs @@ -71,7 +71,18 @@ public VirtualMachine() /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) /// <br><br> Currently, a VM can only be added to /// availability set at creation time. An existing VM cannot be added - /// to an availability set. + /// to an availability set. <br><br>This property cannot + /// exist along with a non-null properties.virtualMachineScaleSet + /// reference. + /// Specifies information about + /// the virtual machine scale set that the virtual machine should be + /// assigned to. Virtual machines specified in the same virtual machine + /// scale set are allocated to different nodes to maximize + /// availability. Currently, a VM can only be added to virtual machine + /// scale set at creation time. An existing VM cannot be added to a + /// virtual machine scale set. <br><br>This property cannot + /// exist along with a non-null properties.availabilitySet reference. + /// <br><br>Minimum api‐version: 2019‐03‐01 /// Specifies information about /// the proximity placement group that the virtual machine should be /// assigned to. <br><br>Minimum api-version: @@ -102,7 +113,7 @@ public VirtualMachine() /// The identity of the virtual machine, if /// configured. /// The virtual machine zones. - public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), SubResource host = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), IList resources = default(IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList)) + public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), SubResource host = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), IList resources = default(IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList)) : base(location, id, name, type, tags) { Plan = plan; @@ -113,6 +124,7 @@ public VirtualMachine() NetworkProfile = networkProfile; DiagnosticsProfile = diagnosticsProfile; AvailabilitySet = availabilitySet; + VirtualMachineScaleSet = virtualMachineScaleSet; ProximityPlacementGroup = proximityPlacementGroup; Host = host; ProvisioningState = provisioningState; @@ -199,10 +211,26 @@ public VirtualMachine() /// &lt;br&gt;&lt;br&gt; Currently, a VM can only be /// added to availability set at creation time. An existing VM cannot /// be added to an availability set. + /// &lt;br&gt;&lt;br&gt;This property cannot exist + /// along with a non-null properties.virtualMachineScaleSet reference. /// [JsonProperty(PropertyName = "properties.availabilitySet")] public SubResource AvailabilitySet { get; set; } + /// + /// Gets or sets specifies information about the virtual machine scale + /// set that the virtual machine should be assigned to. Virtual + /// machines specified in the same virtual machine scale set are + /// allocated to different nodes to maximize availability. Currently, a + /// VM can only be added to virtual machine scale set at creation time. + /// An existing VM cannot be added to a virtual machine scale set. + /// &lt;br&gt;&lt;br&gt;This property cannot exist + /// along with a non-null properties.availabilitySet reference. + /// &lt;br&gt;&lt;br&gt;Minimum api‐version: 2019‐03‐01 + /// + [JsonProperty(PropertyName = "properties.virtualMachineScaleSet")] + public SubResource VirtualMachineScaleSet { get; set; } + /// /// Gets or sets specifies information about the proximity placement /// group that the virtual machine should be assigned to. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs index 329014b3d5b3..61edc6c3856e 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs @@ -67,7 +67,18 @@ public VirtualMachineUpdate() /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) /// <br><br> Currently, a VM can only be added to /// availability set at creation time. An existing VM cannot be added - /// to an availability set. + /// to an availability set. <br><br>This property cannot + /// exist along with a non-null properties.virtualMachineScaleSet + /// reference. + /// Specifies information about + /// the virtual machine scale set that the virtual machine should be + /// assigned to. Virtual machines specified in the same virtual machine + /// scale set are allocated to different nodes to maximize + /// availability. Currently, a VM can only be added to virtual machine + /// scale set at creation time. An existing VM cannot be added to a + /// virtual machine scale set. <br><br>This property cannot + /// exist along with a non-null properties.availabilitySet reference. + /// <br><br>Minimum api‐version: 2019‐03‐01 /// Specifies information about /// the proximity placement group that the virtual machine should be /// assigned to. <br><br>Minimum api-version: @@ -96,7 +107,7 @@ public VirtualMachineUpdate() /// The identity of the virtual machine, if /// configured. /// The virtual machine zones. - public VirtualMachineUpdate(IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), SubResource host = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList)) + public VirtualMachineUpdate(IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), SubResource host = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList)) : base(tags) { Plan = plan; @@ -107,6 +118,7 @@ public VirtualMachineUpdate() NetworkProfile = networkProfile; DiagnosticsProfile = diagnosticsProfile; AvailabilitySet = availabilitySet; + VirtualMachineScaleSet = virtualMachineScaleSet; ProximityPlacementGroup = proximityPlacementGroup; Host = host; ProvisioningState = provisioningState; @@ -192,10 +204,26 @@ public VirtualMachineUpdate() /// &lt;br&gt;&lt;br&gt; Currently, a VM can only be /// added to availability set at creation time. An existing VM cannot /// be added to an availability set. + /// &lt;br&gt;&lt;br&gt;This property cannot exist + /// along with a non-null properties.virtualMachineScaleSet reference. /// [JsonProperty(PropertyName = "properties.availabilitySet")] public SubResource AvailabilitySet { get; set; } + /// + /// Gets or sets specifies information about the virtual machine scale + /// set that the virtual machine should be assigned to. Virtual + /// machines specified in the same virtual machine scale set are + /// allocated to different nodes to maximize availability. Currently, a + /// VM can only be added to virtual machine scale set at creation time. + /// An existing VM cannot be added to a virtual machine scale set. + /// &lt;br&gt;&lt;br&gt;This property cannot exist + /// along with a non-null properties.availabilitySet reference. + /// &lt;br&gt;&lt;br&gt;Minimum api‐version: 2019‐03‐01 + /// + [JsonProperty(PropertyName = "properties.virtualMachineScaleSet")] + public SubResource VirtualMachineScaleSet { get; set; } + /// /// Gets or sets specifies information about the proximity placement /// group that the virtual machine should be assigned to. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs index b417fa233ea5..cc2f60fa637f 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs @@ -49,16 +49,5 @@ public static IEnumerable> ApiInfo_ComputeManageme }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=E:\\hylee-sdk\\august\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "397e41997764b35729dd4f39ec80a0f98c4456eb"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - From 37221f861b024c65f83ad08a1ae767926c366e8e Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2019 00:35:53 +0000 Subject: [PATCH 20/24] Generated from 4c59155bdd01f1d99efcccf30e78f2061ea9f447 (#104) Fixed Integration Runtime semantic validation error. --- .../src/Generated/Models/AvroSink.cs | 7 ++----- .../src/Generated/Models/AzureBlobFSSink.cs | 7 ++----- .../Generated/Models/AzureDataExplorerSink.cs | 7 ++----- .../Models/AzureDataLakeStoreSink.cs | 7 ++----- .../src/Generated/Models/AzureMySqlSink.cs | 7 ++----- .../Generated/Models/AzurePostgreSqlSink.cs | 7 ++----- .../src/Generated/Models/AzureQueueSink.cs | 7 ++----- .../Generated/Models/AzureSearchIndexSink.cs | 7 ++----- .../src/Generated/Models/AzureSqlSink.cs | 19 ++++++++++++++----- .../src/Generated/Models/AzureTableSink.cs | 7 ++----- .../src/Generated/Models/BinarySink.cs | 7 ++----- .../src/Generated/Models/BlobSink.cs | 7 ++----- .../Models/CommonDataServiceForAppsSink.cs | 7 ++----- .../src/Generated/Models/CopySink.cs | 14 +------------- .../Models/CosmosDbMongoDbApiSink.cs | 7 ++----- .../src/Generated/Models/DelimitedTextSink.cs | 7 ++----- .../Models/DocumentDbCollectionSink.cs | 7 ++----- .../src/Generated/Models/DynamicsCrmSink.cs | 7 ++----- .../src/Generated/Models/DynamicsSink.cs | 7 ++----- .../src/Generated/Models/FileSystemSink.cs | 7 ++----- .../src/Generated/Models/InformixSink.cs | 7 ++----- .../src/Generated/Models/JsonSink.cs | 7 ++----- .../Generated/Models/MicrosoftAccessSink.cs | 7 ++----- .../src/Generated/Models/OdbcSink.cs | 7 ++----- .../src/Generated/Models/OracleSink.cs | 7 ++----- .../src/Generated/Models/ParquetSink.cs | 7 ++----- .../Models/SalesforceServiceCloudSink.cs | 7 ++----- .../src/Generated/Models/SalesforceSink.cs | 7 ++----- .../Models/SapCloudForCustomerSink.cs | 7 ++----- .../src/Generated/Models/SqlDWSink.cs | 19 ++++++++++++++----- .../src/Generated/Models/SqlMISink.cs | 19 ++++++++++++++----- .../src/Generated/Models/SqlServerSink.cs | 19 ++++++++++++++----- .../src/Generated/Models/SqlSink.cs | 19 ++++++++++++++----- 33 files changed, 125 insertions(+), 173 deletions(-) diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs index 9274f1e6ce64..674850039188 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs @@ -46,13 +46,10 @@ public AvroSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Avro store settings. /// Avro format settings. - public AvroSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), AvroWriteSettings formatSettings = default(AvroWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AvroSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), AvroWriteSettings formatSettings = default(AvroWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { StoreSettings = storeSettings; FormatSettings = formatSettings; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs index b37f7384f30b..587c3c7c0b67 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs @@ -46,13 +46,10 @@ public AzureBlobFSSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. - public AzureBlobFSSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzureBlobFSSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { CopyBehavior = copyBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs index 9eaf14918f16..c0cd48667b9d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs @@ -46,9 +46,6 @@ public AzureDataExplorerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// A name of a pre-created csv /// mapping that was defined on the target Kusto table. Type: /// string. @@ -56,8 +53,8 @@ public AzureDataExplorerSink() /// description provided in a json format. Type: string. /// If set to true, any aggregation will /// be skipped. Default is false. Type: boolean. - public AzureDataExplorerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ingestionMappingName = default(object), object ingestionMappingAsJson = default(object), object flushImmediately = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzureDataExplorerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ingestionMappingName = default(object), object ingestionMappingAsJson = default(object), object flushImmediately = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { IngestionMappingName = ingestionMappingName; IngestionMappingAsJson = ingestionMappingAsJson; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs index cfea28c077cc..0760f01ffd36 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs @@ -46,15 +46,12 @@ public AzureDataLakeStoreSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. /// Single File /// Parallel. - public AzureDataLakeStoreSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object), object enableAdlsSingleFileParallel = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzureDataLakeStoreSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object enableAdlsSingleFileParallel = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { CopyBehavior = copyBehavior; EnableAdlsSingleFileParallel = enableAdlsSingleFileParallel; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs index 9b42ad79a764..833052d405ae 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs @@ -46,13 +46,10 @@ public AzureMySqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public AzureMySqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzureMySqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs index f1d8cbfe3e79..b7948c955b27 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs @@ -46,13 +46,10 @@ public AzurePostgreSqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public AzurePostgreSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzurePostgreSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs index 8813cafc55c1..a3412d7745c0 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs @@ -45,11 +45,8 @@ public AzureQueueSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). - public AzureQueueSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzureQueueSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { CustomInit(); } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs index 2845ca9f5a76..cc1483ddc136 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs @@ -46,14 +46,11 @@ public AzureSearchIndexSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Specify the write behavior when /// upserting documents into Azure Search Index. Possible values /// include: 'Merge', 'Upload' - public AzureSearchIndexSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzureSearchIndexSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs index 69746f19d8e7..e5132caf465f 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs @@ -46,9 +46,6 @@ public AzureSqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -61,14 +58,18 @@ public AzureSqlSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public AzureSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public AzureSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + TableOption = tableOption; CustomInit(); } @@ -111,5 +112,13 @@ public AzureSqlSink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } + /// + /// Gets or sets the option to handle sink table, such as autoCreate. + /// For now only 'autoCreate' value is supported. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "tableOption")] + public object TableOption { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs index 63f7cb275dda..3700867f3ad8 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs @@ -46,9 +46,6 @@ public AzureTableSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Azure Table /// default partition key value. Type: string (or Expression with /// resultType string). @@ -58,8 +55,8 @@ public AzureTableSink() /// string (or Expression with resultType string). /// Azure Table insert type. Type: /// string (or Expression with resultType string). - public AzureTableSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object azureTableDefaultPartitionKeyValue = default(object), object azureTablePartitionKeyName = default(object), object azureTableRowKeyName = default(object), object azureTableInsertType = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public AzureTableSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object azureTableDefaultPartitionKeyValue = default(object), object azureTablePartitionKeyName = default(object), object azureTableRowKeyName = default(object), object azureTableInsertType = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { AzureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue; AzureTablePartitionKeyName = azureTablePartitionKeyName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs index fa827814e6bb..ecfd2b070915 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs @@ -46,12 +46,9 @@ public BinarySink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Binary store settings. - public BinarySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public BinarySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { StoreSettings = storeSettings; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs index 426e9f94f571..ff85b921f5a5 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs @@ -46,9 +46,6 @@ public BlobSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Blob writer overwrite files. /// Type: boolean (or Expression with resultType boolean). /// Blob writer date time @@ -58,8 +55,8 @@ public BlobSink() /// boolean (or Expression with resultType boolean). /// The type of copy behavior for copy /// sink. - public BlobSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object blobWriterOverwriteFiles = default(object), object blobWriterDateTimeFormat = default(object), object blobWriterAddHeader = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public BlobSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object blobWriterOverwriteFiles = default(object), object blobWriterDateTimeFormat = default(object), object blobWriterAddHeader = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { BlobWriterOverwriteFiles = blobWriterOverwriteFiles; BlobWriterDateTimeFormat = blobWriterDateTimeFormat; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs index 81baff60460c..3d2ecc7c8606 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs @@ -48,15 +48,12 @@ public CommonDataServiceForAppsSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The flag indicating whether to /// ignore null values from input dataset (except key fields) during /// write operation. Default is false. Type: boolean (or Expression /// with resultType boolean). - public CommonDataServiceForAppsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public CommonDataServiceForAppsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs index e0419e79400a..ac2f9e17465e 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs @@ -46,10 +46,7 @@ public CopySink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). - public CopySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object)) + public CopySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object)) { AdditionalProperties = additionalProperties; WriteBatchSize = writeBatchSize; @@ -57,7 +54,6 @@ public CopySink() SinkRetryCount = sinkRetryCount; SinkRetryWait = sinkRetryWait; MaxConcurrentConnections = maxConcurrentConnections; - TableOption = tableOption; CustomInit(); } @@ -110,13 +106,5 @@ public CopySink() [JsonProperty(PropertyName = "maxConcurrentConnections")] public object MaxConcurrentConnections { get; set; } - /// - /// Gets or sets the option to handle sink table, such as autoCreate. - /// For now only 'autoCreate' value is supported. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "tableOption")] - public object TableOption { get; set; } - } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs index 8f120b788ec2..396dec19b3c1 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs @@ -46,16 +46,13 @@ public CosmosDbMongoDbApiSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Specifies whether the document with /// same key to be overwritten (upsert) rather than throw exception /// (insert). The default value is "insert". Type: string (or /// Expression with resultType string). Type: string (or Expression /// with resultType string). - public CosmosDbMongoDbApiSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object writeBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public CosmosDbMongoDbApiSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object writeBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs index 77247684a5f5..48aa6c4a5e6d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs @@ -46,13 +46,10 @@ public DelimitedTextSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// DelimitedText store settings. /// DelimitedText format settings. - public DelimitedTextSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), DelimitedTextWriteSettings formatSettings = default(DelimitedTextWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public DelimitedTextSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), DelimitedTextWriteSettings formatSettings = default(DelimitedTextWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { StoreSettings = storeSettings; FormatSettings = formatSettings; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs index 05618fdb3770..9ceefb6b2244 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs @@ -46,16 +46,13 @@ public DocumentDbCollectionSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Nested properties separator. Default /// is . (dot). Type: string (or Expression with resultType /// string). /// Describes how to write data to Azure /// Cosmos DB. Allowed values: insert and upsert. - public DocumentDbCollectionSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object nestingSeparator = default(object), object writeBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public DocumentDbCollectionSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object nestingSeparator = default(object), object writeBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { NestingSeparator = nestingSeparator; WriteBehavior = writeBehavior; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs index 400055fb26ef..25a45867354d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs @@ -46,15 +46,12 @@ public DynamicsCrmSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The flag indicating whether to /// ignore null values from input dataset (except key fields) during /// write operation. Default is false. Type: boolean (or Expression /// with resultType boolean). - public DynamicsCrmSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public DynamicsCrmSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs index 1d15c9e2506b..34852c284b6a 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs @@ -46,15 +46,12 @@ public DynamicsSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The flag indicating whether ignore /// null values from input dataset (except key fields) during write /// operation. Default is false. Type: boolean (or Expression with /// resultType boolean). - public DynamicsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public DynamicsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs index 10e949b9a56d..a5020f9d87af 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs @@ -46,13 +46,10 @@ public FileSystemSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. - public FileSystemSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public FileSystemSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { CopyBehavior = copyBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs index 253b5f23987e..0ceb858146c6 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs @@ -46,13 +46,10 @@ public InformixSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public InformixSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public InformixSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs index ac94b3be6d3e..9017df04eaad 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs @@ -46,13 +46,10 @@ public JsonSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Json store settings. /// Json format settings. - public JsonSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), JsonWriteSettings formatSettings = default(JsonWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public JsonSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), JsonWriteSettings formatSettings = default(JsonWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { StoreSettings = storeSettings; FormatSettings = formatSettings; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs index 29ecbea568fd..899d6f038b43 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs @@ -46,13 +46,10 @@ public MicrosoftAccessSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public MicrosoftAccessSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public MicrosoftAccessSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs index 2d0ad3bdc807..7151280b5eca 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs @@ -46,13 +46,10 @@ public OdbcSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public OdbcSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public OdbcSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs index 3aed6e3d813d..7859a5c6260b 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs @@ -46,13 +46,10 @@ public OracleSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// SQL pre-copy script. Type: string (or /// Expression with resultType string). - public OracleSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public OracleSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs index 6d975bbfd3f4..73efe2afcdf0 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs @@ -46,12 +46,9 @@ public ParquetSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// Parquet store settings. - public ParquetSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public ParquetSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { StoreSettings = storeSettings; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs index bd3ff8173a12..a260bddc659c 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs @@ -46,9 +46,6 @@ public SalesforceServiceCloudSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is Insert. Possible values include: 'Insert', /// 'Upsert' @@ -64,8 +61,8 @@ public SalesforceServiceCloudSink() /// destination object to NULL when doing upsert/update operation and /// insert NULL value when doing insert operation. Type: boolean (or /// Expression with resultType boolean). - public SalesforceServiceCloudSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public SalesforceServiceCloudSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { WriteBehavior = writeBehavior; ExternalIdFieldName = externalIdFieldName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs index 69304bd4f61d..cba5c6904541 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs @@ -46,9 +46,6 @@ public SalesforceSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is Insert. Possible values include: 'Insert', /// 'Upsert' @@ -64,8 +61,8 @@ public SalesforceSink() /// destination object to NULL when doing upsert/update operation and /// insert NULL value when doing insert operation. Type: boolean (or /// Expression with resultType boolean). - public SalesforceSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public SalesforceSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { WriteBehavior = writeBehavior; ExternalIdFieldName = externalIdFieldName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs index e5dc41803f2f..9157f1e4386f 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs @@ -46,14 +46,11 @@ public SapCloudForCustomerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is 'Insert'. Possible values include: 'Insert', /// 'Update' - public SapCloudForCustomerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + public SapCloudForCustomerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs index 805f98203a7c..665789d11e24 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs @@ -46,9 +46,6 @@ public SqlDWSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// SQL pre-copy script. Type: string (or /// Expression with resultType string). /// Indicates to use PolyBase to copy data @@ -56,12 +53,16 @@ public SqlDWSink() /// Expression with resultType boolean). /// Specifies PolyBase-related settings /// when allowPolyBase is true. - public SqlDWSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object), object allowPolyBase = default(object), PolybaseSettings polyBaseSettings = default(PolybaseSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public SqlDWSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object), object allowPolyBase = default(object), PolybaseSettings polyBaseSettings = default(PolybaseSettings), object tableOption = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { PreCopyScript = preCopyScript; AllowPolyBase = allowPolyBase; PolyBaseSettings = polyBaseSettings; + TableOption = tableOption; CustomInit(); } @@ -92,5 +93,13 @@ public SqlDWSink() [JsonProperty(PropertyName = "polyBaseSettings")] public PolybaseSettings PolyBaseSettings { get; set; } + /// + /// Gets or sets the option to handle sink table, such as autoCreate. + /// For now only 'autoCreate' value is supported. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "tableOption")] + public object TableOption { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs index d11009fac792..d64ed35f2ae2 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs @@ -46,9 +46,6 @@ public SqlMISink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -61,14 +58,18 @@ public SqlMISink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public SqlMISink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public SqlMISink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + TableOption = tableOption; CustomInit(); } @@ -111,5 +112,13 @@ public SqlMISink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } + /// + /// Gets or sets the option to handle sink table, such as autoCreate. + /// For now only 'autoCreate' value is supported. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "tableOption")] + public object TableOption { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs index a3f859004857..ab3da5038a7d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs @@ -46,9 +46,6 @@ public SqlServerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -61,14 +58,18 @@ public SqlServerSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public SqlServerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public SqlServerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + TableOption = tableOption; CustomInit(); } @@ -111,5 +112,13 @@ public SqlServerSink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } + /// + /// Gets or sets the option to handle sink table, such as autoCreate. + /// For now only 'autoCreate' value is supported. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "tableOption")] + public object TableOption { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs index 3d3e70cc329d..a388a568e45f 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs @@ -46,9 +46,6 @@ public SqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -61,14 +58,18 @@ public SqlSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - public SqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public SqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + TableOption = tableOption; CustomInit(); } @@ -111,5 +112,13 @@ public SqlSink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } + /// + /// Gets or sets the option to handle sink table, such as autoCreate. + /// For now only 'autoCreate' value is supported. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "tableOption")] + public object TableOption { get; set; } + } } From c2b71f932fc617a4355289485937fae63734e3ac Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2019 06:56:23 +0000 Subject: [PATCH 21/24] Generated from d18f064d80b087fda76d942236013163f39de688 (#106) Removing trailing commas in examples --- .../Models/AzureFileshareProtectedItem.cs | 14 ++++- .../AzureIaaSClassicComputeVMProtectedItem.cs | 14 ++++- .../Models/AzureIaaSComputeVMProtectedItem.cs | 14 ++++- .../Models/AzureIaaSVMProtectedItem.cs | 14 ++++- .../Generated/Models/AzureSqlProtectedItem.cs | 14 ++++- .../Models/AzureVmWorkloadProtectedItem.cs | 14 ++++- ...reVmWorkloadSAPAseDatabaseProtectedItem.cs | 14 ++++- ...eVmWorkloadSAPHanaDatabaseProtectedItem.cs | 14 ++++- ...AzureVmWorkloadSQLDatabaseProtectedItem.cs | 14 ++++- .../src/Generated/Models/DPMProtectedItem.cs | 24 ++++----- .../Generated/Models/GenericProtectedItem.cs | 14 ++++- .../Models/MabFileFolderProtectedItem.cs | 24 ++++----- .../src/Generated/Models/ProtectedItem.cs | 51 ++++++++++++++++++- .../SdkInfo_RecoveryServicesBackupClient.cs | 11 ---- 14 files changed, 194 insertions(+), 56 deletions(-) diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureFileshareProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureFileshareProtectedItem.cs index 94519b0eb2d3..c2c8d85c7c26 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureFileshareProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureFileshareProtectedItem.cs @@ -53,6 +53,16 @@ public AzureFileshareProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the fileshare /// represented by this backup item. /// Backup status of this backup @@ -69,8 +79,8 @@ public AzureFileshareProtectedItem() /// on this backup item. /// Additional information with this backup /// item. - public AzureFileshareProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), AzureFileshareProtectedItemExtendedInfo extendedInfo = default(AzureFileshareProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) + public AzureFileshareProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), AzureFileshareProtectedItemExtendedInfo extendedInfo = default(AzureFileshareProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate) { FriendlyName = friendlyName; ProtectionStatus = protectionStatus; diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSClassicComputeVMProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSClassicComputeVMProtectedItem.cs index 1ea077f3a29a..bf2f99a60239 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSClassicComputeVMProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSClassicComputeVMProtectedItem.cs @@ -56,6 +56,16 @@ public AzureIaaSClassicComputeVMProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the VM represented by /// this backup item. /// Fully qualified ARM ID of the @@ -78,8 +88,8 @@ public AzureIaaSClassicComputeVMProtectedItem() /// item. /// Additional information for this backup /// item. - public AzureIaaSClassicComputeVMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string virtualMachineId = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), IList healthDetails = default(IList), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), string protectedItemDataId = default(string), AzureIaaSVMProtectedItemExtendedInfo extendedInfo = default(AzureIaaSVMProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, lastBackupStatus, lastBackupTime, protectedItemDataId, extendedInfo) + public AzureIaaSClassicComputeVMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string virtualMachineId = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), IList healthDetails = default(IList), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), string protectedItemDataId = default(string), AzureIaaSVMProtectedItemExtendedInfo extendedInfo = default(AzureIaaSVMProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, lastBackupStatus, lastBackupTime, protectedItemDataId, extendedInfo) { CustomInit(); } diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSComputeVMProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSComputeVMProtectedItem.cs index c4480f4bcfb8..d80bdc2370cc 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSComputeVMProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSComputeVMProtectedItem.cs @@ -56,6 +56,16 @@ public AzureIaaSComputeVMProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the VM represented by /// this backup item. /// Fully qualified ARM ID of the @@ -78,8 +88,8 @@ public AzureIaaSComputeVMProtectedItem() /// item. /// Additional information for this backup /// item. - public AzureIaaSComputeVMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string virtualMachineId = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), IList healthDetails = default(IList), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), string protectedItemDataId = default(string), AzureIaaSVMProtectedItemExtendedInfo extendedInfo = default(AzureIaaSVMProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, lastBackupStatus, lastBackupTime, protectedItemDataId, extendedInfo) + public AzureIaaSComputeVMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string virtualMachineId = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), IList healthDetails = default(IList), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), string protectedItemDataId = default(string), AzureIaaSVMProtectedItemExtendedInfo extendedInfo = default(AzureIaaSVMProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, lastBackupStatus, lastBackupTime, protectedItemDataId, extendedInfo) { CustomInit(); } diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSVMProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSVMProtectedItem.cs index 95879a770199..3337a47f2e91 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSVMProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureIaaSVMProtectedItem.cs @@ -52,6 +52,16 @@ public AzureIaaSVMProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the VM represented by /// this backup item. /// Fully qualified ARM ID of the @@ -74,8 +84,8 @@ public AzureIaaSVMProtectedItem() /// item. /// Additional information for this backup /// item. - public AzureIaaSVMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string virtualMachineId = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), IList healthDetails = default(IList), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), string protectedItemDataId = default(string), AzureIaaSVMProtectedItemExtendedInfo extendedInfo = default(AzureIaaSVMProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) + public AzureIaaSVMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string virtualMachineId = default(string), string protectionStatus = default(string), string protectionState = default(string), string healthStatus = default(string), IList healthDetails = default(IList), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), string protectedItemDataId = default(string), AzureIaaSVMProtectedItemExtendedInfo extendedInfo = default(AzureIaaSVMProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate) { FriendlyName = friendlyName; VirtualMachineId = virtualMachineId; diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureSqlProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureSqlProtectedItem.cs index 669052315ed7..85ec7328e3bd 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureSqlProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureSqlProtectedItem.cs @@ -51,6 +51,16 @@ public AzureSqlProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Internal ID of a backup item. /// Used by Azure SQL Backup engine to contact Recovery /// Services. @@ -59,8 +69,8 @@ public AzureSqlProtectedItem() /// 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused' /// Additional information for this backup /// item. - public AzureSqlProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string protectedItemDataId = default(string), string protectionState = default(string), AzureSqlProtectedItemExtendedInfo extendedInfo = default(AzureSqlProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) + public AzureSqlProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string protectedItemDataId = default(string), string protectionState = default(string), AzureSqlProtectedItemExtendedInfo extendedInfo = default(AzureSqlProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate) { ProtectedItemDataId = protectedItemDataId; ProtectionState = protectionState; diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs index 478c65683d25..e8052c6c4d48 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs @@ -52,6 +52,16 @@ public AzureVmWorkloadProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the DB represented by /// this backup item. /// Host/Cluster Name for instance or @@ -80,8 +90,8 @@ public AzureVmWorkloadProtectedItem() /// 'IRPending' /// Additional information for this backup /// item. - public AzureVmWorkloadProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) + public AzureVmWorkloadProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate) { FriendlyName = friendlyName; ServerName = serverName; diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs index 576c85be0e43..9b9daea48047 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs @@ -54,6 +54,16 @@ public AzureVmWorkloadSAPAseDatabaseProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the DB represented by /// this backup item. /// Host/Cluster Name for instance or @@ -82,8 +92,8 @@ public AzureVmWorkloadSAPAseDatabaseProtectedItem() /// 'IRPending' /// Additional information for this backup /// item. - public AzureVmWorkloadSAPAseDatabaseProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupTime, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo) + public AzureVmWorkloadSAPAseDatabaseProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupTime, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo) { CustomInit(); } diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs index bb0f054516c5..2a0487a257ab 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs @@ -54,6 +54,16 @@ public AzureVmWorkloadSAPHanaDatabaseProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the DB represented by /// this backup item. /// Host/Cluster Name for instance or @@ -82,8 +92,8 @@ public AzureVmWorkloadSAPHanaDatabaseProtectedItem() /// 'IRPending' /// Additional information for this backup /// item. - public AzureVmWorkloadSAPHanaDatabaseProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupTime, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo) + public AzureVmWorkloadSAPHanaDatabaseProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupTime, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo) { CustomInit(); } diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs index 4ceed98a1b6a..bae47ebdf55c 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs @@ -53,6 +53,16 @@ public AzureVmWorkloadSQLDatabaseProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the DB represented by /// this backup item. /// Host/Cluster Name for instance or @@ -81,8 +91,8 @@ public AzureVmWorkloadSQLDatabaseProtectedItem() /// 'IRPending' /// Additional information for this backup /// item. - public AzureVmWorkloadSQLDatabaseProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupTime, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo) + public AzureVmWorkloadSQLDatabaseProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string serverName = default(string), string parentName = default(string), string parentType = default(string), string protectionStatus = default(string), string protectionState = default(string), string lastBackupStatus = default(string), System.DateTime? lastBackupTime = default(System.DateTime?), ErrorDetail lastBackupErrorDetail = default(ErrorDetail), string protectedItemDataSourceId = default(string), string protectedItemHealthStatus = default(string), AzureVmWorkloadProtectedItemExtendedInfo extendedInfo = default(AzureVmWorkloadProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupTime, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo) { CustomInit(); } diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/DPMProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/DPMProtectedItem.cs index a69008e1668c..f518bb5c876f 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/DPMProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/DPMProtectedItem.cs @@ -50,6 +50,16 @@ public DPMProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the managed /// item /// Backup Management server protecting @@ -58,17 +68,14 @@ public DPMProtectedItem() /// engine. Possible values include: 'Invalid', 'IRPending', /// 'Protected', 'ProtectionError', 'ProtectionStopped', /// 'ProtectionPaused' - /// To check if backup item - /// is scheduled for deferred delete /// Extended info of the backup /// item. - public DPMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string backupEngineName = default(string), string protectionState = default(string), bool? isScheduledForDeferredDelete = default(bool?), DPMProtectedItemExtendedInfo extendedInfo = default(DPMProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) + public DPMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string backupEngineName = default(string), string protectionState = default(string), DPMProtectedItemExtendedInfo extendedInfo = default(DPMProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate) { FriendlyName = friendlyName; BackupEngineName = backupEngineName; ProtectionState = protectionState; - IsScheduledForDeferredDelete = isScheduledForDeferredDelete; ExtendedInfo = extendedInfo; CustomInit(); } @@ -98,13 +105,6 @@ public DPMProtectedItem() [JsonProperty(PropertyName = "protectionState")] public string ProtectionState { get; set; } - /// - /// Gets or sets to check if backup item is scheduled for deferred - /// delete - /// - [JsonProperty(PropertyName = "isScheduledForDeferredDelete")] - public bool? IsScheduledForDeferredDelete { get; set; } - /// /// Gets or sets extended info of the backup item. /// diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/GenericProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/GenericProtectedItem.cs index 78fa257eac23..9cdb3cd0e8ac 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/GenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/GenericProtectedItem.cs @@ -52,6 +52,16 @@ public GenericProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of the container. /// Indicates consistency of policy object /// and policy applied to this backup item. @@ -63,8 +73,8 @@ public GenericProtectedItem() /// Loosely coupled (type, value) /// associations (example - parent of a protected item) /// Name of this backup item's fabric. - public GenericProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string policyState = default(string), string protectionState = default(string), long? protectedItemId = default(long?), IDictionary sourceAssociations = default(IDictionary), string fabricName = default(string)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) + public GenericProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string policyState = default(string), string protectionState = default(string), long? protectedItemId = default(long?), IDictionary sourceAssociations = default(IDictionary), string fabricName = default(string)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate) { FriendlyName = friendlyName; PolicyState = policyState; diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/MabFileFolderProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/MabFileFolderProtectedItem.cs index 4a4474a85585..967c1d31130e 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/MabFileFolderProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/MabFileFolderProtectedItem.cs @@ -50,6 +50,16 @@ public MabFileFolderProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state /// Friendly name of this backup /// item. /// Name of the computer associated with @@ -58,20 +68,17 @@ public MabFileFolderProtectedItem() /// operation. /// Protected, ProtectionStopped, /// IRPending or ProtectionError - /// Specifies if the item is - /// scheduled for deferred deletion. /// Sync time for deferred /// deletion. /// Additional information with this backup /// item. - public MabFileFolderProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string computerName = default(string), string lastBackupStatus = default(string), string protectionState = default(string), bool? isScheduledForDeferredDelete = default(bool?), long? deferredDeleteSyncTimeInUTC = default(long?), MabFileFolderProtectedItemExtendedInfo extendedInfo = default(MabFileFolderProtectedItemExtendedInfo)) - : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) + public MabFileFolderProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), string friendlyName = default(string), string computerName = default(string), string lastBackupStatus = default(string), string protectionState = default(string), long? deferredDeleteSyncTimeInUTC = default(long?), MabFileFolderProtectedItemExtendedInfo extendedInfo = default(MabFileFolderProtectedItemExtendedInfo)) + : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate) { FriendlyName = friendlyName; ComputerName = computerName; LastBackupStatus = lastBackupStatus; ProtectionState = protectionState; - IsScheduledForDeferredDelete = isScheduledForDeferredDelete; DeferredDeleteSyncTimeInUTC = deferredDeleteSyncTimeInUTC; ExtendedInfo = extendedInfo; CustomInit(); @@ -107,13 +114,6 @@ public MabFileFolderProtectedItem() [JsonProperty(PropertyName = "protectionState")] public string ProtectionState { get; set; } - /// - /// Gets or sets specifies if the item is scheduled for deferred - /// deletion. - /// - [JsonProperty(PropertyName = "isScheduledForDeferredDelete")] - public bool? IsScheduledForDeferredDelete { get; set; } - /// /// Gets or sets sync time for deferred deletion. /// diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/ProtectedItem.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/ProtectedItem.cs index f469e6301a66..6a6a16901e72 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/ProtectedItem.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/Models/ProtectedItem.cs @@ -50,7 +50,17 @@ public ProtectedItem() /// Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover' - public ProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string)) + /// Time for deferred deletion in + /// UTC + /// Flag to identify whether + /// the DS is scheduled for deferred delete + /// Time remaining before the + /// DS marked for deferred delete is permanently deleted + /// Flag to identify + /// whether the deferred deleted DS is to be purged soon + /// Flag to identify that deferred deleted DS + /// is to be moved into Pause state + public ProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime? lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime? deferredDeleteTimeInUTC = default(System.DateTime?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?)) { BackupManagementType = backupManagementType; WorkloadType = workloadType; @@ -60,6 +70,11 @@ public ProtectedItem() LastRecoveryPoint = lastRecoveryPoint; BackupSetName = backupSetName; CreateMode = createMode; + DeferredDeleteTimeInUTC = deferredDeleteTimeInUTC; + IsScheduledForDeferredDelete = isScheduledForDeferredDelete; + DeferredDeleteTimeRemaining = deferredDeleteTimeRemaining; + IsDeferredDeleteScheduleUpcoming = isDeferredDeleteScheduleUpcoming; + IsRehydrate = isRehydrate; CustomInit(); } @@ -127,5 +142,39 @@ public ProtectedItem() [JsonProperty(PropertyName = "createMode")] public string CreateMode { get; set; } + /// + /// Gets or sets time for deferred deletion in UTC + /// + [JsonProperty(PropertyName = "deferredDeleteTimeInUTC")] + public System.DateTime? DeferredDeleteTimeInUTC { get; set; } + + /// + /// Gets or sets flag to identify whether the DS is scheduled for + /// deferred delete + /// + [JsonProperty(PropertyName = "isScheduledForDeferredDelete")] + public bool? IsScheduledForDeferredDelete { get; set; } + + /// + /// Gets or sets time remaining before the DS marked for deferred + /// delete is permanently deleted + /// + [JsonProperty(PropertyName = "deferredDeleteTimeRemaining")] + public string DeferredDeleteTimeRemaining { get; set; } + + /// + /// Gets or sets flag to identify whether the deferred deleted DS is to + /// be purged soon + /// + [JsonProperty(PropertyName = "isDeferredDeleteScheduleUpcoming")] + public bool? IsDeferredDeleteScheduleUpcoming { get; set; } + + /// + /// Gets or sets flag to identify that deferred deleted DS is to be + /// moved into Pause state + /// + [JsonProperty(PropertyName = "isRehydrate")] + public bool? IsRehydrate { get; set; } + } } diff --git a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/SdkInfo_RecoveryServicesBackupClient.cs b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/SdkInfo_RecoveryServicesBackupClient.cs index 78e58c8b24c9..f2773abea140 100644 --- a/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/SdkInfo_RecoveryServicesBackupClient.cs +++ b/sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/SdkInfo_RecoveryServicesBackupClient.cs @@ -60,16 +60,5 @@ public static IEnumerable> ApiInfo_RecoveryService }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/recoveryservicesbackup/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\myclones\\azure-sdk-for-net\\src\\SDKs"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "279463bd1349946a31719cbe799fc394e6003531"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - From 3191b79aff6adfabc1a9a8dceba7762346843fb6 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2019 07:02:07 +0000 Subject: [PATCH 22/24] Generated from 2658bfcd4e5ede36535616ef4e44125701d14366 (#105) remove redundant property --- .../Generated/DataFactoryManagementClient.cs | 2 ++ .../src/Generated/Models/AvroSink.cs | 17 ------------- .../Models/AzureBlobFSWriteSettings.cs | 23 +++++++++--------- .../Models/AzureBlobStorageWriteSettings.cs | 23 +++++++++--------- .../Models/AzureDataLakeStoreWriteSettings.cs | 15 ++---------- .../src/Generated/Models/BinarySink.cs | 13 ---------- .../src/Generated/Models/DelimitedTextSink.cs | 4 ---- .../Models/FileServerWriteSettings.cs | 15 ++---------- .../src/Generated/Models/JsonSink.cs | 17 ------------- .../src/Generated/Models/ParquetSink.cs | 13 ---------- .../Generated/Models/StoreWriteSettings.cs | 24 +------------------ 11 files changed, 31 insertions(+), 135 deletions(-) diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs index 9766686b44ba..e33e68d2d6aa 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs @@ -457,6 +457,8 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("authorizationType")); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs index 674850039188..971fe631c2e1 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs @@ -73,22 +73,5 @@ public AvroSink() [JsonProperty(PropertyName = "formatSettings")] public AvroWriteSettings FormatSettings { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StoreSettings != null) - { - StoreSettings.Validate(); - } - if (FormatSettings != null) - { - FormatSettings.Validate(); - } - } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs index b80df367637a..a4190a133de4 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.DataFactory.Models { + using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -30,7 +31,6 @@ public AzureBlobFSWriteSettings() /// /// Initializes a new instance of the AzureBlobFSWriteSettings class. /// - /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -38,9 +38,13 @@ public AzureBlobFSWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public AzureBlobFSWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) + /// Indicates the block size(MB) when + /// writing data to blob. Type: integer (or Expression with resultType + /// integer). + public AzureBlobFSWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object blockSizeInMB = default(object)) + : base(additionalProperties, maxConcurrentConnections, copyBehavior) { + BlockSizeInMB = blockSizeInMB; CustomInit(); } @@ -50,14 +54,11 @@ public AzureBlobFSWriteSettings() partial void CustomInit(); /// - /// Validate the object. + /// Gets or sets indicates the block size(MB) when writing data to + /// blob. Type: integer (or Expression with resultType integer). /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } + [JsonProperty(PropertyName = "blockSizeInMB")] + public object BlockSizeInMB { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs index b40c03973a83..5abe50e082e2 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.DataFactory.Models { + using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -32,7 +33,6 @@ public AzureBlobStorageWriteSettings() /// Initializes a new instance of the AzureBlobStorageWriteSettings /// class. /// - /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -40,9 +40,13 @@ public AzureBlobStorageWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public AzureBlobStorageWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) + /// Indicates the block size(MB) when + /// writing data to blob. Type: integer (or Expression with resultType + /// integer). + public AzureBlobStorageWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object blockSizeInMB = default(object)) + : base(additionalProperties, maxConcurrentConnections, copyBehavior) { + BlockSizeInMB = blockSizeInMB; CustomInit(); } @@ -52,14 +56,11 @@ public AzureBlobStorageWriteSettings() partial void CustomInit(); /// - /// Validate the object. + /// Gets or sets indicates the block size(MB) when writing data to + /// blob. Type: integer (or Expression with resultType integer). /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } + [JsonProperty(PropertyName = "blockSizeInMB")] + public object BlockSizeInMB { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs index 5d10b8f5583d..6a3e6a6958a7 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs @@ -32,7 +32,6 @@ public AzureDataLakeStoreWriteSettings() /// Initializes a new instance of the AzureDataLakeStoreWriteSettings /// class. /// - /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -40,8 +39,8 @@ public AzureDataLakeStoreWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public AzureDataLakeStoreWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) + public AzureDataLakeStoreWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(additionalProperties, maxConcurrentConnections, copyBehavior) { CustomInit(); } @@ -51,15 +50,5 @@ public AzureDataLakeStoreWriteSettings() /// partial void CustomInit(); - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs index ecfd2b070915..5fec652f6705 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs @@ -65,18 +65,5 @@ public BinarySink() [JsonProperty(PropertyName = "storeSettings")] public StoreWriteSettings StoreSettings { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StoreSettings != null) - { - StoreSettings.Validate(); - } - } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs index 48aa6c4a5e6d..d6c268d8b94f 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs @@ -81,10 +81,6 @@ public DelimitedTextSink() /// public virtual void Validate() { - if (StoreSettings != null) - { - StoreSettings.Validate(); - } if (FormatSettings != null) { FormatSettings.Validate(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs index c7f5984e798d..b89b89c40ba2 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs @@ -30,7 +30,6 @@ public FileServerWriteSettings() /// /// Initializes a new instance of the FileServerWriteSettings class. /// - /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -38,8 +37,8 @@ public FileServerWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public FileServerWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) + public FileServerWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(additionalProperties, maxConcurrentConnections, copyBehavior) { CustomInit(); } @@ -49,15 +48,5 @@ public FileServerWriteSettings() /// partial void CustomInit(); - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs index 9017df04eaad..703c9718ea8c 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs @@ -73,22 +73,5 @@ public JsonSink() [JsonProperty(PropertyName = "formatSettings")] public JsonWriteSettings FormatSettings { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StoreSettings != null) - { - StoreSettings.Validate(); - } - if (FormatSettings != null) - { - FormatSettings.Validate(); - } - } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs index 73efe2afcdf0..67b95379fe09 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs @@ -65,18 +65,5 @@ public ParquetSink() [JsonProperty(PropertyName = "storeSettings")] public StoreWriteSettings StoreSettings { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StoreSettings != null) - { - StoreSettings.Validate(); - } - } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs index a2865e56f776..0346d5e0d099 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataFactory.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -32,7 +31,6 @@ public StoreWriteSettings() /// /// Initializes a new instance of the StoreWriteSettings class. /// - /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -40,10 +38,9 @@ public StoreWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public StoreWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + public StoreWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) { AdditionalProperties = additionalProperties; - Type = type; MaxConcurrentConnections = maxConcurrentConnections; CopyBehavior = copyBehavior; CustomInit(); @@ -61,12 +58,6 @@ public StoreWriteSettings() [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - /// - /// Gets or sets the write setting type. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - /// /// Gets or sets the maximum concurrent connection count for the source /// data store. Type: integer (or Expression with resultType integer). @@ -80,18 +71,5 @@ public StoreWriteSettings() [JsonProperty(PropertyName = "copyBehavior")] public object CopyBehavior { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } } } From c9622a88064319327377a0d81bf827bcc25c2107 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2019 15:20:49 +0000 Subject: [PATCH 23/24] Generated from 09d9848f00395376b7e1360fe4372d15349bc401 (#46) Address review comments. --- .../src/Generated/AddressOperations.cs | 235 ++++ .../Generated/AddressOperationsExtensions.cs | 57 + .../src/Generated/AgreementsOperations.cs | 4 +- .../AgreementsOperationsExtensions.cs | 8 +- .../Generated/BillingAccountsOperations.cs | 217 +++- .../BillingAccountsOperationsExtensions.cs | 88 +- .../src/Generated/BillingManagementClient.cs | 80 +- .../Generated/BillingPermissionsOperations.cs | 205 +++- .../BillingPermissionsOperationsExtensions.cs | 58 +- .../Generated/BillingProfilesOperations.cs | 248 +++- .../BillingProfilesOperationsExtensions.cs | 108 +- .../Generated/BillingPropertyOperations.cs | 2 +- .../BillingPropertyOperationsExtensions.cs | 4 +- .../BillingRoleAssignmentsOperations.cs | 128 +- ...lingRoleAssignmentsOperationsExtensions.cs | 130 +- .../BillingRoleDefinitionsOperations.cs | 54 +- ...lingRoleDefinitionsOperationsExtensions.cs | 60 +- .../BillingSubscriptionsOperations.cs | 1058 ++++++++++++++--- ...illingSubscriptionsOperationsExtensions.cs | 290 ++++- .../src/Generated/CustomersOperations.cs | 989 +++++++++++++++ .../CustomersOperationsExtensions.cs | 257 ++++ .../src/Generated/IAddressOperations.cs | 48 + .../src/Generated/IAgreementsOperations.cs | 2 +- .../Generated/IBillingAccountsOperations.cs | 58 +- .../src/Generated/IBillingManagementClient.cs | 65 +- .../IBillingPermissionsOperations.cs | 33 +- .../Generated/IBillingProfilesOperations.cs | 64 +- .../Generated/IBillingPropertyOperations.cs | 2 +- .../IBillingRoleAssignmentsOperations.cs | 43 +- .../IBillingRoleDefinitionsOperations.cs | 18 +- .../IBillingSubscriptionsOperations.cs | 153 ++- .../src/Generated/ICustomersOperations.cs | 168 +++ .../Generated/IInvoiceSectionsOperations.cs | 105 +- .../src/Generated/IInvoicesOperations.cs | 4 +- .../src/Generated/ILineOfCreditsOperations.cs | 90 ++ .../Generated/IPartnerTransfersOperations.cs | 120 ++ .../IPartnerTransfersTransfersOperations.cs | 77 ++ .../Generated/IPaymentMethodsOperations.cs | 16 +- .../src/Generated/IPoliciesOperations.cs | 4 +- .../src/Generated/IPriceSheetOperations.cs | 68 +- .../src/Generated/IProductsOperations.cs | 129 +- .../IRecipientTransfersOperations.cs | 32 +- .../src/Generated/ITransactionsOperations.cs | 117 +- .../src/Generated/ITransfersOperations.cs | 24 +- .../Generated/InvoiceSectionsOperations.cs | 501 ++------ .../InvoiceSectionsOperationsExtensions.cs | 218 ++-- .../src/Generated/InvoicesOperations.cs | 10 +- .../Generated/InvoicesOperationsExtensions.cs | 12 +- .../src/Generated/LineOfCreditsOperations.cs | 446 +++++++ .../LineOfCreditsOperationsExtensions.cs | 121 ++ .../Models/{Address.cs => AddressDetails.cs} | 10 +- .../Models/AddressValidationStatus.cs | 22 + .../src/Generated/Models/AgreementType.cs | 23 + .../src/Generated/Models/Amount.cs | 4 +- .../{EnabledAzureSKUs.cs => AzurePlan.cs} | 16 +- .../src/Generated/Models/BillingAccount.cs | 63 +- .../Models/BillingAccountUpdateRequest.cs | 138 +++ .../Models/BillingPermissionsListResult.cs | 4 +- .../src/Generated/Models/BillingProfile.cs | 25 +- .../Models/BillingProfileCreationRequest.cs | 90 ++ .../Models/BillingProfilesCreateHeaders.cs | 62 + .../src/Generated/Models/BillingProperty.cs | 35 +- .../Models/BillingRoleAssignmentPayload.cs | 16 +- .../Generated/Models/BillingRoleDefinition.cs | 4 +- ...ptionSummary.cs => BillingSubscription.cs} | 62 +- .../Models/BillingSubscriptionsListResult.cs | 11 +- .../BillingSubscriptionsTransferHeaders.cs | 11 +- .../src/Generated/Models/Customer.cs | 79 ++ .../src/Generated/Models/CustomerType.cs | 23 + .../{DownloadProperties.cs => Document.cs} | 10 +- .../src/Generated/Models/DocumentType.cs | 24 + .../Models/InitiateTransferRequest.cs | 19 +- .../Models/{InvoiceSummary.cs => Invoice.cs} | 36 +- .../src/Generated/Models/InvoiceListResult.cs | 4 +- .../src/Generated/Models/InvoiceSection.cs | 14 +- ...es.cs => InvoiceSectionCreationRequest.cs} | 24 +- .../Models/InvoiceSectionsCreateHeaders.cs | 11 +- .../src/Generated/Models/InvoiceStatus.cs | 24 + .../src/Generated/Models/LineOfCredit.cs | 85 ++ .../Models/LineOfCreditsUpdateHeaders.cs | 60 + .../Models/MarketplacePurchasesPolicy.cs | 23 + .../src/Generated/Models/OperationStatus.cs | 68 -- .../src/Generated/Models/PaymentMethod.cs | 8 +- .../src/Generated/Models/Policy.cs | 44 +- ...iceSheetDownloadByBillingProfileHeaders.cs | 74 ++ .../Models/PriceSheetDownloadHeaders.cs | 13 +- .../Models/{ProductSummary.cs => Product.cs} | 54 +- .../ProductTransferValidationErrorCode.cs | 29 + .../Generated/Models/ProductsListResult.cs | 12 +- .../Models/ProductsTransferHeaders.cs | 11 +- .../Models/RecipientTransferDetails.cs | 27 +- .../src/Generated/Models/Reseller.cs | 59 + .../Models/ReservationPurchasesPolicy.cs | 22 + .../src/Generated/Models/Status.cs | 22 + ...SubscriptionTransferValidationErrorCode.cs | 28 + ...{TransactionsSummary.cs => Transaction.cs} | 54 +- ...ListResult.cs => TransactionListResult.cs} | 19 +- .../TransferBillingSubscriptionRequest.cs | 11 +- ...ferBillingSubscriptionRequestProperties.cs | 11 +- .../src/Generated/Models/TransferDetails.cs | 35 +- .../TransferProductRequestProperties.cs | 15 +- ...Summary.cs => UpdateAutoRenewOperation.cs} | 12 +- .../Models/ValidateAddressResponse.cs | 72 ++ ...ValidateProductTransferEligibilityError.cs | 84 ++ ...alidateProductTransferEligibilityResult.cs | 62 + ...ateSubscriptionTransferEligibilityError.cs | 81 ++ ...teSubscriptionTransferEligibilityResult.cs | 62 + .../Models/ValidateTransferListResponse.cs | 65 + .../Models/ValidateTransferResponse.cs | 73 ++ .../Models/ValidationResultProperties.cs | 67 ++ .../src/Generated/Models/ViewChargesPolicy.cs | 22 + .../Generated/PartnerTransfersOperations.cs | 647 ++++++++++ .../PartnerTransfersOperationsExtensions.cs | 181 +++ .../PartnerTransfersTransfersOperations.cs | 409 +++++++ ...rTransfersTransfersOperationsExtensions.cs | 105 ++ .../src/Generated/PaymentMethodsOperations.cs | 24 +- .../PaymentMethodsOperationsExtensions.cs | 48 +- .../src/Generated/PoliciesOperations.cs | 6 +- .../Generated/PoliciesOperationsExtensions.cs | 12 +- .../src/Generated/PriceSheetOperations.cs | 249 +++- .../PriceSheetOperationsExtensions.cs | 124 +- .../src/Generated/ProductsOperations.cs | 704 ++++++++++- .../Generated/ProductsOperationsExtensions.cs | 256 +++- .../Generated/RecipientTransfersOperations.cs | 202 +++- .../RecipientTransfersOperationsExtensions.cs | 58 +- .../SdkInfo_BillingManagementClient.cs | 47 +- .../src/Generated/TransactionsOperations.cs | 666 ++++++++++- .../TransactionsOperationsExtensions.cs | 216 +++- .../src/Generated/TransfersOperations.cs | 66 +- .../TransfersOperationsExtensions.cs | 64 +- 130 files changed, 11627 insertions(+), 1733 deletions(-) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperationsExtensions.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperationsExtensions.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAddressOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ICustomersOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ILineOfCreditsOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersTransfersOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperationsExtensions.cs rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{Address.cs => AddressDetails.cs} (86%) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AddressValidationStatus.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AgreementType.cs rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{EnabledAzureSKUs.cs => AzurePlan.cs} (75%) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccountUpdateRequest.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfileCreationRequest.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfilesCreateHeaders.cs rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{BillingSubscriptionSummary.cs => BillingSubscription.cs} (62%) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Customer.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/CustomerType.cs rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{DownloadProperties.cs => Document.cs} (83%) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/DocumentType.cs rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{InvoiceSummary.cs => Invoice.cs} (73%) rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{InvoiceSectionProperties.cs => InvoiceSectionCreationRequest.cs} (57%) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceStatus.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCredit.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCreditsUpdateHeaders.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/MarketplacePurchasesPolicy.cs delete mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/OperationStatus.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadByBillingProfileHeaders.cs rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{ProductSummary.cs => Product.cs} (70%) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductTransferValidationErrorCode.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Reseller.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ReservationPurchasesPolicy.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Status.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/SubscriptionTransferValidationErrorCode.cs rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{TransactionsSummary.cs => Transaction.cs} (70%) rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{TransactionsListResult.cs => TransactionListResult.cs} (70%) rename sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/{UpdateAutoRenewOperationSummary.cs => UpdateAutoRenewOperation.cs} (84%) create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateAddressResponse.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityError.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityResult.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityError.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityResult.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferListResponse.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferResponse.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidationResultProperties.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ViewChargesPolicy.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperationsExtensions.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperations.cs create mode 100644 sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperationsExtensions.cs diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperations.cs new file mode 100644 index 000000000000..39dd36a238d1 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperations.cs @@ -0,0 +1,235 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + 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; + + /// + /// AddressOperations operations. + /// + internal partial class AddressOperations : IServiceOperations, IAddressOperations + { + /// + /// Initializes a new instance of the AddressOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AddressOperations(BillingManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the BillingManagementClient + /// + public BillingManagementClient Client { get; private set; } + + /// + /// Validates the address. + /// + /// + /// + /// + /// 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> ValidateWithHttpMessagesAsync(AddressDetails address, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (address == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "address"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("address", address); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Validate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/validateAddress").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("POST"); + _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(address != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(address, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperationsExtensions.cs new file mode 100644 index 000000000000..c0e8399bdcc2 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AddressOperationsExtensions.cs @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for AddressOperations. + /// + public static partial class AddressOperationsExtensions + { + /// + /// Validates the address. + /// + /// + /// The operations group for this extension method. + /// + /// + /// + public static ValidateAddressResponse Validate(this IAddressOperations operations, AddressDetails address) + { + return operations.ValidateAsync(address).GetAwaiter().GetResult(); + } + + /// + /// Validates the address. + /// + /// + /// The operations group for this extension method. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task ValidateAsync(this IAddressOperations operations, AddressDetails address, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ValidateWithHttpMessagesAsync(address, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperations.cs index b7bfd8dccd11..355ab9591a9b 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperations.cs @@ -80,7 +80,7 @@ internal AgreementsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -100,7 +100,7 @@ internal AgreementsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("expand", expand); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperationsExtensions.cs index 2657b2b3af17..459d37367761 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/AgreementsOperationsExtensions.cs @@ -33,9 +33,9 @@ public static partial class AgreementsOperationsExtensions /// /// May be used to expand the participants. /// - public static AgreementListResult ListByBillingAccountName(this IAgreementsOperations operations, string billingAccountName, string expand = default(string)) + public static AgreementListResult ListByBillingAccount(this IAgreementsOperations operations, string billingAccountName, string expand = default(string)) { - return operations.ListByBillingAccountNameAsync(billingAccountName, expand).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName, expand).GetAwaiter().GetResult(); } /// @@ -53,9 +53,9 @@ public static partial class AgreementsOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByBillingAccountNameAsync(this IAgreementsOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingAccountAsync(this IAgreementsOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperations.cs index 1d076d68748b..e4b1b16addf6 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperations.cs @@ -54,7 +54,7 @@ internal BillingAccountsOperations(BillingManagementClient client) /// Lists all billing accounts for a user which he has access to. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and billingProfiles. /// /// /// Headers that will be added to request. @@ -233,7 +233,7 @@ internal BillingAccountsOperations(BillingManagementClient client) /// billing Account Id. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and billingProfiles. /// /// /// Headers that will be added to request. @@ -411,5 +411,218 @@ internal BillingAccountsOperations(BillingManagementClient client) return _result; } + /// + /// The operation to update a billing account. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string billingAccountName, BillingAccountUpdateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(billingAccountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// The operation to update a billing account. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account 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> BeginUpdateWithHttpMessagesAsync(string billingAccountName, BillingAccountUpdateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("parameters", parameters); + 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperationsExtensions.cs index ba67081d8381..073c2a3f17fe 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingAccountsOperationsExtensions.cs @@ -28,7 +28,7 @@ public static partial class BillingAccountsOperationsExtensions /// The operations group for this extension method. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and billingProfiles. /// public static BillingAccountListResult List(this IBillingAccountsOperations operations, string expand = default(string)) { @@ -42,7 +42,7 @@ public static partial class BillingAccountsOperationsExtensions /// The operations group for this extension method. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and billingProfiles. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public static partial class BillingAccountsOperationsExtensions /// billing Account Id. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and billingProfiles. /// public static BillingAccount Get(this IBillingAccountsOperations operations, string billingAccountName, string expand = default(string)) { @@ -82,7 +82,7 @@ public static partial class BillingAccountsOperationsExtensions /// billing Account Id. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and billingProfiles. /// /// /// The cancellation token. @@ -95,5 +95,85 @@ public static partial class BillingAccountsOperationsExtensions } } + /// + /// The operation to update a billing account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account operation. + /// + public static BillingAccount Update(this IBillingAccountsOperations operations, string billingAccountName, BillingAccountUpdateRequest parameters) + { + return operations.UpdateAsync(billingAccountName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The operation to update a billing account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account operation. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IBillingAccountsOperations operations, string billingAccountName, BillingAccountUpdateRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(billingAccountName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// The operation to update a billing account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account operation. + /// + public static BillingAccount BeginUpdate(this IBillingAccountsOperations operations, string billingAccountName, BillingAccountUpdateRequest parameters) + { + return operations.BeginUpdateAsync(billingAccountName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The operation to update a billing account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IBillingAccountsOperations operations, string billingAccountName, BillingAccountUpdateRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(billingAccountName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingManagementClient.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingManagementClient.cs index c1d0683efb03..ff06f40bc480 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingManagementClient.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingManagementClient.cs @@ -49,7 +49,7 @@ public partial class BillingManagementClient : ServiceClient /// Version of the API to be used with the client request. The current version - /// is 2018-11-01-preview. + /// is 2019-10-01-preview. /// public string ApiVersion { get; private set; } @@ -86,6 +86,11 @@ public partial class BillingManagementClient : ServiceClient public virtual IPaymentMethodsOperations PaymentMethods { get; private set; } + /// + /// Gets the IAddressOperations. + /// + public virtual IAddressOperations Address { get; private set; } + /// /// Gets the IAvailableBalancesOperations. /// @@ -96,45 +101,55 @@ public partial class BillingManagementClient : ServiceClient public virtual IBillingProfilesOperations BillingProfiles { get; private set; } + /// + /// Gets the ICustomersOperations. + /// + public virtual ICustomersOperations Customers { get; private set; } + /// /// Gets the IInvoiceSectionsOperations. /// public virtual IInvoiceSectionsOperations InvoiceSections { get; private set; } /// - /// Gets the IDepartmentsOperations. + /// Gets the IBillingPermissionsOperations. /// - public virtual IDepartmentsOperations Departments { get; private set; } + public virtual IBillingPermissionsOperations BillingPermissions { get; private set; } /// - /// Gets the IEnrollmentAccountsOperations. + /// Gets the IBillingSubscriptionsOperations. /// - public virtual IEnrollmentAccountsOperations EnrollmentAccounts { get; private set; } + public virtual IBillingSubscriptionsOperations BillingSubscriptions { get; private set; } /// - /// Gets the IInvoicesOperations. + /// Gets the IProductsOperations. /// - public virtual IInvoicesOperations Invoices { get; private set; } + public virtual IProductsOperations Products { get; private set; } /// - /// Gets the IPriceSheetOperations. + /// Gets the ITransactionsOperations. /// - public virtual IPriceSheetOperations PriceSheet { get; private set; } + public virtual ITransactionsOperations Transactions { get; private set; } /// - /// Gets the IBillingSubscriptionsOperations. + /// Gets the IDepartmentsOperations. /// - public virtual IBillingSubscriptionsOperations BillingSubscriptions { get; private set; } + public virtual IDepartmentsOperations Departments { get; private set; } /// - /// Gets the IProductsOperations. + /// Gets the IEnrollmentAccountsOperations. /// - public virtual IProductsOperations Products { get; private set; } + public virtual IEnrollmentAccountsOperations EnrollmentAccounts { get; private set; } /// - /// Gets the ITransactionsOperations. + /// Gets the IInvoicesOperations. /// - public virtual ITransactionsOperations Transactions { get; private set; } + public virtual IInvoicesOperations Invoices { get; private set; } + + /// + /// Gets the IPriceSheetOperations. + /// + public virtual IPriceSheetOperations PriceSheet { get; private set; } /// /// Gets the IPoliciesOperations. @@ -151,6 +166,16 @@ public partial class BillingManagementClient : ServiceClient public virtual ITransfersOperations Transfers { get; private set; } + /// + /// Gets the IPartnerTransfersOperations. + /// + public virtual IPartnerTransfersOperations PartnerTransfers { get; private set; } + + /// + /// Gets the IPartnerTransfersTransfersOperations. + /// + public virtual IPartnerTransfersTransfersOperations PartnerTransfersTransfers { get; private set; } + /// /// Gets the IRecipientTransfersOperations. /// @@ -161,11 +186,6 @@ public partial class BillingManagementClient : ServiceClient public virtual IOperations Operations { get; private set; } - /// - /// Gets the IBillingPermissionsOperations. - /// - public virtual IBillingPermissionsOperations BillingPermissions { get; private set; } - /// /// Gets the IBillingRoleDefinitionsOperations. /// @@ -181,6 +201,11 @@ public partial class BillingManagementClient : ServiceClient public virtual IAgreementsOperations Agreements { get; private set; } + /// + /// Gets the ILineOfCreditsOperations. + /// + public virtual ILineOfCreditsOperations LineOfCredits { get; private set; } + /// /// Initializes a new instance of the BillingManagementClient class. /// @@ -424,27 +449,32 @@ private void Initialize() { BillingAccounts = new BillingAccountsOperations(this); PaymentMethods = new PaymentMethodsOperations(this); + Address = new AddressOperations(this); AvailableBalances = new AvailableBalancesOperations(this); BillingProfiles = new BillingProfilesOperations(this); + Customers = new CustomersOperations(this); InvoiceSections = new InvoiceSectionsOperations(this); + BillingPermissions = new BillingPermissionsOperations(this); + BillingSubscriptions = new BillingSubscriptionsOperations(this); + Products = new ProductsOperations(this); + Transactions = new TransactionsOperations(this); Departments = new DepartmentsOperations(this); EnrollmentAccounts = new EnrollmentAccountsOperations(this); Invoices = new InvoicesOperations(this); PriceSheet = new PriceSheetOperations(this); - BillingSubscriptions = new BillingSubscriptionsOperations(this); - Products = new ProductsOperations(this); - Transactions = new TransactionsOperations(this); Policies = new PoliciesOperations(this); BillingProperty = new BillingPropertyOperations(this); Transfers = new TransfersOperations(this); + PartnerTransfers = new PartnerTransfersOperations(this); + PartnerTransfersTransfers = new PartnerTransfersTransfersOperations(this); RecipientTransfers = new RecipientTransfersOperations(this); Operations = new Operations(this); - BillingPermissions = new BillingPermissionsOperations(this); BillingRoleDefinitions = new BillingRoleDefinitionsOperations(this); BillingRoleAssignments = new BillingRoleAssignmentsOperations(this); Agreements = new AgreementsOperations(this); + LineOfCredits = new LineOfCreditsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-11-01-preview"; + ApiVersion = "2019-10-01-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperations.cs index 1018381b8005..391530e8e167 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperations.cs @@ -50,6 +50,192 @@ internal BillingPermissionsOperations(BillingManagementClient client) /// public BillingManagementClient Client { get; private set; } + /// + /// Lists all billing permissions the caller has for a customer. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// 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> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByCustomer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingPermissions").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 billing permissions for the caller under a billing account. /// @@ -100,7 +286,7 @@ internal BillingPermissionsOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingPermissions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingPermissions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -233,6 +419,9 @@ internal BillingPermissionsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -257,7 +446,7 @@ internal BillingPermissionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByInvoiceSectionsWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByInvoiceSectionsWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -267,6 +456,10 @@ internal BillingPermissionsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -279,14 +472,16 @@ internal BillingPermissionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSections", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingPermissions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingPermissions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -414,7 +609,7 @@ internal BillingPermissionsOperations(BillingManagementClient client) } /// - /// Lists all billingPermissions for the caller has for a billing account. + /// Lists all billing permissions the caller has for a billing account. /// /// /// billing Account Id. @@ -471,7 +666,7 @@ internal BillingPermissionsOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingPermissions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingPermissions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); List _queryParameters = new List(); diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperationsExtensions.cs index a6b04a53d5e7..1367a626c59d 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPermissionsOperationsExtensions.cs @@ -21,6 +21,46 @@ namespace Microsoft.Azure.Management.Billing /// public static partial class BillingPermissionsOperationsExtensions { + /// + /// Lists all billing permissions the caller has for a customer. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + public static BillingPermissionsListResult ListByCustomer(this IBillingPermissionsOperations operations, string billingAccountName, string customerName) + { + return operations.ListByCustomerAsync(billingAccountName, customerName).GetAwaiter().GetResult(); + } + + /// + /// Lists all billing permissions the caller has for a customer. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// The cancellation token. + /// + public static async Task ListByCustomerAsync(this IBillingPermissionsOperations operations, string billingAccountName, string customerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByCustomerWithHttpMessagesAsync(billingAccountName, customerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Lists all billing permissions for the caller under a billing account. /// @@ -64,12 +104,15 @@ public static BillingPermissionsListResult ListByBillingAccount(this IBillingPer /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - public static BillingPermissionsListResult ListByInvoiceSections(this IBillingPermissionsOperations operations, string billingAccountName, string invoiceSectionName) + public static BillingPermissionsListResult ListByInvoiceSections(this IBillingPermissionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { - return operations.ListByInvoiceSectionsAsync(billingAccountName, invoiceSectionName).GetAwaiter().GetResult(); + return operations.ListByInvoiceSectionsAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult(); } /// @@ -81,22 +124,25 @@ public static BillingPermissionsListResult ListByInvoiceSections(this IBillingPe /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// The cancellation token. /// - public static async Task ListByInvoiceSectionsAsync(this IBillingPermissionsOperations operations, string billingAccountName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByInvoiceSectionsAsync(this IBillingPermissionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInvoiceSectionsWithHttpMessagesAsync(billingAccountName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInvoiceSectionsWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists all billingPermissions for the caller has for a billing account. + /// Lists all billing permissions the caller has for a billing account. /// /// /// The operations group for this extension method. @@ -113,7 +159,7 @@ public static BillingPermissionsListResult ListByBillingProfile(this IBillingPer } /// - /// Lists all billingPermissions for the caller has for a billing account. + /// Lists all billing permissions the caller has for a billing account. /// /// /// The operations group for this extension method. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperations.cs index 9eece86c0e50..061988d6dd62 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperations.cs @@ -80,7 +80,7 @@ internal BillingProfilesOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -100,7 +100,7 @@ internal BillingProfilesOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("expand", expand); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -429,6 +429,31 @@ internal BillingProfilesOperations(BillingManagementClient client) return _result; } + /// + /// The operation to create a BillingProfile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(billingAccountName, billingProfileName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// The operation to update a billing profile. /// @@ -439,7 +464,7 @@ internal BillingProfilesOperations(BillingManagementClient client) /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile operation. /// /// /// The headers that will be added to request. @@ -454,6 +479,219 @@ internal BillingProfilesOperations(BillingManagementClient client) return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// The operation to create a BillingProfile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile 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> BeginCreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("parameters", parameters); + 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// The operation to update a billing profile. /// @@ -464,7 +702,7 @@ internal BillingProfilesOperations(BillingManagementClient client) /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile operation. /// /// /// Headers that will be added to request. @@ -535,7 +773,7 @@ internal BillingProfilesOperations(BillingManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperationsExtensions.cs index 7d9e353cfb46..a38bc7332d4e 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingProfilesOperationsExtensions.cs @@ -33,9 +33,9 @@ public static partial class BillingProfilesOperationsExtensions /// /// May be used to expand the invoiceSections. /// - public static BillingProfileListResult ListByBillingAccountName(this IBillingProfilesOperations operations, string billingAccountName, string expand = default(string)) + public static BillingProfileListResult ListByBillingAccount(this IBillingProfilesOperations operations, string billingAccountName, string expand = default(string)) { - return operations.ListByBillingAccountNameAsync(billingAccountName, expand).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName, expand).GetAwaiter().GetResult(); } /// @@ -53,9 +53,9 @@ public static partial class BillingProfilesOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByBillingAccountNameAsync(this IBillingProfilesOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingAccountAsync(this IBillingProfilesOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -107,6 +107,52 @@ public static partial class BillingProfilesOperationsExtensions } } + /// + /// The operation to create a BillingProfile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile operation. + /// + public static BillingProfile Create(this IBillingProfilesOperations operations, string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters) + { + return operations.CreateAsync(billingAccountName, billingProfileName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The operation to create a BillingProfile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IBillingProfilesOperations operations, string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(billingAccountName, billingProfileName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// The operation to update a billing profile. /// @@ -120,7 +166,7 @@ public static partial class BillingProfilesOperationsExtensions /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile operation. /// public static BillingProfile Update(this IBillingProfilesOperations operations, string billingAccountName, string billingProfileName, BillingProfile parameters) { @@ -140,7 +186,7 @@ public static BillingProfile Update(this IBillingProfilesOperations operations, /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile operation. /// /// /// The cancellation token. @@ -153,6 +199,52 @@ public static BillingProfile Update(this IBillingProfilesOperations operations, } } + /// + /// The operation to create a BillingProfile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile operation. + /// + public static BillingProfile BeginCreate(this IBillingProfilesOperations operations, string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters) + { + return operations.BeginCreateAsync(billingAccountName, billingProfileName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The operation to create a BillingProfile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IBillingProfilesOperations operations, string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(billingAccountName, billingProfileName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// The operation to update a billing profile. /// @@ -166,7 +258,7 @@ public static BillingProfile Update(this IBillingProfilesOperations operations, /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile operation. /// public static BillingProfile BeginUpdate(this IBillingProfilesOperations operations, string billingAccountName, string billingProfileName, BillingProfile parameters) { @@ -186,7 +278,7 @@ public static BillingProfile BeginUpdate(this IBillingProfilesOperations operati /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile operation. /// /// /// The cancellation token. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperations.cs index beaef84cd1f6..2fc34c5602fd 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperations.cs @@ -52,7 +52,7 @@ internal BillingPropertyOperations(BillingManagementClient client) /// /// Get billing property by subscription Id. - /// + /// /// /// /// Headers that will be added to request. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperationsExtensions.cs index 1cd9c6c24a44..99b7476e92a2 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingPropertyOperationsExtensions.cs @@ -23,7 +23,7 @@ public static partial class BillingPropertyOperationsExtensions { /// /// Get billing property by subscription Id. - /// + /// /// /// /// The operations group for this extension method. @@ -35,7 +35,7 @@ public static BillingProperty Get(this IBillingPropertyOperations operations) /// /// Get billing property by subscription Id. - /// + /// /// /// /// The operations group for this extension method. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperations.cs index ad2df2ce0444..5375183fd3b5 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperations.cs @@ -108,7 +108,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingRoleAssignmentName}", System.Uri.EscapeDataString(billingRoleAssignmentName)); List _queryParameters = new List(); @@ -266,7 +266,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteByBillingAccountWithHttpMessagesAsync(string billingAccountName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -290,11 +290,11 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("billingRoleAssignmentName", billingRoleAssignmentName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingRoleAssignmentName}", System.Uri.EscapeDataString(billingRoleAssignmentName)); List _queryParameters = new List(); @@ -428,6 +428,9 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -455,7 +458,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -465,6 +468,10 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -481,15 +488,17 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("billingRoleAssignmentName", billingRoleAssignmentName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{billingRoleAssignmentName}", System.Uri.EscapeDataString(billingRoleAssignmentName)); List _queryParameters = new List(); @@ -623,6 +632,9 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -650,7 +662,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -660,6 +672,10 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -676,15 +692,17 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("billingRoleAssignmentName", billingRoleAssignmentName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{billingRoleAssignmentName}", System.Uri.EscapeDataString(billingRoleAssignmentName)); List _queryParameters = new List(); @@ -845,7 +863,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -874,11 +892,11 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("billingRoleAssignmentName", billingRoleAssignmentName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{billingRoleAssignmentName}", System.Uri.EscapeDataString(billingRoleAssignmentName)); @@ -1040,7 +1058,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1069,11 +1087,11 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("billingRoleAssignmentName", billingRoleAssignmentName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments/{billingRoleAssignmentName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{billingRoleAssignmentName}", System.Uri.EscapeDataString(billingRoleAssignmentName)); @@ -1229,7 +1247,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1248,11 +1266,11 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingRoleAssignments").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -1385,6 +1403,9 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// Headers that will be added to request. /// @@ -1406,7 +1427,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddByBillingAccountWithHttpMessagesAsync(string billingAccountName, BillingRoleAssignmentPayload parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1416,7 +1437,10 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } - BillingRoleAssignmentPayload parameters = new BillingRoleAssignmentPayload(); + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1427,11 +1451,11 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "AddByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "AddByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/createBillingRoleAssignment").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/createBillingRoleAssignment").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -1570,6 +1594,9 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -1594,7 +1621,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1604,6 +1631,10 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -1616,14 +1647,16 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingRoleAssignments").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -1756,9 +1789,15 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// Headers that will be added to request. /// @@ -1780,7 +1819,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, BillingRoleAssignmentPayload parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1790,11 +1829,18 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); } - BillingRoleAssignmentPayload parameters = new BillingRoleAssignmentPayload(); + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1803,15 +1849,17 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "AddByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "AddByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/createBillingRoleAssignment").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/createBillingRoleAssignment").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -1974,7 +2022,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1998,11 +2046,11 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingRoleAssignments").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); List _queryParameters = new List(); @@ -2139,6 +2187,9 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// Billing Profile Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// Headers that will be added to request. /// @@ -2160,7 +2211,7 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, BillingRoleAssignmentPayload parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2174,7 +2225,10 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); } - BillingRoleAssignmentPayload parameters = new BillingRoleAssignmentPayload(); + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2186,11 +2240,11 @@ internal BillingRoleAssignmentsOperations(BillingManagementClient client) tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "AddByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "AddByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/createBillingRoleAssignment").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/createBillingRoleAssignment").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); List _queryParameters = new List(); diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperationsExtensions.cs index c4067a9f8cd3..cb60a1654a81 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleAssignmentsOperationsExtensions.cs @@ -73,9 +73,9 @@ public static BillingRoleAssignment GetByBillingAccount(this IBillingRoleAssignm /// /// role assignment id. /// - public static BillingRoleAssignment DeleteByBillingAccountName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingRoleAssignmentName) + public static BillingRoleAssignment DeleteByBillingAccount(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingRoleAssignmentName) { - return operations.DeleteByBillingAccountNameAsync(billingAccountName, billingRoleAssignmentName).GetAwaiter().GetResult(); + return operations.DeleteByBillingAccountAsync(billingAccountName, billingRoleAssignmentName).GetAwaiter().GetResult(); } /// @@ -93,9 +93,9 @@ public static BillingRoleAssignment DeleteByBillingAccountName(this IBillingRole /// /// The cancellation token. /// - public static async Task DeleteByBillingAccountNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteByBillingAccountAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteByBillingAccountNameWithHttpMessagesAsync(billingAccountName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteByBillingAccountWithHttpMessagesAsync(billingAccountName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -110,15 +110,18 @@ public static BillingRoleAssignment DeleteByBillingAccountName(this IBillingRole /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// role assignment id. /// - public static BillingRoleAssignment GetByInvoiceSectionName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName) + public static BillingRoleAssignment GetByInvoiceSection(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName) { - return operations.GetByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName, billingRoleAssignmentName).GetAwaiter().GetResult(); + return operations.GetByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, billingRoleAssignmentName).GetAwaiter().GetResult(); } /// @@ -130,6 +133,9 @@ public static BillingRoleAssignment GetByInvoiceSectionName(this IBillingRoleAss /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -139,9 +145,9 @@ public static BillingRoleAssignment GetByInvoiceSectionName(this IBillingRoleAss /// /// The cancellation token. /// - public static async Task GetByInvoiceSectionNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByInvoiceSectionAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -156,15 +162,18 @@ public static BillingRoleAssignment GetByInvoiceSectionName(this IBillingRoleAss /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// role assignment id. /// - public static BillingRoleAssignment DeleteByInvoiceSectionName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName) + public static BillingRoleAssignment DeleteByInvoiceSection(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName) { - return operations.DeleteByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName, billingRoleAssignmentName).GetAwaiter().GetResult(); + return operations.DeleteByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, billingRoleAssignmentName).GetAwaiter().GetResult(); } /// @@ -176,6 +185,9 @@ public static BillingRoleAssignment DeleteByInvoiceSectionName(this IBillingRole /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -185,9 +197,9 @@ public static BillingRoleAssignment DeleteByInvoiceSectionName(this IBillingRole /// /// The cancellation token. /// - public static async Task DeleteByInvoiceSectionNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteByInvoiceSectionAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -208,9 +220,9 @@ public static BillingRoleAssignment DeleteByInvoiceSectionName(this IBillingRole /// /// role assignment id. /// - public static BillingRoleAssignment GetByBillingProfileName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName) + public static BillingRoleAssignment GetByBillingProfile(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName) { - return operations.GetByBillingProfileNameAsync(billingAccountName, billingProfileName, billingRoleAssignmentName).GetAwaiter().GetResult(); + return operations.GetByBillingProfileAsync(billingAccountName, billingProfileName, billingRoleAssignmentName).GetAwaiter().GetResult(); } /// @@ -231,9 +243,9 @@ public static BillingRoleAssignment GetByBillingProfileName(this IBillingRoleAss /// /// The cancellation token. /// - public static async Task GetByBillingProfileNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByBillingProfileAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -254,9 +266,9 @@ public static BillingRoleAssignment GetByBillingProfileName(this IBillingRoleAss /// /// role assignment id. /// - public static BillingRoleAssignment DeleteByBillingProfileName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName) + public static BillingRoleAssignment DeleteByBillingProfile(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName) { - return operations.DeleteByBillingProfileNameAsync(billingAccountName, billingProfileName, billingRoleAssignmentName).GetAwaiter().GetResult(); + return operations.DeleteByBillingProfileAsync(billingAccountName, billingProfileName, billingRoleAssignmentName).GetAwaiter().GetResult(); } /// @@ -277,9 +289,9 @@ public static BillingRoleAssignment DeleteByBillingProfileName(this IBillingRole /// /// The cancellation token. /// - public static async Task DeleteByBillingProfileNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteByBillingProfileAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -294,9 +306,9 @@ public static BillingRoleAssignment DeleteByBillingProfileName(this IBillingRole /// /// billing Account Id. /// - public static BillingRoleAssignmentListResult ListByBillingAccountName(this IBillingRoleAssignmentsOperations operations, string billingAccountName) + public static BillingRoleAssignmentListResult ListByBillingAccount(this IBillingRoleAssignmentsOperations operations, string billingAccountName) { - return operations.ListByBillingAccountNameAsync(billingAccountName).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName).GetAwaiter().GetResult(); } /// @@ -311,9 +323,9 @@ public static BillingRoleAssignmentListResult ListByBillingAccountName(this IBil /// /// The cancellation token. /// - public static async Task ListByBillingAccountNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingAccountAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -328,9 +340,12 @@ public static BillingRoleAssignmentListResult ListByBillingAccountName(this IBil /// /// billing Account Id. /// - public static BillingRoleAssignmentListResult AddByBillingAccountName(this IBillingRoleAssignmentsOperations operations, string billingAccountName) + /// + /// Parameters supplied to add a role assignment. + /// + public static BillingRoleAssignmentListResult AddByBillingAccount(this IBillingRoleAssignmentsOperations operations, string billingAccountName, BillingRoleAssignmentPayload parameters) { - return operations.AddByBillingAccountNameAsync(billingAccountName).GetAwaiter().GetResult(); + return operations.AddByBillingAccountAsync(billingAccountName, parameters).GetAwaiter().GetResult(); } /// @@ -342,12 +357,15 @@ public static BillingRoleAssignmentListResult AddByBillingAccountName(this IBill /// /// billing Account Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// The cancellation token. /// - public static async Task AddByBillingAccountNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddByBillingAccountAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, BillingRoleAssignmentPayload parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddByBillingAccountNameWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddByBillingAccountWithHttpMessagesAsync(billingAccountName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -362,12 +380,15 @@ public static BillingRoleAssignmentListResult AddByBillingAccountName(this IBill /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - public static BillingRoleAssignmentListResult ListByInvoiceSectionName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName) + public static BillingRoleAssignmentListResult ListByInvoiceSection(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { - return operations.ListByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName).GetAwaiter().GetResult(); + return operations.ListByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult(); } /// @@ -379,15 +400,18 @@ public static BillingRoleAssignmentListResult ListByInvoiceSectionName(this IBil /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// The cancellation token. /// - public static async Task ListByInvoiceSectionNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByInvoiceSectionAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -402,12 +426,18 @@ public static BillingRoleAssignmentListResult ListByInvoiceSectionName(this IBil /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - public static BillingRoleAssignmentListResult AddByInvoiceSectionName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName) + /// + /// Parameters supplied to add a role assignment. + /// + public static BillingRoleAssignmentListResult AddByInvoiceSection(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, BillingRoleAssignmentPayload parameters) { - return operations.AddByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName).GetAwaiter().GetResult(); + return operations.AddByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters).GetAwaiter().GetResult(); } /// @@ -419,15 +449,21 @@ public static BillingRoleAssignmentListResult AddByInvoiceSectionName(this IBill /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// The cancellation token. /// - public static async Task AddByInvoiceSectionNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddByInvoiceSectionAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, BillingRoleAssignmentPayload parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -445,9 +481,9 @@ public static BillingRoleAssignmentListResult AddByInvoiceSectionName(this IBill /// /// Billing Profile Id. /// - public static BillingRoleAssignmentListResult ListByBillingProfileName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName) + public static BillingRoleAssignmentListResult ListByBillingProfile(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName) { - return operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + return operations.ListByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); } /// @@ -465,9 +501,9 @@ public static BillingRoleAssignmentListResult ListByBillingProfileName(this IBil /// /// The cancellation token. /// - public static async Task ListByBillingProfileNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingProfileAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -485,9 +521,12 @@ public static BillingRoleAssignmentListResult ListByBillingProfileName(this IBil /// /// Billing Profile Id. /// - public static BillingRoleAssignmentListResult AddByBillingProfileName(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName) + /// + /// Parameters supplied to add a role assignment. + /// + public static BillingRoleAssignmentListResult AddByBillingProfile(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, BillingRoleAssignmentPayload parameters) { - return operations.AddByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + return operations.AddByBillingProfileAsync(billingAccountName, billingProfileName, parameters).GetAwaiter().GetResult(); } /// @@ -502,12 +541,15 @@ public static BillingRoleAssignmentListResult AddByBillingProfileName(this IBill /// /// Billing Profile Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// The cancellation token. /// - public static async Task AddByBillingProfileNameAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddByBillingProfileAsync(this IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingProfileName, BillingRoleAssignmentPayload parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperations.cs index 3388eb2759da..db1c6fc46e7f 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperations.cs @@ -80,7 +80,7 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByBillingAccountWithHttpMessagesAsync(string billingAccountName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -104,11 +104,11 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("billingRoleDefinitionName", billingRoleDefinitionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingRoleDefinitions/{billingRoleDefinitionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/{billingRoleDefinitionName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingRoleDefinitionName}", System.Uri.EscapeDataString(billingRoleDefinitionName)); List _queryParameters = new List(); @@ -242,6 +242,9 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -269,7 +272,7 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -279,6 +282,10 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -295,15 +302,17 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("billingRoleDefinitionName", billingRoleDefinitionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingRoleDefinitions/{billingRoleDefinitionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/{billingRoleDefinitionName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{billingRoleDefinitionName}", System.Uri.EscapeDataString(billingRoleDefinitionName)); List _queryParameters = new List(); @@ -464,7 +473,7 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -493,11 +502,11 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("billingRoleDefinitionName", billingRoleDefinitionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingRoleDefinitions/{billingRoleDefinitionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/{billingRoleDefinitionName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{billingRoleDefinitionName}", System.Uri.EscapeDataString(billingRoleDefinitionName)); @@ -653,7 +662,7 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -672,11 +681,11 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingRoleDefinitions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -809,6 +818,9 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -833,7 +845,7 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -843,6 +855,10 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -855,14 +871,16 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingRoleDefinitions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -1019,7 +1037,7 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1043,11 +1061,11 @@ internal BillingRoleDefinitionsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingRoleDefinitions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); List _queryParameters = new List(); diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperationsExtensions.cs index cb1c83e8c923..10e68be3ec67 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingRoleDefinitionsOperationsExtensions.cs @@ -33,9 +33,9 @@ public static partial class BillingRoleDefinitionsOperationsExtensions /// /// role definition id. /// - public static BillingRoleDefinition GetByBillingAccountName(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingRoleDefinitionName) + public static BillingRoleDefinition GetByBillingAccount(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingRoleDefinitionName) { - return operations.GetByBillingAccountNameAsync(billingAccountName, billingRoleDefinitionName).GetAwaiter().GetResult(); + return operations.GetByBillingAccountAsync(billingAccountName, billingRoleDefinitionName).GetAwaiter().GetResult(); } /// @@ -53,9 +53,9 @@ public static BillingRoleDefinition GetByBillingAccountName(this IBillingRoleDef /// /// The cancellation token. /// - public static async Task GetByBillingAccountNameAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingRoleDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByBillingAccountAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingRoleDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByBillingAccountNameWithHttpMessagesAsync(billingAccountName, billingRoleDefinitionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByBillingAccountWithHttpMessagesAsync(billingAccountName, billingRoleDefinitionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -70,15 +70,18 @@ public static BillingRoleDefinition GetByBillingAccountName(this IBillingRoleDef /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// role definition id. /// - public static BillingRoleDefinition GetByInvoiceSectionName(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleDefinitionName) + public static BillingRoleDefinition GetByInvoiceSection(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleDefinitionName) { - return operations.GetByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName, billingRoleDefinitionName).GetAwaiter().GetResult(); + return operations.GetByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, billingRoleDefinitionName).GetAwaiter().GetResult(); } /// @@ -90,6 +93,9 @@ public static BillingRoleDefinition GetByInvoiceSectionName(this IBillingRoleDef /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -99,9 +105,9 @@ public static BillingRoleDefinition GetByInvoiceSectionName(this IBillingRoleDef /// /// The cancellation token. /// - public static async Task GetByInvoiceSectionNameAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByInvoiceSectionAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingRoleDefinitionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingRoleDefinitionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -122,9 +128,9 @@ public static BillingRoleDefinition GetByInvoiceSectionName(this IBillingRoleDef /// /// role definition id. /// - public static BillingRoleDefinition GetByBillingProfileName(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string billingRoleDefinitionName) + public static BillingRoleDefinition GetByBillingProfile(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string billingRoleDefinitionName) { - return operations.GetByBillingProfileNameAsync(billingAccountName, billingProfileName, billingRoleDefinitionName).GetAwaiter().GetResult(); + return operations.GetByBillingProfileAsync(billingAccountName, billingProfileName, billingRoleDefinitionName).GetAwaiter().GetResult(); } /// @@ -145,9 +151,9 @@ public static BillingRoleDefinition GetByBillingProfileName(this IBillingRoleDef /// /// The cancellation token. /// - public static async Task GetByBillingProfileNameAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string billingRoleDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByBillingProfileAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string billingRoleDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, billingRoleDefinitionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, billingRoleDefinitionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -162,9 +168,9 @@ public static BillingRoleDefinition GetByBillingProfileName(this IBillingRoleDef /// /// billing Account Id. /// - public static BillingRoleDefinitionListResult ListByBillingAccountName(this IBillingRoleDefinitionsOperations operations, string billingAccountName) + public static BillingRoleDefinitionListResult ListByBillingAccount(this IBillingRoleDefinitionsOperations operations, string billingAccountName) { - return operations.ListByBillingAccountNameAsync(billingAccountName).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName).GetAwaiter().GetResult(); } /// @@ -179,9 +185,9 @@ public static BillingRoleDefinitionListResult ListByBillingAccountName(this IBil /// /// The cancellation token. /// - public static async Task ListByBillingAccountNameAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingAccountAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -196,12 +202,15 @@ public static BillingRoleDefinitionListResult ListByBillingAccountName(this IBil /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - public static BillingRoleDefinitionListResult ListByInvoiceSectionName(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string invoiceSectionName) + public static BillingRoleDefinitionListResult ListByInvoiceSection(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { - return operations.ListByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName).GetAwaiter().GetResult(); + return operations.ListByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult(); } /// @@ -213,15 +222,18 @@ public static BillingRoleDefinitionListResult ListByInvoiceSectionName(this IBil /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// The cancellation token. /// - public static async Task ListByInvoiceSectionNameAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByInvoiceSectionAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -239,9 +251,9 @@ public static BillingRoleDefinitionListResult ListByInvoiceSectionName(this IBil /// /// Billing Profile Id. /// - public static BillingRoleDefinitionListResult ListByBillingProfileName(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName) + public static BillingRoleDefinitionListResult ListByBillingProfile(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName) { - return operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + return operations.ListByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); } /// @@ -259,9 +271,9 @@ public static BillingRoleDefinitionListResult ListByBillingProfileName(this IBil /// /// The cancellation token. /// - public static async Task ListByBillingProfileNameAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingProfileAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperations.cs index 08090ecc3117..fa77fa944c0a 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperations.cs @@ -51,12 +51,15 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) public BillingManagementClient Client { get; private set; } /// - /// Lists billing subscriptions by billing account name. + /// Lists billing subscription by customer id. /// /// /// /// billing Account Id. /// + /// + /// Customer name. + /// /// /// Headers that will be added to request. /// @@ -78,12 +81,16 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -96,13 +103,15 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("customerName", customerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByCustomer", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -196,7 +205,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -209,7 +218,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -229,14 +238,17 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) } /// - /// Lists billing subscriptions by billing profile name. + /// Get a single billing subscription by id. /// /// /// /// billing Account Id. /// - /// - /// Billing Profile Id. + /// + /// Customer name. + /// + /// + /// Billing Subscription Id. /// /// /// Headers that will be added to request. @@ -259,15 +271,19 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string billingSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } - if (billingProfileName == null) + if (customerName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + if (billingSubscriptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingSubscriptionName"); } if (Client.ApiVersion == null) { @@ -281,15 +297,17 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); - tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("billingSubscriptionName", billingSubscriptionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByCustomer", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/{billingSubscriptionName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); - _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + _url = _url.Replace("{billingSubscriptionName}", System.Uri.EscapeDataString(billingSubscriptionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -383,7 +401,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -396,7 +414,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -416,15 +434,12 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) } /// - /// Lists billing subscription by invoice section name. - /// + /// Lists billing subscriptions by billing account name. + /// /// /// /// billing Account Id. /// - /// - /// InvoiceSection Id. - /// /// /// Headers that will be added to request. /// @@ -446,16 +461,12 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } - if (invoiceSectionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -468,15 +479,13 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); - tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/billingSubscriptions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); - _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -570,7 +579,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -583,7 +592,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -603,17 +612,14 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) } /// - /// Get a single billing subscription by name. - /// + /// Lists billing subscriptions by billing profile name. + /// /// /// /// billing Account Id. /// - /// - /// InvoiceSection Id. - /// - /// - /// Billing Subscription Id. + /// + /// Billing Profile Id. /// /// /// Headers that will be added to request. @@ -636,19 +642,15 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } - if (invoiceSectionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); - } - if (billingSubscriptionName == null) + if (billingProfileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "billingSubscriptionName"); + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); } if (Client.ApiVersion == null) { @@ -662,17 +664,15 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); - tracingParameters.Add("invoiceSectionName", invoiceSectionName); - tracingParameters.Add("billingSubscriptionName", billingSubscriptionName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); - _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); - _url = _url.Replace("{billingSubscriptionName}", System.Uri.EscapeDataString(billingSubscriptionName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -766,7 +766,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -779,7 +779,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -799,50 +799,18 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) } /// - /// Transfers the subscription from one invoice section to another within a - /// billing account. + /// Lists billing subscription by invoice section name. + /// /// /// /// billing Account Id. /// - /// - /// InvoiceSection Id. - /// - /// - /// Billing Subscription Id. - /// - /// - /// Parameters supplied to the Transfer Billing Subscription operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> TransferWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginTransferWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingSubscriptionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Transfers the subscription from one invoice section to another within a - /// billing account. - /// - /// - /// billing Account Id. + /// + /// Billing Profile Id. /// /// /// InvoiceSection Id. /// - /// - /// Billing Subscription Id. - /// - /// - /// Parameters supplied to the Transfer Billing Subscription operation. - /// /// /// Headers that will be added to request. /// @@ -864,23 +832,23 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginTransferWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } - if (invoiceSectionName == null) + if (billingProfileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); } - if (billingSubscriptionName == null) + if (invoiceSectionName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "billingSubscriptionName"); + throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); } - if (parameters == null) + if (Client.ApiVersion == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -890,19 +858,22 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); - tracingParameters.Add("billingSubscriptionName", billingSubscriptionName); - tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginTransfer", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/transfer").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); - _url = _url.Replace("{billingSubscriptionName}", System.Uri.EscapeDataString(billingSubscriptionName)); 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); @@ -910,7 +881,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -941,12 +912,6 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) { @@ -967,7 +932,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -997,7 +962,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1010,7 +975,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1022,19 +987,6 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } - try - { - _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1043,8 +995,848 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) } /// - /// Lists billing subscriptions by billing account name. - /// + /// Get a single billing subscription by name. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Billing Subscription Id. + /// + /// + /// 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 billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (invoiceSectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); + } + if (billingSubscriptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingSubscriptionName"); + } + 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("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("invoiceSectionName", invoiceSectionName); + tracingParameters.Add("billingSubscriptionName", billingSubscriptionName); + 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); + _url = _url.Replace("{billingSubscriptionName}", System.Uri.EscapeDataString(billingSubscriptionName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Transfers the subscription from one invoice section to another within a + /// billing account. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Billing Subscription Id. + /// + /// + /// Request parameters supplied to the Transfer Billing Subscription operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> TransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginTransferWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Validates the transfer of billing subscriptions across invoice sections. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Billing Subscription Id. + /// + /// + /// Parameters supplied to the Transfer Billing Subscription 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> ValidateTransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (invoiceSectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); + } + if (billingSubscriptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingSubscriptionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("invoiceSectionName", invoiceSectionName); + tracingParameters.Add("billingSubscriptionName", billingSubscriptionName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ValidateTransfer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/validateTransferEligibility").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); + _url = _url.Replace("{billingSubscriptionName}", System.Uri.EscapeDataString(billingSubscriptionName)); + 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("POST"); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Transfers the subscription from one invoice section to another within a + /// billing account. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Billing Subscription Id. + /// + /// + /// Request parameters supplied to the Transfer Billing Subscription 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> BeginTransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (invoiceSectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); + } + if (billingSubscriptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingSubscriptionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("invoiceSectionName", invoiceSectionName); + tracingParameters.Add("billingSubscriptionName", billingSubscriptionName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginTransfer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/transfer").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); + _url = _url.Replace("{billingSubscriptionName}", System.Uri.EscapeDataString(billingSubscriptionName)); + 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("POST"); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists billing subscription by customer id. + /// + /// + /// + /// 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>> ListByCustomerNextWithHttpMessagesAsync(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, "ListByCustomerNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 billing subscriptions by billing account name. + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -1070,7 +1862,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1085,7 +1877,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNameNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1179,7 +1971,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1192,7 +1984,7 @@ internal BillingSubscriptionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperationsExtensions.cs index b0c9011256f2..e4cc2f127fb0 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/BillingSubscriptionsOperationsExtensions.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Billing public static partial class BillingSubscriptionsOperationsExtensions { /// - /// Lists billing subscriptions by billing account name. + /// Lists billing subscription by customer id. /// /// /// @@ -31,13 +31,16 @@ public static partial class BillingSubscriptionsOperationsExtensions /// /// billing Account Id. /// - public static IPage ListByBillingAccountName(this IBillingSubscriptionsOperations operations, string billingAccountName) + /// + /// Customer name. + /// + public static IPage ListByCustomer(this IBillingSubscriptionsOperations operations, string billingAccountName, string customerName) { - return operations.ListByBillingAccountNameAsync(billingAccountName).GetAwaiter().GetResult(); + return operations.ListByCustomerAsync(billingAccountName, customerName).GetAwaiter().GetResult(); } /// - /// Lists billing subscriptions by billing account name. + /// Lists billing subscription by customer id. /// /// /// @@ -46,19 +49,43 @@ public static IPage ListByBillingAccountName(this IB /// /// billing Account Id. /// + /// + /// Customer name. + /// /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByCustomerAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string customerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByCustomerWithHttpMessagesAsync(billingAccountName, customerName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists billing subscriptions by billing profile name. + /// Get a single billing subscription by id. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Billing Subscription Id. + /// + public static BillingSubscription GetByCustomer(this IBillingSubscriptionsOperations operations, string billingAccountName, string customerName, string billingSubscriptionName) + { + return operations.GetByCustomerAsync(billingAccountName, customerName, billingSubscriptionName).GetAwaiter().GetResult(); + } + + /// + /// Get a single billing subscription by id. /// /// /// @@ -67,17 +94,80 @@ public static IPage ListByBillingAccountName(this IB /// /// billing Account Id. /// + /// + /// Customer name. + /// + /// + /// Billing Subscription Id. + /// + /// + /// The cancellation token. + /// + public static async Task GetByCustomerAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string customerName, string billingSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByCustomerWithHttpMessagesAsync(billingAccountName, customerName, billingSubscriptionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists billing subscriptions by billing account name. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + public static IPage ListByBillingAccount(this IBillingSubscriptionsOperations operations, string billingAccountName) + { + return operations.ListByBillingAccountAsync(billingAccountName).GetAwaiter().GetResult(); + } + + /// + /// Lists billing subscriptions by billing account name. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByBillingAccountAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists billing subscriptions by billing profile name. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// /// /// Billing Profile Id. /// - public static BillingSubscriptionsListResult ListByBillingProfileName(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName) + public static BillingSubscriptionsListResult ListByBillingProfile(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName) { - return operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + return operations.ListByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); } /// /// Lists billing subscriptions by billing profile name. - /// + /// /// /// /// The operations group for this extension method. @@ -91,9 +181,9 @@ public static BillingSubscriptionsListResult ListByBillingProfileName(this IBill /// /// The cancellation token. /// - public static async Task ListByBillingProfileNameAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingProfileAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -101,7 +191,7 @@ public static BillingSubscriptionsListResult ListByBillingProfileName(this IBill /// /// Lists billing subscription by invoice section name. - /// + /// /// /// /// The operations group for this extension method. @@ -109,17 +199,20 @@ public static BillingSubscriptionsListResult ListByBillingProfileName(this IBill /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - public static BillingSubscriptionsListResult ListByInvoiceSectionName(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName) + public static BillingSubscriptionsListResult ListByInvoiceSection(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { - return operations.ListByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName).GetAwaiter().GetResult(); + return operations.ListByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult(); } /// /// Lists billing subscription by invoice section name. - /// + /// /// /// /// The operations group for this extension method. @@ -127,15 +220,18 @@ public static BillingSubscriptionsListResult ListByInvoiceSectionName(this IBill /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// The cancellation token. /// - public static async Task ListByInvoiceSectionNameAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByInvoiceSectionAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -143,7 +239,7 @@ public static BillingSubscriptionsListResult ListByInvoiceSectionName(this IBill /// /// Get a single billing subscription by name. - /// + /// /// /// /// The operations group for this extension method. @@ -151,20 +247,23 @@ public static BillingSubscriptionsListResult ListByInvoiceSectionName(this IBill /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// Billing Subscription Id. /// - public static BillingSubscriptionSummary Get(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, string billingSubscriptionName) + public static BillingSubscription Get(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName) { - return operations.GetAsync(billingAccountName, invoiceSectionName, billingSubscriptionName).GetAwaiter().GetResult(); + return operations.GetAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName).GetAwaiter().GetResult(); } /// /// Get a single billing subscription by name. - /// + /// /// /// /// The operations group for this extension method. @@ -172,6 +271,9 @@ public static BillingSubscriptionSummary Get(this IBillingSubscriptionsOperation /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -181,9 +283,9 @@ public static BillingSubscriptionSummary Get(this IBillingSubscriptionsOperation /// /// The cancellation token. /// - public static async Task GetAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, string billingSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingSubscriptionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -199,6 +301,9 @@ public static BillingSubscriptionSummary Get(this IBillingSubscriptionsOperation /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -206,11 +311,11 @@ public static BillingSubscriptionSummary Get(this IBillingSubscriptionsOperation /// Billing Subscription Id. /// /// - /// Parameters supplied to the Transfer Billing Subscription operation. + /// Request parameters supplied to the Transfer Billing Subscription operation. /// - public static TransferBillingSubscriptionResult Transfer(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters) + public static TransferBillingSubscriptionResult Transfer(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters) { - return operations.TransferAsync(billingAccountName, invoiceSectionName, billingSubscriptionName, parameters).GetAwaiter().GetResult(); + return operations.TransferAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, parameters).GetAwaiter().GetResult(); } /// @@ -223,6 +328,67 @@ public static TransferBillingSubscriptionResult Transfer(this IBillingSubscripti /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Billing Subscription Id. + /// + /// + /// Request parameters supplied to the Transfer Billing Subscription operation. + /// + /// + /// The cancellation token. + /// + public static async Task TransferAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.TransferWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates the transfer of billing subscriptions across invoice sections. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Billing Subscription Id. + /// + /// + /// Parameters supplied to the Transfer Billing Subscription operation. + /// + public static ValidateSubscriptionTransferEligibilityResult ValidateTransfer(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters) + { + return operations.ValidateTransferAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates the transfer of billing subscriptions across invoice sections. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -235,9 +401,9 @@ public static TransferBillingSubscriptionResult Transfer(this IBillingSubscripti /// /// The cancellation token. /// - public static async Task TransferAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ValidateTransferAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TransferWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingSubscriptionName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ValidateTransferWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -253,6 +419,9 @@ public static TransferBillingSubscriptionResult Transfer(this IBillingSubscripti /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -260,11 +429,11 @@ public static TransferBillingSubscriptionResult Transfer(this IBillingSubscripti /// Billing Subscription Id. /// /// - /// Parameters supplied to the Transfer Billing Subscription operation. + /// Request parameters supplied to the Transfer Billing Subscription operation. /// - public static TransferBillingSubscriptionResult BeginTransfer(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters) + public static TransferBillingSubscriptionResult BeginTransfer(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters) { - return operations.BeginTransferAsync(billingAccountName, invoiceSectionName, billingSubscriptionName, parameters).GetAwaiter().GetResult(); + return operations.BeginTransferAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, parameters).GetAwaiter().GetResult(); } /// @@ -277,6 +446,9 @@ public static TransferBillingSubscriptionResult BeginTransfer(this IBillingSubsc /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -284,21 +456,21 @@ public static TransferBillingSubscriptionResult BeginTransfer(this IBillingSubsc /// Billing Subscription Id. /// /// - /// Parameters supplied to the Transfer Billing Subscription operation. + /// Request parameters supplied to the Transfer Billing Subscription operation. /// /// /// The cancellation token. /// - public static async Task BeginTransferAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginTransferAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginTransferWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingSubscriptionName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginTransferWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, billingSubscriptionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists billing subscriptions by billing account name. + /// Lists billing subscription by customer id. /// /// /// @@ -307,13 +479,13 @@ public static TransferBillingSubscriptionResult BeginTransfer(this IBillingSubsc /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByBillingAccountNameNext(this IBillingSubscriptionsOperations operations, string nextPageLink) + public static IPage ListByCustomerNext(this IBillingSubscriptionsOperations operations, string nextPageLink) { - return operations.ListByBillingAccountNameNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByCustomerNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Lists billing subscriptions by billing account name. + /// Lists billing subscription by customer id. /// /// /// @@ -325,9 +497,45 @@ public static IPage ListByBillingAccountNameNext(thi /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameNextAsync(this IBillingSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByCustomerNextAsync(this IBillingSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByCustomerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists billing subscriptions by billing account name. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByBillingAccountNext(this IBillingSubscriptionsOperations operations, string nextPageLink) + { + return operations.ListByBillingAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists billing subscriptions by billing account name. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByBillingAccountNextAsync(this IBillingSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperations.cs new file mode 100644 index 000000000000..828e3e65281b --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperations.cs @@ -0,0 +1,989 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + 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; + + /// + /// CustomersOperations operations. + /// + internal partial class CustomersOperations : IServiceOperations, ICustomersOperations + { + /// + /// Initializes a new instance of the CustomersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal CustomersOperations(BillingManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the BillingManagementClient + /// + public BillingManagementClient Client { get; private set; } + + /// + /// Lists customers by billing profile which the current user can work with + /// on-behalf of a partner. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the + /// nextLink element will include a skiptoken parameter that specifies a + /// starting point to use for subsequent calls. + /// + /// + /// 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>> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string filter = default(string), string skiptoken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("filter", filter); + tracingParameters.Add("skiptoken", skiptoken); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfile", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (skiptoken != null) + { + _queryParameters.Add(string.Format("$skiptoken={0}", System.Uri.EscapeDataString(skiptoken))); + } + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// billing Account Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the + /// nextLink element will include a skiptoken parameter that specifies a + /// starting point to use for subsequent calls. + /// + /// + /// 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>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string filter = default(string), string skiptoken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("filter", filter); + tracingParameters.Add("skiptoken", skiptoken); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (skiptoken != null) + { + _queryParameters.Add(string.Format("$skiptoken={0}", System.Uri.EscapeDataString(skiptoken))); + } + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Gets a customer by its id. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to expand enabledAzurePlans, resellers. + /// + /// + /// 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 billingAccountName, string customerName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("expand", expand); + 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 customers by billing profile which the current user can work with + /// on-behalf of a partner. + /// + /// + /// 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>> ListByBillingProfileNextWithHttpMessagesAsync(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, "ListByBillingProfileNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// 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>> ListByBillingAccountNextWithHttpMessagesAsync(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, "ListByBillingAccountNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperationsExtensions.cs new file mode 100644 index 000000000000..e047020c0811 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/CustomersOperationsExtensions.cs @@ -0,0 +1,257 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for CustomersOperations. + /// + public static partial class CustomersOperationsExtensions + { + /// + /// Lists customers by billing profile which the current user can work with + /// on-behalf of a partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the + /// nextLink element will include a skiptoken parameter that specifies a + /// starting point to use for subsequent calls. + /// + public static IPage ListByBillingProfile(this ICustomersOperations operations, string billingAccountName, string billingProfileName, string filter = default(string), string skiptoken = default(string)) + { + return operations.ListByBillingProfileAsync(billingAccountName, billingProfileName, filter, skiptoken).GetAwaiter().GetResult(); + } + + /// + /// Lists customers by billing profile which the current user can work with + /// on-behalf of a partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the + /// nextLink element will include a skiptoken parameter that specifies a + /// starting point to use for subsequent calls. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByBillingProfileAsync(this ICustomersOperations operations, string billingAccountName, string billingProfileName, string filter = default(string), string skiptoken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, filter, skiptoken, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the + /// nextLink element will include a skiptoken parameter that specifies a + /// starting point to use for subsequent calls. + /// + public static IPage ListByBillingAccount(this ICustomersOperations operations, string billingAccountName, string filter = default(string), string skiptoken = default(string)) + { + return operations.ListByBillingAccountAsync(billingAccountName, filter, skiptoken).GetAwaiter().GetResult(); + } + + /// + /// Lists customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the + /// nextLink element will include a skiptoken parameter that specifies a + /// starting point to use for subsequent calls. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByBillingAccountAsync(this ICustomersOperations operations, string billingAccountName, string filter = default(string), string skiptoken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, filter, skiptoken, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a customer by its id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to expand enabledAzurePlans, resellers. + /// + public static Customer Get(this ICustomersOperations operations, string billingAccountName, string customerName, string expand = default(string)) + { + return operations.GetAsync(billingAccountName, customerName, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets a customer by its id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to expand enabledAzurePlans, resellers. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ICustomersOperations operations, string billingAccountName, string customerName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, customerName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists customers by billing profile which the current user can work with + /// on-behalf of a partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByBillingProfileNext(this ICustomersOperations operations, string nextPageLink) + { + return operations.ListByBillingProfileNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists customers by billing profile which the current user can work with + /// on-behalf of a partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByBillingProfileNextAsync(this ICustomersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByBillingProfileNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByBillingAccountNext(this ICustomersOperations operations, string nextPageLink) + { + return operations.ListByBillingAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByBillingAccountNextAsync(this ICustomersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByBillingAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAddressOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAddressOperations.cs new file mode 100644 index 000000000000..0497e1cfd7e9 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAddressOperations.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AddressOperations operations. + /// + public partial interface IAddressOperations + { + /// + /// Validates the address. + /// + /// + /// + /// + /// 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> ValidateWithHttpMessagesAsync(AddressDetails address, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAgreementsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAgreementsOperations.cs index ad1ad24644a8..8857e689506b 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAgreementsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IAgreementsOperations.cs @@ -47,7 +47,7 @@ public partial interface IAgreementsOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the agreement by name. /// diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingAccountsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingAccountsOperations.cs index b35c31c7891e..29bb611aa91e 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingAccountsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingAccountsOperations.cs @@ -27,7 +27,8 @@ public partial interface IBillingAccountsOperations /// Lists all billing accounts for a user which he has access to. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and + /// billingProfiles. /// /// /// The headers that will be added to request. @@ -52,7 +53,8 @@ public partial interface IBillingAccountsOperations /// billing Account Id. /// /// - /// May be used to expand the invoiceSections and billingProfiles. + /// May be used to expand the address, invoiceSections and + /// billingProfiles. /// /// /// The headers that will be added to request. @@ -70,5 +72,57 @@ public partial interface IBillingAccountsOperations /// Thrown when a required parameter is null /// Task> GetWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// The operation to update a billing account. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account + /// 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> UpdateWithHttpMessagesAsync(string billingAccountName, BillingAccountUpdateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// The operation to update a billing account. + /// + /// + /// billing Account Id. + /// + /// + /// Request parameters supplied to the update billing account + /// 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> BeginUpdateWithHttpMessagesAsync(string billingAccountName, BillingAccountUpdateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingManagementClient.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingManagementClient.cs index 1a737016940c..171f2c18de7a 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingManagementClient.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingManagementClient.cs @@ -43,7 +43,7 @@ public partial interface IBillingManagementClient : System.IDisposable /// /// Version of the API to be used with the client request. The current - /// version is 2018-11-01-preview. + /// version is 2019-10-01-preview. /// string ApiVersion { get; } @@ -81,6 +81,11 @@ public partial interface IBillingManagementClient : System.IDisposable /// IPaymentMethodsOperations PaymentMethods { get; } + /// + /// Gets the IAddressOperations. + /// + IAddressOperations Address { get; } + /// /// Gets the IAvailableBalancesOperations. /// @@ -91,45 +96,55 @@ public partial interface IBillingManagementClient : System.IDisposable /// IBillingProfilesOperations BillingProfiles { get; } + /// + /// Gets the ICustomersOperations. + /// + ICustomersOperations Customers { get; } + /// /// Gets the IInvoiceSectionsOperations. /// IInvoiceSectionsOperations InvoiceSections { get; } /// - /// Gets the IDepartmentsOperations. + /// Gets the IBillingPermissionsOperations. /// - IDepartmentsOperations Departments { get; } + IBillingPermissionsOperations BillingPermissions { get; } /// - /// Gets the IEnrollmentAccountsOperations. + /// Gets the IBillingSubscriptionsOperations. /// - IEnrollmentAccountsOperations EnrollmentAccounts { get; } + IBillingSubscriptionsOperations BillingSubscriptions { get; } /// - /// Gets the IInvoicesOperations. + /// Gets the IProductsOperations. /// - IInvoicesOperations Invoices { get; } + IProductsOperations Products { get; } /// - /// Gets the IPriceSheetOperations. + /// Gets the ITransactionsOperations. /// - IPriceSheetOperations PriceSheet { get; } + ITransactionsOperations Transactions { get; } /// - /// Gets the IBillingSubscriptionsOperations. + /// Gets the IDepartmentsOperations. /// - IBillingSubscriptionsOperations BillingSubscriptions { get; } + IDepartmentsOperations Departments { get; } /// - /// Gets the IProductsOperations. + /// Gets the IEnrollmentAccountsOperations. /// - IProductsOperations Products { get; } + IEnrollmentAccountsOperations EnrollmentAccounts { get; } /// - /// Gets the ITransactionsOperations. + /// Gets the IInvoicesOperations. /// - ITransactionsOperations Transactions { get; } + IInvoicesOperations Invoices { get; } + + /// + /// Gets the IPriceSheetOperations. + /// + IPriceSheetOperations PriceSheet { get; } /// /// Gets the IPoliciesOperations. @@ -146,6 +161,16 @@ public partial interface IBillingManagementClient : System.IDisposable /// ITransfersOperations Transfers { get; } + /// + /// Gets the IPartnerTransfersOperations. + /// + IPartnerTransfersOperations PartnerTransfers { get; } + + /// + /// Gets the IPartnerTransfersTransfersOperations. + /// + IPartnerTransfersTransfersOperations PartnerTransfersTransfers { get; } + /// /// Gets the IRecipientTransfersOperations. /// @@ -156,11 +181,6 @@ public partial interface IBillingManagementClient : System.IDisposable /// IOperations Operations { get; } - /// - /// Gets the IBillingPermissionsOperations. - /// - IBillingPermissionsOperations BillingPermissions { get; } - /// /// Gets the IBillingRoleDefinitionsOperations. /// @@ -176,5 +196,10 @@ public partial interface IBillingManagementClient : System.IDisposable /// IAgreementsOperations Agreements { get; } + /// + /// Gets the ILineOfCreditsOperations. + /// + ILineOfCreditsOperations LineOfCredits { get; } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPermissionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPermissionsOperations.cs index e0157246a966..13d471c026ea 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPermissionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPermissionsOperations.cs @@ -23,6 +23,31 @@ namespace Microsoft.Azure.Management.Billing /// public partial interface IBillingPermissionsOperations { + /// + /// Lists all billing permissions the caller has for a customer. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// 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> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all billing permissions for the caller under a billing /// account. @@ -52,6 +77,9 @@ public partial interface IBillingPermissionsOperations /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -70,10 +98,9 @@ public partial interface IBillingPermissionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByInvoiceSectionsWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByInvoiceSectionsWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all billingPermissions for the caller has for a billing - /// account. + /// Lists all billing permissions the caller has for a billing account. /// /// /// billing Account Id. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingProfilesOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingProfilesOperations.cs index 6ea9e0f19913..370ead878038 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingProfilesOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingProfilesOperations.cs @@ -48,7 +48,7 @@ public partial interface IBillingProfilesOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the billing profile by id. /// @@ -78,6 +78,34 @@ public partial interface IBillingProfilesOperations /// Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// The operation to create a BillingProfile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile 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> CreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// The operation to update a billing profile. /// /// @@ -87,7 +115,8 @@ public partial interface IBillingProfilesOperations /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile + /// operation. /// /// /// The headers that will be added to request. @@ -106,6 +135,34 @@ public partial interface IBillingProfilesOperations /// Task> UpdateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, BillingProfile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// The operation to create a BillingProfile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Request parameters supplied to the Create BillingProfile 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> BeginCreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, BillingProfileCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// The operation to update a billing profile. /// /// @@ -115,7 +172,8 @@ public partial interface IBillingProfilesOperations /// Billing Profile Id. /// /// - /// Parameters supplied to the update billing profile operation. + /// Request parameters supplied to the update billing profile + /// operation. /// /// /// The headers that will be added to request. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPropertyOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPropertyOperations.cs index 0c8a4329431b..71374d3abd1b 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPropertyOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingPropertyOperations.cs @@ -25,7 +25,7 @@ public partial interface IBillingPropertyOperations { /// /// Get billing property by subscription Id. - /// + /// /// /// /// The headers that will be added to request. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleAssignmentsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleAssignmentsOperations.cs index e8dd336ace8a..dfd967c25418 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleAssignmentsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleAssignmentsOperations.cs @@ -72,13 +72,16 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> DeleteByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteByBillingAccountWithHttpMessagesAsync(string billingAccountName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the role assignment for the caller on the invoice Section /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -100,13 +103,16 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> GetByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete the role assignment on the invoice Section /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -128,7 +134,7 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> DeleteByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the role assignment for the caller on the Billing Profile /// @@ -156,7 +162,7 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> GetByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete the role assignment on this Billing Profile /// @@ -184,7 +190,7 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> DeleteByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the role assignments on the Billing Account /// @@ -206,13 +212,16 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to add a role assignment to a billing account. /// /// /// billing Account Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// The headers that will be added to request. /// @@ -228,13 +237,16 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> AddByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddByBillingAccountWithHttpMessagesAsync(string billingAccountName, BillingRoleAssignmentPayload parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the role assignments on the invoice Section /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -253,16 +265,22 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to add a role assignment to a invoice Section. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// The headers that will be added to request. /// @@ -278,7 +296,7 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> AddByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, BillingRoleAssignmentPayload parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the role assignments on the Billing Profile /// @@ -303,7 +321,7 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to add a role assignment to a billing profile. /// @@ -313,6 +331,9 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Billing Profile Id. /// + /// + /// Parameters supplied to add a role assignment. + /// /// /// The headers that will be added to request. /// @@ -328,6 +349,6 @@ public partial interface IBillingRoleAssignmentsOperations /// /// Thrown when a required parameter is null /// - Task> AddByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, BillingRoleAssignmentPayload parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleDefinitionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleDefinitionsOperations.cs index 332b767d96dd..6de9603a2bcb 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleDefinitionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingRoleDefinitionsOperations.cs @@ -47,13 +47,16 @@ public partial interface IBillingRoleDefinitionsOperations /// /// Thrown when a required parameter is null /// - Task> GetByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByBillingAccountWithHttpMessagesAsync(string billingAccountName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the role definition for a role /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -75,7 +78,7 @@ public partial interface IBillingRoleDefinitionsOperations /// /// Thrown when a required parameter is null /// - Task> GetByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the role definition for a role /// @@ -103,7 +106,7 @@ public partial interface IBillingRoleDefinitionsOperations /// /// Thrown when a required parameter is null /// - Task> GetByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string billingRoleDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the role definition for a billing account /// @@ -125,13 +128,16 @@ public partial interface IBillingRoleDefinitionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the role definition for an invoice Section /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -150,7 +156,7 @@ public partial interface IBillingRoleDefinitionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the role definition for a Billing Profile /// @@ -175,6 +181,6 @@ public partial interface IBillingRoleDefinitionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingSubscriptionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingSubscriptionsOperations.cs index ca05ab3286ca..6f0f5e80e8ac 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingSubscriptionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IBillingSubscriptionsOperations.cs @@ -24,12 +24,15 @@ namespace Microsoft.Azure.Management.Billing public partial interface IBillingSubscriptionsOperations { /// - /// Lists billing subscriptions by billing account name. + /// Lists billing subscription by customer id. /// /// /// /// billing Account Id. /// + /// + /// Customer name. + /// /// /// The headers that will be added to request. /// @@ -45,14 +48,66 @@ public partial interface IBillingSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists billing subscriptions by billing profile name. + /// Get a single billing subscription by id. /// /// /// /// billing Account Id. /// + /// + /// Customer name. + /// + /// + /// Billing Subscription Id. + /// + /// + /// 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> GetByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string billingSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists billing subscriptions by billing account name. + /// + /// + /// + /// billing Account Id. + /// + /// + /// 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>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists billing subscriptions by billing profile name. + /// + /// + /// + /// billing Account Id. + /// /// /// Billing Profile Id. /// @@ -71,14 +126,17 @@ public partial interface IBillingSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists billing subscription by invoice section name. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -97,14 +155,17 @@ public partial interface IBillingSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a single billing subscription by name. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -126,7 +187,7 @@ public partial interface IBillingSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Transfers the subscription from one invoice section to another /// within a billing account. @@ -134,6 +195,45 @@ public partial interface IBillingSubscriptionsOperations /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Billing Subscription Id. + /// + /// + /// Request parameters supplied to the Transfer Billing Subscription + /// 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> TransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates the transfer of billing subscriptions across invoice + /// sections. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -158,7 +258,7 @@ public partial interface IBillingSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task> TransferWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ValidateTransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Transfers the subscription from one invoice section to another /// within a billing account. @@ -166,6 +266,9 @@ public partial interface IBillingSubscriptionsOperations /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -173,7 +276,8 @@ public partial interface IBillingSubscriptionsOperations /// Billing Subscription Id. /// /// - /// Parameters supplied to the Transfer Billing Subscription operation. + /// Request parameters supplied to the Transfer Billing Subscription + /// operation. /// /// /// The headers that will be added to request. @@ -190,9 +294,9 @@ public partial interface IBillingSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task> BeginTransferWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginTransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists billing subscriptions by billing account name. + /// Lists billing subscription by customer id. /// /// /// @@ -213,6 +317,29 @@ public partial interface IBillingSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByCustomerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists billing subscriptions by billing account name. + /// + /// + /// + /// 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>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ICustomersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ICustomersOperations.cs new file mode 100644 index 000000000000..127391a15393 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ICustomersOperations.cs @@ -0,0 +1,168 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// CustomersOperations operations. + /// + public partial interface ICustomersOperations + { + /// + /// Lists customers by billing profile which the current user can work + /// with on-behalf of a partner. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial + /// result. If a previous response contains a nextLink element, the + /// value of the nextLink element will include a skiptoken parameter + /// that specifies a starting point to use for subsequent calls. + /// + /// + /// 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>> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string filter = default(string), string skiptoken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// billing Account Id. + /// + /// + /// May be used to filter the list of customers. + /// + /// + /// Skiptoken is only used if a previous operation returned a partial + /// result. If a previous response contains a nextLink element, the + /// value of the nextLink element will include a skiptoken parameter + /// that specifies a starting point to use for subsequent calls. + /// + /// + /// 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>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string filter = default(string), string skiptoken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a customer by its id. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to expand enabledAzurePlans, resellers. + /// + /// + /// 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 billingAccountName, string customerName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists customers by billing profile which the current user can work + /// with on-behalf of a partner. + /// + /// + /// 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>> ListByBillingProfileNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists customers which the current user can work with on-behalf of a + /// partner. + /// + /// + /// 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>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoiceSectionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoiceSectionsOperations.cs index bd865c95b006..6fe7878c3644 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoiceSectionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoiceSectionsOperations.cs @@ -29,33 +29,8 @@ public partial interface IInvoiceSectionsOperations /// /// billing Account Id. /// - /// - /// May be used to expand the billingProfiles. - /// - /// - /// 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> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// The operation to create a InvoiceSection. - /// - /// - /// billing Account Id. - /// - /// - /// Parameters supplied to the Create InvoiceSection operation. + /// + /// Billing Profile Id. /// /// /// The headers that will be added to request. @@ -72,10 +47,9 @@ public partial interface IInvoiceSectionsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string billingAccountName, InvoiceSectionProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all invoice sections under a billing profile for a user which - /// he has access to. + /// Get the InvoiceSection by id. /// /// /// billing Account Id. @@ -83,31 +57,8 @@ public partial interface IInvoiceSectionsOperations /// /// Billing Profile Id. /// - /// - /// 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> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists all invoiceSections with create subscription permission for a - /// user. - /// - /// - /// billing Account Id. - /// - /// - /// May be used to expand the billingProfiles. + /// + /// InvoiceSection Id. /// /// /// The headers that will be added to request. @@ -124,18 +75,21 @@ public partial interface IInvoiceSectionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByCreateSubscriptionPermissionWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the InvoiceSection by id. + /// The operation to create an invoice section. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// May be used to expand the billingProfiles. + /// + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The headers that will be added to request. @@ -152,18 +106,21 @@ public partial interface IInvoiceSectionsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to update a InvoiceSection. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The headers that will be added to request. @@ -180,13 +137,16 @@ public partial interface IInvoiceSectionsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Elevates the caller's access to match their billing profile access. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -202,15 +162,21 @@ public partial interface IInvoiceSectionsOperations /// /// Thrown when a required parameter is null /// - Task ElevateToBillingProfileWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task ElevateToBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// The operation to create a InvoiceSection. + /// The operation to create an invoice section. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The headers that will be added to request. @@ -227,18 +193,21 @@ public partial interface IInvoiceSectionsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string billingAccountName, InvoiceSectionProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to update a InvoiceSection. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The headers that will be added to request. @@ -255,6 +224,6 @@ public partial interface IInvoiceSectionsOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoicesOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoicesOperations.cs index 20a9710d6e67..92881627e14e 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoicesOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IInvoicesOperations.cs @@ -50,7 +50,7 @@ public partial interface IInvoicesOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string periodStartDate, string periodEndDate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string periodStartDate, string periodEndDate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List of invoices for a billing profile. /// @@ -109,6 +109,6 @@ public partial interface IInvoicesOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ILineOfCreditsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ILineOfCreditsOperations.cs new file mode 100644 index 000000000000..ba1c6ac5edbf --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ILineOfCreditsOperations.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// LineOfCreditsOperations operations. + /// + public partial interface ILineOfCreditsOperations + { + /// + /// Get the current line of credit. + /// + /// + /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Increase the current line of credit. + /// + /// + /// Parameters supplied to the increase line of credit 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> UpdateWithHttpMessagesAsync(LineOfCredit parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Increase the current line of credit. + /// + /// + /// Parameters supplied to the increase line of credit 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> BeginUpdateWithHttpMessagesAsync(LineOfCredit parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersOperations.cs new file mode 100644 index 000000000000..12424f279f60 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersOperations.cs @@ -0,0 +1,120 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PartnerTransfersOperations operations. + /// + public partial interface IPartnerTransfersOperations + { + /// + /// Initiates the request to transfer the legacy subscriptions or RIs. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Parameters supplied to initiate the transfer. + /// + /// + /// 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> InitiateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string customerName, InitiateTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the transfer details for given transfer Id. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + /// + /// 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 billingAccountName, string billingProfileName, string customerName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancels the transfer for given transfer Id. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + /// + /// 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> CancelWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string customerName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersTransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersTransfersOperations.cs new file mode 100644 index 000000000000..257b82644cfd --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPartnerTransfersTransfersOperations.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PartnerTransfersTransfersOperations operations. + /// + public partial interface IPartnerTransfersTransfersOperations + { + /// + /// Lists all transfer's details initiated from given invoice section. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// 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 billingAccountName, string billingProfileName, string customerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all transfer's details initiated from given invoice section. + /// + /// + /// 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/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPaymentMethodsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPaymentMethodsOperations.cs index 3436d0cc3003..ed7a123da510 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPaymentMethodsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPaymentMethodsOperations.cs @@ -25,7 +25,7 @@ public partial interface IPaymentMethodsOperations { /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// billing Account Id. @@ -45,10 +45,10 @@ public partial interface IPaymentMethodsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// billing Account Id. @@ -71,10 +71,10 @@ public partial interface IPaymentMethodsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -94,10 +94,10 @@ public partial interface IPaymentMethodsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -117,6 +117,6 @@ public partial interface IPaymentMethodsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingProfileNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingProfileNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPoliciesOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPoliciesOperations.cs index 093508b3467a..ce73bd4c9303 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPoliciesOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPoliciesOperations.cs @@ -26,7 +26,7 @@ public partial interface IPoliciesOperations /// /// The policy for a given billing account name and billing profile /// name. - /// + /// /// /// /// billing Account Id. @@ -49,7 +49,7 @@ public partial interface IPoliciesOperations /// /// Thrown when a required parameter is null /// - Task> GetByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to update a policy. /// diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPriceSheetOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPriceSheetOperations.cs index 4dbbea4a1d6f..d86f10588980 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPriceSheetOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IPriceSheetOperations.cs @@ -27,10 +27,38 @@ public partial interface IPriceSheetOperations /// Download price sheet for an invoice. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. + /// + /// + /// 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> DownloadWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Download price sheet for a billing profile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// /// The headers that will be added to request. @@ -47,15 +75,43 @@ public partial interface IPriceSheetOperations /// /// Thrown when a required parameter is null /// - Task> DownloadWithHttpMessagesAsync(string billingAccountName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DownloadByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Download price sheet for an invoice. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. + /// + /// + /// 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> BeginDownloadWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Download price sheet for a billing profile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// /// The headers that will be added to request. @@ -72,6 +128,6 @@ public partial interface IPriceSheetOperations /// /// Thrown when a required parameter is null /// - Task> BeginDownloadWithHttpMessagesAsync(string billingAccountName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginDownloadByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IProductsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IProductsOperations.cs index 772e45896fea..02c1a7764872 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IProductsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IProductsOperations.cs @@ -23,9 +23,70 @@ namespace Microsoft.Azure.Management.Billing /// public partial interface IProductsOperations { + /// + /// Lists products by customer id. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to filter by product type. The filter supports 'eq', + /// 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support + /// 'ne', 'or', or 'not'. Tag filter is a key value pair string where + /// key and value is separated by a colon (:). + /// + /// + /// 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> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a customer's product by name. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Invoice Id. + /// + /// + /// 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> GetByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string productName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists products by billing account name. - /// + /// /// /// /// billing Account Id. @@ -51,14 +112,17 @@ public partial interface IProductsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists products by invoice section name. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -83,14 +147,17 @@ public partial interface IProductsOperations /// /// Thrown when a required parameter is null /// - Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a single product by name. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -112,13 +179,16 @@ public partial interface IProductsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string productName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to transfer a Product to another invoice section. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -143,7 +213,41 @@ public partial interface IProductsOperations /// /// Thrown when a required parameter is null /// - Task> TransferWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates the transfer of products across invoice sections. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Invoice Id. + /// + /// + /// Parameters supplied to the Transfer Products 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> ValidateTransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Cancel auto renew for product by product id and billing account /// name @@ -172,7 +276,7 @@ public partial interface IProductsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateAutoRenewByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateAutoRenewByBillingAccountWithHttpMessagesAsync(string billingAccountName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Cancel auto renew for product by product id and invoice section /// name @@ -180,6 +284,9 @@ public partial interface IProductsOperations /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -204,10 +311,10 @@ public partial interface IProductsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateAutoRenewByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateAutoRenewByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists products by billing account name. - /// + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -227,6 +334,6 @@ public partial interface IProductsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IRecipientTransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IRecipientTransfersOperations.cs index bf6c68b38fd2..814c7e69e1e6 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IRecipientTransfersOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/IRecipientTransfersOperations.cs @@ -29,8 +29,8 @@ public partial interface IRecipientTransfersOperations /// /// Transfer Name. /// - /// - /// Accept transfer parameters. + /// + /// Parameters supplied to accept the transfer. /// /// /// The headers that will be added to request. @@ -47,7 +47,33 @@ public partial interface IRecipientTransfersOperations /// /// Thrown when a required parameter is null /// - Task> AcceptWithHttpMessagesAsync(string transferName, AcceptTransferRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AcceptWithHttpMessagesAsync(string transferName, AcceptTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates if the products can be transferred in the context of the + /// given transfer name. + /// + /// + /// Transfer Name. + /// + /// + /// Parameters supplied to validate the transfer. + /// + /// + /// 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> ValidateWithHttpMessagesAsync(string transferName, AcceptTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Declines the transfer with given transfer Id. /// diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransactionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransactionsOperations.cs index c4c94779273c..6d4fe16f1332 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransactionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransactionsOperations.cs @@ -23,10 +23,49 @@ namespace Microsoft.Azure.Management.Billing /// public partial interface ITransactionsOperations { + /// + /// Lists the transactions by customer id for given start date and end + /// date. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Start date + /// + /// + /// End date + /// + /// + /// May be used to filter by transaction kind. The filter supports + /// 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently + /// support 'ne', 'or', or 'not'. Tag filter is a key value pair string + /// where key and value is separated by a colon (:). + /// + /// + /// 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>> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the transactions by billing account name for given start and /// end date. - /// + /// /// /// /// billing Account Id. @@ -58,11 +97,11 @@ public partial interface ITransactionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the transactions by billing profile name for given start date /// and end date. - /// + /// /// /// /// billing Account Id. @@ -97,15 +136,18 @@ public partial interface ITransactionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the transactions by invoice section name for given start date /// and end date. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -136,11 +178,70 @@ public partial interface ITransactionsOperations /// /// Thrown when a required parameter is null /// - Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the transaction. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Transaction name. + /// + /// + /// Start date + /// + /// + /// End date + /// + /// + /// 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 billingAccountName, string billingProfileName, string transactionName, string startDate, string endDate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the transactions by customer id for given start date and end + /// date. + /// + /// + /// + /// 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>> ListByCustomerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the transactions by billing account name for given start and /// end date. - /// + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -160,6 +261,6 @@ public partial interface ITransactionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransfersOperations.cs index 32cf8b3bff6b..181fdf9757ef 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransfersOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ITransfersOperations.cs @@ -29,11 +29,14 @@ public partial interface ITransfersOperations /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// Initiate transfer parameters. + /// + /// Parameters supplied to initiate the transfer. /// /// /// The headers that will be added to request. @@ -50,13 +53,16 @@ public partial interface ITransfersOperations /// /// Thrown when a required parameter is null /// - Task> InitiateWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, InitiateTransferRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> InitiateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InitiateTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the transfer details for given transfer Id. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -78,13 +84,16 @@ public partial interface ITransfersOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Cancels the transfer for given transfer Id. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -106,13 +115,16 @@ public partial interface ITransfersOperations /// /// Thrown when a required parameter is null /// - Task> CancelWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CancelWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all transfer's details initiated from given invoice section. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -131,7 +143,7 @@ public partial interface ITransfersOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all transfer's details initiated from given invoice section. /// diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperations.cs index 578c38188985..4812e4c4443d 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperations.cs @@ -56,214 +56,6 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// billing Account Id. /// - /// - /// May be used to expand the billingProfiles. - /// - /// - /// 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> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (billingAccountName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("billingAccountName", billingAccountName); - tracingParameters.Add("expand", expand); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections").ToString(); - _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (expand != null) - { - _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); - } - 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _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; - } - - /// - /// The operation to create a InvoiceSection. - /// - /// - /// billing Account Id. - /// - /// - /// Parameters supplied to the Create InvoiceSection operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string billingAccountName, InvoiceSectionProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(billingAccountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Lists all invoice sections under a billing profile for a user which he has - /// access to. - /// - /// - /// billing Account Id. - /// /// /// Billing Profile Id. /// @@ -288,7 +80,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -312,7 +104,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -445,13 +237,16 @@ internal InvoiceSectionsOperations(BillingManagementClient client) } /// - /// Lists all invoiceSections with create subscription permission for a user. + /// Get the InvoiceSection by id. /// /// /// billing Account Id. /// - /// - /// May be used to expand the billingProfiles. + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. /// /// /// Headers that will be added to request. @@ -474,7 +269,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByCreateSubscriptionPermissionWithHttpMessagesAsync(string billingAccountName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -484,6 +279,14 @@ internal InvoiceSectionsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (invoiceSectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -492,23 +295,22 @@ internal InvoiceSectionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); - tracingParameters.Add("expand", expand); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByCreateSubscriptionPermission", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } - if (expand != null) - { - _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -597,7 +399,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -610,7 +412,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -630,197 +432,31 @@ internal InvoiceSectionsOperations(BillingManagementClient client) } /// - /// Get the InvoiceSection by id. + /// The operation to create an invoice section. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// May be used to expand the billingProfiles. + /// + /// Request parameters supplied to the Create InvoiceSection operation. /// /// - /// Headers that will be added to 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 - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (billingAccountName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); - } - if (invoiceSectionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("billingAccountName", billingAccountName); - tracingParameters.Add("invoiceSectionName", invoiceSectionName); - tracingParameters.Add("expand", expand); - 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}").ToString(); - _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); - _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (expand != null) - { - _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); - } - 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _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; + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// @@ -829,11 +465,14 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The headers that will be added to request. @@ -841,10 +480,10 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(billingAccountName, invoiceSectionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -854,6 +493,9 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -875,12 +517,16 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task ElevateToBillingProfileWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task ElevateToBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -893,14 +539,16 @@ internal InvoiceSectionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ElevateToBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/elevate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/elevate").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (_queryParameters.Count > 0) @@ -1006,13 +654,19 @@ internal InvoiceSectionsOperations(BillingManagementClient client) } /// - /// The operation to create a InvoiceSection. + /// The operation to create an invoice section. /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// Headers that will be added to request. @@ -1035,7 +689,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string billingAccountName, InvoiceSectionProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1045,6 +699,14 @@ internal InvoiceSectionsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (invoiceSectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); + } if (parameters == null) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); @@ -1057,14 +719,18 @@ internal InvoiceSectionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("parameters", parameters); 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1077,7 +743,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1215,11 +881,14 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// Headers that will be added to request. @@ -1242,7 +911,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1252,6 +921,10 @@ internal InvoiceSectionsOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -1268,6 +941,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); @@ -1275,8 +949,9 @@ internal InvoiceSectionsOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -1290,7 +965,7 @@ internal InvoiceSectionsOperations(BillingManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperationsExtensions.cs index 1de0c2211554..4052f5850ba4 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoiceSectionsOperationsExtensions.cs @@ -30,12 +30,12 @@ public static partial class InvoiceSectionsOperationsExtensions /// /// billing Account Id. /// - /// - /// May be used to expand the billingProfiles. + /// + /// Billing Profile Id. /// - public static InvoiceSectionListResult ListByBillingAccountName(this IInvoiceSectionsOperations operations, string billingAccountName, string expand = default(string)) + public static InvoiceSectionListResult ListByBillingProfile(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName) { - return operations.ListByBillingAccountNameAsync(billingAccountName, expand).GetAwaiter().GetResult(); + return operations.ListByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); } /// @@ -47,63 +47,22 @@ public static partial class InvoiceSectionsOperationsExtensions /// /// billing Account Id. /// - /// - /// May be used to expand the billingProfiles. - /// - /// - /// The cancellation token. - /// - public static async Task ListByBillingAccountNameAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// The operation to create a InvoiceSection. - /// - /// - /// The operations group for this extension method. - /// - /// - /// billing Account Id. - /// - /// - /// Parameters supplied to the Create InvoiceSection operation. - /// - public static InvoiceSection Create(this IInvoiceSectionsOperations operations, string billingAccountName, InvoiceSectionProperties parameters) - { - return operations.CreateAsync(billingAccountName, parameters).GetAwaiter().GetResult(); - } - - /// - /// The operation to create a InvoiceSection. - /// - /// - /// The operations group for this extension method. - /// - /// - /// billing Account Id. - /// - /// - /// Parameters supplied to the Create InvoiceSection operation. + /// + /// Billing Profile Id. /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, InvoiceSectionProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingProfileAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(billingAccountName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists all invoice sections under a billing profile for a user which he has - /// access to. + /// Get the InvoiceSection by id. /// /// /// The operations group for this extension method. @@ -114,14 +73,16 @@ public static InvoiceSection Create(this IInvoiceSectionsOperations operations, /// /// Billing Profile Id. /// - public static InvoiceSectionListResult ListByBillingProfileName(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName) + /// + /// InvoiceSection Id. + /// + public static InvoiceSection Get(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { - return operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + return operations.GetAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult(); } /// - /// Lists all invoice sections under a billing profile for a user which he has - /// access to. + /// Get the InvoiceSection by id. /// /// /// The operations group for this extension method. @@ -132,59 +93,22 @@ public static InvoiceSectionListResult ListByBillingProfileName(this IInvoiceSec /// /// Billing Profile Id. /// - /// - /// The cancellation token. - /// - public static async Task ListByBillingProfileNameAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Lists all invoiceSections with create subscription permission for a user. - /// - /// - /// The operations group for this extension method. - /// - /// - /// billing Account Id. - /// - /// - /// May be used to expand the billingProfiles. - /// - public static InvoiceSectionListResult ListByCreateSubscriptionPermission(this IInvoiceSectionsOperations operations, string billingAccountName, string expand = default(string)) - { - return operations.ListByCreateSubscriptionPermissionAsync(billingAccountName, expand).GetAwaiter().GetResult(); - } - - /// - /// Lists all invoiceSections with create subscription permission for a user. - /// - /// - /// The operations group for this extension method. - /// - /// - /// billing Account Id. - /// - /// - /// May be used to expand the billingProfiles. + /// + /// InvoiceSection Id. /// /// /// The cancellation token. /// - public static async Task ListByCreateSubscriptionPermissionAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByCreateSubscriptionPermissionWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the InvoiceSection by id. + /// The operation to create an invoice section. /// /// /// The operations group for this extension method. @@ -192,19 +116,22 @@ public static InvoiceSectionListResult ListByBillingProfileName(this IInvoiceSec /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// May be used to expand the billingProfiles. + /// + /// Request parameters supplied to the Create InvoiceSection operation. /// - public static InvoiceSection Get(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName, string expand = default(string)) + public static InvoiceSection Create(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters) { - return operations.GetAsync(billingAccountName, invoiceSectionName, expand).GetAwaiter().GetResult(); + return operations.CreateAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters).GetAwaiter().GetResult(); } /// - /// Get the InvoiceSection by id. + /// The operation to create an invoice section. /// /// /// The operations group for this extension method. @@ -212,18 +139,21 @@ public static InvoiceSectionListResult ListByBillingProfileName(this IInvoiceSec /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// May be used to expand the billingProfiles. + /// + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, invoiceSectionName, expand, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -238,15 +168,18 @@ public static InvoiceSectionListResult ListByBillingProfileName(this IInvoiceSec /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// - public static InvoiceSection Update(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName, InvoiceSection parameters) + public static InvoiceSection Update(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters) { - return operations.UpdateAsync(billingAccountName, invoiceSectionName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters).GetAwaiter().GetResult(); } /// @@ -258,18 +191,21 @@ public static InvoiceSection Update(this IInvoiceSectionsOperations operations, /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName, InvoiceSection parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(billingAccountName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -284,12 +220,15 @@ public static InvoiceSection Update(this IInvoiceSectionsOperations operations, /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - public static void ElevateToBillingProfile(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName) + public static void ElevateToBillingProfile(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { - operations.ElevateToBillingProfileAsync(billingAccountName, invoiceSectionName).GetAwaiter().GetResult(); + operations.ElevateToBillingProfileAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult(); } /// @@ -301,19 +240,22 @@ public static void ElevateToBillingProfile(this IInvoiceSectionsOperations opera /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// The cancellation token. /// - public static async Task ElevateToBillingProfileAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ElevateToBillingProfileAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.ElevateToBillingProfileWithHttpMessagesAsync(billingAccountName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.ElevateToBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// The operation to create a InvoiceSection. + /// The operation to create an invoice section. /// /// /// The operations group for this extension method. @@ -321,16 +263,22 @@ public static void ElevateToBillingProfile(this IInvoiceSectionsOperations opera /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// - public static InvoiceSection BeginCreate(this IInvoiceSectionsOperations operations, string billingAccountName, InvoiceSectionProperties parameters) + public static InvoiceSection BeginCreate(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters) { - return operations.BeginCreateAsync(billingAccountName, parameters).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters).GetAwaiter().GetResult(); } /// - /// The operation to create a InvoiceSection. + /// The operation to create an invoice section. /// /// /// The operations group for this extension method. @@ -338,15 +286,21 @@ public static InvoiceSection BeginCreate(this IInvoiceSectionsOperations operati /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, InvoiceSectionProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSectionCreationRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(billingAccountName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -361,15 +315,18 @@ public static InvoiceSection BeginCreate(this IInvoiceSectionsOperations operati /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// - public static InvoiceSection BeginUpdate(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName, InvoiceSection parameters) + public static InvoiceSection BeginUpdate(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters) { - return operations.BeginUpdateAsync(billingAccountName, invoiceSectionName, parameters).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters).GetAwaiter().GetResult(); } /// @@ -381,18 +338,21 @@ public static InvoiceSection BeginUpdate(this IInvoiceSectionsOperations operati /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// - /// Parameters supplied to the Create InvoiceSection operation. + /// Request parameters supplied to the Create InvoiceSection operation. /// /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string invoiceSectionName, InvoiceSection parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateAsync(this IInvoiceSectionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InvoiceSection parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(billingAccountName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperations.cs index 67850201bfbf..4dd00b21b1b9 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperations.cs @@ -83,7 +83,7 @@ internal InvoicesOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string periodStartDate, string periodEndDate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string periodStartDate, string periodEndDate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -112,7 +112,7 @@ internal InvoicesOperations(BillingManagementClient client) tracingParameters.Add("periodStartDate", periodStartDate); tracingParameters.Add("periodEndDate", periodEndDate); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -494,7 +494,7 @@ internal InvoicesOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -624,7 +624,7 @@ internal InvoicesOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -637,7 +637,7 @@ internal InvoicesOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperationsExtensions.cs index 78ac2e59664b..550178ea1e1a 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/InvoicesOperationsExtensions.cs @@ -36,9 +36,9 @@ public static partial class InvoicesOperationsExtensions /// /// Invoice period end date. /// - public static InvoiceListResult ListByBillingAccountName(this IInvoicesOperations operations, string billingAccountName, string periodStartDate, string periodEndDate) + public static InvoiceListResult ListByBillingAccount(this IInvoicesOperations operations, string billingAccountName, string periodStartDate, string periodEndDate) { - return operations.ListByBillingAccountNameAsync(billingAccountName, periodStartDate, periodEndDate).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName, periodStartDate, periodEndDate).GetAwaiter().GetResult(); } /// @@ -59,9 +59,9 @@ public static InvoiceListResult ListByBillingAccountName(this IInvoicesOperation /// /// The cancellation token. /// - public static async Task ListByBillingAccountNameAsync(this IInvoicesOperations operations, string billingAccountName, string periodStartDate, string periodEndDate, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingAccountAsync(this IInvoicesOperations operations, string billingAccountName, string periodStartDate, string periodEndDate, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, periodStartDate, periodEndDate, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, periodStartDate, periodEndDate, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -134,7 +134,7 @@ public static InvoiceListResult ListByBillingProfile(this IInvoicesOperations op /// /// Invoice Id. /// - public static InvoiceSummary Get(this IInvoicesOperations operations, string billingAccountName, string billingProfileName, string invoiceName) + public static Invoice Get(this IInvoicesOperations operations, string billingAccountName, string billingProfileName, string invoiceName) { return operations.GetAsync(billingAccountName, billingProfileName, invoiceName).GetAwaiter().GetResult(); } @@ -157,7 +157,7 @@ public static InvoiceSummary Get(this IInvoicesOperations operations, string bil /// /// The cancellation token. /// - public static async Task GetAsync(this IInvoicesOperations operations, string billingAccountName, string billingProfileName, string invoiceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IInvoicesOperations operations, string billingAccountName, string billingProfileName, string invoiceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceName, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperations.cs new file mode 100644 index 000000000000..68d32a7ccb16 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperations.cs @@ -0,0 +1,446 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + 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; + + /// + /// LineOfCreditsOperations operations. + /// + internal partial class LineOfCreditsOperations : IServiceOperations, ILineOfCreditsOperations + { + /// + /// Initializes a new instance of the LineOfCreditsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal LineOfCreditsOperations(BillingManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the BillingManagementClient + /// + public BillingManagementClient Client { get; private set; } + + /// + /// Get the current line of credit. + /// + /// + /// 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(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, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default").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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Increase the current line of credit. + /// + /// + /// Parameters supplied to the increase line of credit operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(LineOfCredit parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Increase the current line of credit. + /// + /// + /// Parameters supplied to the increase line of credit 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> BeginUpdateWithHttpMessagesAsync(LineOfCredit parameters, 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"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("parameters", parameters); + 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}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default").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("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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperationsExtensions.cs new file mode 100644 index 000000000000..748cf35fc8fa --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/LineOfCreditsOperationsExtensions.cs @@ -0,0 +1,121 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for LineOfCreditsOperations. + /// + public static partial class LineOfCreditsOperationsExtensions + { + /// + /// Get the current line of credit. + /// + /// + /// The operations group for this extension method. + /// + public static LineOfCredit Get(this ILineOfCreditsOperations operations) + { + return operations.GetAsync().GetAwaiter().GetResult(); + } + + /// + /// Get the current line of credit. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ILineOfCreditsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Increase the current line of credit. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Parameters supplied to the increase line of credit operation. + /// + public static LineOfCredit Update(this ILineOfCreditsOperations operations, LineOfCredit parameters) + { + return operations.UpdateAsync(parameters).GetAwaiter().GetResult(); + } + + /// + /// Increase the current line of credit. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Parameters supplied to the increase line of credit operation. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this ILineOfCreditsOperations operations, LineOfCredit parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Increase the current line of credit. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Parameters supplied to the increase line of credit operation. + /// + public static LineOfCredit BeginUpdate(this ILineOfCreditsOperations operations, LineOfCredit parameters) + { + return operations.BeginUpdateAsync(parameters).GetAwaiter().GetResult(); + } + + /// + /// Increase the current line of credit. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Parameters supplied to the increase line of credit operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this ILineOfCreditsOperations operations, LineOfCredit parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Address.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AddressDetails.cs similarity index 86% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Address.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AddressDetails.cs index 1dc77e0f9a1a..82031e2a89f4 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Address.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AddressDetails.cs @@ -16,18 +16,18 @@ namespace Microsoft.Azure.Management.Billing.Models /// /// Address details. /// - public partial class Address + public partial class AddressDetails { /// - /// Initializes a new instance of the Address class. + /// Initializes a new instance of the AddressDetails class. /// - public Address() + public AddressDetails() { CustomInit(); } /// - /// Initializes a new instance of the Address class. + /// Initializes a new instance of the AddressDetails class. /// /// First Name. /// Last Name. @@ -40,7 +40,7 @@ public Address() /// Country code uses ISO2, 2-digit /// format. /// Address Postal Code. - public Address(string firstName = default(string), string lastName = default(string), string companyName = default(string), string addressLine1 = default(string), string addressLine2 = default(string), string addressLine3 = default(string), string city = default(string), string region = default(string), string country = default(string), string postalCode = default(string)) + public AddressDetails(string firstName = default(string), string lastName = default(string), string companyName = default(string), string addressLine1 = default(string), string addressLine2 = default(string), string addressLine3 = default(string), string city = default(string), string region = default(string), string country = default(string), string postalCode = default(string)) { FirstName = firstName; LastName = lastName; diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AddressValidationStatus.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AddressValidationStatus.cs new file mode 100644 index 000000000000..41d215933e7e --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AddressValidationStatus.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for AddressValidationStatus. + /// + public static class AddressValidationStatus + { + public const string Valid = "Valid"; + public const string Invalid = "Invalid"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AgreementType.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AgreementType.cs new file mode 100644 index 000000000000..69fd15d0737a --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AgreementType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for AgreementType. + /// + public static class AgreementType + { + public const string MicrosoftCustomerAgreement = "MicrosoftCustomerAgreement"; + public const string EnterpriseAgreement = "EnterpriseAgreement"; + public const string MicrosoftOnlineServicesProgram = "MicrosoftOnlineServicesProgram"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Amount.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Amount.cs index 49d2c7a5582b..c82d4c302b30 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Amount.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Amount.cs @@ -50,10 +50,10 @@ public Amount() public string Currency { get; private set; } /// - /// Gets amount value. + /// Gets or sets amount value. /// [JsonProperty(PropertyName = "value")] - public double? Value { get; private set; } + public double? Value { get; set; } } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/EnabledAzureSKUs.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AzurePlan.cs similarity index 75% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/EnabledAzureSKUs.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AzurePlan.cs index fae4b953ef60..0c6c4ae3a058 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/EnabledAzureSKUs.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/AzurePlan.cs @@ -14,24 +14,24 @@ namespace Microsoft.Azure.Management.Billing.Models using System.Linq; /// - /// Details about the enabled azure sku. + /// Details about the azure plan. /// - public partial class EnabledAzureSKUs + public partial class AzurePlan { /// - /// Initializes a new instance of the EnabledAzureSKUs class. + /// Initializes a new instance of the AzurePlan class. /// - public EnabledAzureSKUs() + public AzurePlan() { CustomInit(); } /// - /// Initializes a new instance of the EnabledAzureSKUs class. + /// Initializes a new instance of the AzurePlan class. /// /// The sku id. /// The sku description. - public EnabledAzureSKUs(string skuId = default(string), string skuDescription = default(string)) + public AzurePlan(string skuId = default(string), string skuDescription = default(string)) { SkuId = skuId; SkuDescription = skuDescription; @@ -44,10 +44,10 @@ public EnabledAzureSKUs() partial void CustomInit(); /// - /// Gets the sku id. + /// Gets or sets the sku id. /// [JsonProperty(PropertyName = "skuId")] - public string SkuId { get; private set; } + public string SkuId { get; set; } /// /// Gets the sku description. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccount.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccount.cs index 8a12514385a0..b45f714a6d00 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccount.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccount.cs @@ -38,15 +38,13 @@ public BillingAccount() /// Resource name. /// Resource type. /// The billing account name. - /// The billing account Type. Possible values - /// include: 'Organization', 'Enrollment' /// The address associated with billing /// account. - /// Company Name. - /// Country Name. - /// The invoice sections associated to - /// the billing account. By default this is not populated, unless it's - /// specified in $expand. + /// The type of agreement. Possible values + /// include: 'MicrosoftCustomerAgreement', 'EnterpriseAgreement', + /// 'MicrosoftOnlineServicesProgram' + /// The type of customer. Possible values + /// include: 'Enterprise', 'Individual', 'Partner' /// The billing profiles associated to /// the billing account. By default this is not populated, unless it's /// specified in $expand. @@ -57,22 +55,19 @@ public BillingAccount() /// enrollment. /// The accounts associated to the /// enrollment. - /// Specifies whether the user has read - /// access on billing account. - public BillingAccount(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string accountType = default(string), Address address = default(Address), string company = default(string), string country = default(string), IList invoiceSections = default(IList), IList billingProfiles = default(IList), Enrollment enrollmentDetails = default(Enrollment), IList departments = default(IList), IList enrollmentAccounts = default(IList), bool? hasReadAccess = default(bool?)) + /// Organization id. + public BillingAccount(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), AddressDetails address = default(AddressDetails), string agreementType = default(string), string customerType = default(string), IList billingProfiles = default(IList), Enrollment enrollmentDetails = default(Enrollment), IList departments = default(IList), IList enrollmentAccounts = default(IList), string organizationId = default(string)) : base(id, name, type) { DisplayName = displayName; - AccountType = accountType; Address = address; - Company = company; - Country = country; - InvoiceSections = invoiceSections; + AgreementType = agreementType; + CustomerType = customerType; BillingProfiles = billingProfiles; EnrollmentDetails = enrollmentDetails; Departments = departments; EnrollmentAccounts = enrollmentAccounts; - HasReadAccess = hasReadAccess; + OrganizationId = organizationId; CustomInit(); } @@ -87,38 +82,26 @@ public BillingAccount() [JsonProperty(PropertyName = "properties.displayName")] public string DisplayName { get; private set; } - /// - /// Gets the billing account Type. Possible values include: - /// 'Organization', 'Enrollment' - /// - [JsonProperty(PropertyName = "properties.accountType")] - public string AccountType { get; private set; } - /// /// Gets or sets the address associated with billing account. /// [JsonProperty(PropertyName = "properties.address")] - public Address Address { get; set; } + public AddressDetails Address { get; set; } /// - /// Gets company Name. + /// Gets the type of agreement. Possible values include: + /// 'MicrosoftCustomerAgreement', 'EnterpriseAgreement', + /// 'MicrosoftOnlineServicesProgram' /// - [JsonProperty(PropertyName = "properties.company")] - public string Company { get; private set; } + [JsonProperty(PropertyName = "properties.agreementType")] + public string AgreementType { get; private set; } /// - /// Gets country Name. - /// - [JsonProperty(PropertyName = "properties.country")] - public string Country { get; private set; } - - /// - /// Gets or sets the invoice sections associated to the billing - /// account. By default this is not populated, unless it's specified in - /// $expand. + /// Gets the type of customer. Possible values include: 'Enterprise', + /// 'Individual', 'Partner' /// - [JsonProperty(PropertyName = "properties.invoiceSections")] - public IList InvoiceSections { get; set; } + [JsonProperty(PropertyName = "properties.customerType")] + public string CustomerType { get; private set; } /// /// Gets or sets the billing profiles associated to the billing @@ -148,10 +131,10 @@ public BillingAccount() public IList EnrollmentAccounts { get; set; } /// - /// Gets specifies whether the user has read access on billing account. + /// Gets organization id. /// - [JsonProperty(PropertyName = "properties.hasReadAccess")] - public bool? HasReadAccess { get; private set; } + [JsonProperty(PropertyName = "properties.organizationId")] + public string OrganizationId { get; private set; } } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccountUpdateRequest.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccountUpdateRequest.cs new file mode 100644 index 000000000000..5caf62f1da02 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingAccountUpdateRequest.cs @@ -0,0 +1,138 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The request properties of the billing account that can be updated. + /// + [Rest.Serialization.JsonTransformation] + public partial class BillingAccountUpdateRequest + { + /// + /// Initializes a new instance of the BillingAccountUpdateRequest + /// class. + /// + public BillingAccountUpdateRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BillingAccountUpdateRequest + /// class. + /// + /// The billing account name. + /// The address associated with billing + /// account. + /// The type of agreement. Possible values + /// include: 'MicrosoftCustomerAgreement', 'EnterpriseAgreement', + /// 'MicrosoftOnlineServicesProgram' + /// The type of customer. Possible values + /// include: 'Enterprise', 'Individual', 'Partner' + /// The billing profiles associated to + /// the billing account. By default this is not populated, unless it's + /// specified in $expand. + /// The details about the associated + /// legacy enrollment. By default this is not populated, unless it's + /// specified in $expand. + /// The departments associated to the + /// enrollment. + /// The accounts associated to the + /// enrollment. + /// Organization id. + public BillingAccountUpdateRequest(string displayName = default(string), AddressDetails address = default(AddressDetails), string agreementType = default(string), string customerType = default(string), IList billingProfiles = default(IList), Enrollment enrollmentDetails = default(Enrollment), IList departments = default(IList), IList enrollmentAccounts = default(IList), string organizationId = default(string)) + { + DisplayName = displayName; + Address = address; + AgreementType = agreementType; + CustomerType = customerType; + BillingProfiles = billingProfiles; + EnrollmentDetails = enrollmentDetails; + Departments = departments; + EnrollmentAccounts = enrollmentAccounts; + OrganizationId = organizationId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the billing account name. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; private set; } + + /// + /// Gets or sets the address associated with billing account. + /// + [JsonProperty(PropertyName = "properties.address")] + public AddressDetails Address { get; set; } + + /// + /// Gets the type of agreement. Possible values include: + /// 'MicrosoftCustomerAgreement', 'EnterpriseAgreement', + /// 'MicrosoftOnlineServicesProgram' + /// + [JsonProperty(PropertyName = "properties.agreementType")] + public string AgreementType { get; private set; } + + /// + /// Gets the type of customer. Possible values include: 'Enterprise', + /// 'Individual', 'Partner' + /// + [JsonProperty(PropertyName = "properties.customerType")] + public string CustomerType { get; private set; } + + /// + /// Gets or sets the billing profiles associated to the billing + /// account. By default this is not populated, unless it's specified in + /// $expand. + /// + [JsonProperty(PropertyName = "properties.billingProfiles")] + public IList BillingProfiles { get; set; } + + /// + /// Gets the details about the associated legacy enrollment. By default + /// this is not populated, unless it's specified in $expand. + /// + [JsonProperty(PropertyName = "properties.enrollmentDetails")] + public Enrollment EnrollmentDetails { get; private set; } + + /// + /// Gets or sets the departments associated to the enrollment. + /// + [JsonProperty(PropertyName = "properties.departments")] + public IList Departments { get; set; } + + /// + /// Gets or sets the accounts associated to the enrollment. + /// + [JsonProperty(PropertyName = "properties.enrollmentAccounts")] + public IList EnrollmentAccounts { get; set; } + + /// + /// Gets organization id. + /// + [JsonProperty(PropertyName = "properties.organizationId")] + public string OrganizationId { get; private set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingPermissionsListResult.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingPermissionsListResult.cs index 38424b54e002..a1408e2c7373 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingPermissionsListResult.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingPermissionsListResult.cs @@ -33,7 +33,7 @@ public BillingPermissionsListResult() /// Initializes a new instance of the BillingPermissionsListResult /// class. /// - /// The list OF billingPermissions a caller has on + /// The list of billingPermissions a caller has on /// a billing account. public BillingPermissionsListResult(IList value = default(IList)) { @@ -47,7 +47,7 @@ public BillingPermissionsListResult() partial void CustomInit(); /// - /// Gets the list OF billingPermissions a caller has on a billing + /// Gets the list of billingPermissions a caller has on a billing /// account. /// [JsonProperty(PropertyName = "value")] diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs index 04f9ea67f8c2..2dc671dc0b30 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs @@ -42,26 +42,23 @@ public BillingProfile() /// Billing address. /// If the billing profile is opted in /// to receive invoices via email. - /// Is OMS bootstrapped billing - /// profile. /// Invoice day. /// The currency associated with the billing /// profile. - /// Information about the - /// product. + /// Information about the enabled azure + /// plans. /// The invoice sections associated to /// the billing profile. - public BillingProfile(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string poNumber = default(string), Address address = default(Address), bool? invoiceEmailOptIn = default(bool?), bool? isClassic = default(bool?), int? invoiceDay = default(int?), string currency = default(string), IList enabledAzureSKUs = default(IList), IList invoiceSections = default(IList)) + public BillingProfile(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string poNumber = default(string), AddressDetails address = default(AddressDetails), bool? invoiceEmailOptIn = default(bool?), int? invoiceDay = default(int?), string currency = default(string), IList enabledAzurePlans = default(IList), IList invoiceSections = default(IList)) : base(id, name, type) { DisplayName = displayName; PoNumber = poNumber; Address = address; InvoiceEmailOptIn = invoiceEmailOptIn; - IsClassic = isClassic; InvoiceDay = invoiceDay; Currency = currency; - EnabledAzureSKUs = enabledAzureSKUs; + EnabledAzurePlans = enabledAzurePlans; InvoiceSections = invoiceSections; CustomInit(); } @@ -87,7 +84,7 @@ public BillingProfile() /// Gets or sets billing address. /// [JsonProperty(PropertyName = "properties.address")] - public Address Address { get; set; } + public AddressDetails Address { get; set; } /// /// Gets if the billing profile is opted in to receive invoices via @@ -96,12 +93,6 @@ public BillingProfile() [JsonProperty(PropertyName = "properties.invoiceEmailOptIn")] public bool? InvoiceEmailOptIn { get; private set; } - /// - /// Gets is OMS bootstrapped billing profile. - /// - [JsonProperty(PropertyName = "properties.isClassic")] - public bool? IsClassic { get; private set; } - /// /// Gets invoice day. /// @@ -115,10 +106,10 @@ public BillingProfile() public string Currency { get; private set; } /// - /// Gets or sets information about the product. + /// Gets or sets information about the enabled azure plans. /// - [JsonProperty(PropertyName = "properties.enabledAzureSKUs")] - public IList EnabledAzureSKUs { get; set; } + [JsonProperty(PropertyName = "properties.enabledAzurePlans")] + public IList EnabledAzurePlans { get; set; } /// /// Gets or sets the invoice sections associated to the billing diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfileCreationRequest.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfileCreationRequest.cs new file mode 100644 index 000000000000..3286aade2336 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfileCreationRequest.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The request parameters for creating a new billing profile. + /// + public partial class BillingProfileCreationRequest + { + /// + /// Initializes a new instance of the BillingProfileCreationRequest + /// class. + /// + public BillingProfileCreationRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BillingProfileCreationRequest + /// class. + /// + /// The billing profile name. + /// Purchase order number. + /// Billing address. + /// If the billing profile is opted in + /// to receive invoices via email. + /// Enabled azure plans for this + /// billing profile. + public BillingProfileCreationRequest(string displayName = default(string), string poNumber = default(string), AddressDetails address = default(AddressDetails), bool? invoiceEmailOptIn = default(bool?), IList enabledAzurePlans = default(IList)) + { + DisplayName = displayName; + PoNumber = poNumber; + Address = address; + InvoiceEmailOptIn = invoiceEmailOptIn; + EnabledAzurePlans = enabledAzurePlans; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the billing profile name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets purchase order number. + /// + [JsonProperty(PropertyName = "poNumber")] + public string PoNumber { get; set; } + + /// + /// Gets or sets billing address. + /// + [JsonProperty(PropertyName = "address")] + public AddressDetails Address { get; set; } + + /// + /// Gets or sets if the billing profile is opted in to receive invoices + /// via email. + /// + [JsonProperty(PropertyName = "invoiceEmailOptIn")] + public bool? InvoiceEmailOptIn { get; set; } + + /// + /// Gets or sets enabled azure plans for this billing profile. + /// + [JsonProperty(PropertyName = "enabledAzurePlans")] + public IList EnabledAzurePlans { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfilesCreateHeaders.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfilesCreateHeaders.cs new file mode 100644 index 000000000000..c5888737ec7d --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfilesCreateHeaders.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Create operation. + /// + public partial class BillingProfilesCreateHeaders + { + /// + /// Initializes a new instance of the BillingProfilesCreateHeaders + /// class. + /// + public BillingProfilesCreateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BillingProfilesCreateHeaders + /// class. + /// + /// Location URI to poll for result + /// Recommends the retryable time after + /// receiving this. + public BillingProfilesCreateHeaders(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets location URI to poll for result + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets recommends the retryable time after receiving this. + /// + [JsonProperty(PropertyName = "Retry-After")] + public int? RetryAfter { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProperty.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProperty.cs index 899f2827f887..088d08242916 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProperty.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProperty.cs @@ -37,27 +37,30 @@ public BillingProperty() /// Resource type. /// Billing tenant Id. /// Billing account Id. - /// Billing account name. + /// Billing account display + /// name. /// Billing profile Id. - /// Billing profile name. + /// Billing profile display + /// name. /// Cost center name. /// Invoice Section Id. - /// Invoice Section name. + /// Invoice Section display + /// name. /// Product Id. /// Product name. /// SKU Id. /// SKU description. - public BillingProperty(string id = default(string), string name = default(string), string type = default(string), string billingTenantId = default(string), string billingAccountId = default(string), string billingAccountName = default(string), string billingProfileId = default(string), string billingProfileName = default(string), string costCenter = default(string), string invoiceSectionId = default(string), string invoiceSectionName = default(string), string productId = default(string), string productName = default(string), string skuId = default(string), string skuDescription = default(string)) + public BillingProperty(string id = default(string), string name = default(string), string type = default(string), string billingTenantId = default(string), string billingAccountId = default(string), string billingAccountDisplayName = default(string), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string costCenter = default(string), string invoiceSectionId = default(string), string invoiceSectionDisplayName = default(string), string productId = default(string), string productName = default(string), string skuId = default(string), string skuDescription = default(string)) : base(id, name, type) { BillingTenantId = billingTenantId; BillingAccountId = billingAccountId; - BillingAccountName = billingAccountName; + BillingAccountDisplayName = billingAccountDisplayName; BillingProfileId = billingProfileId; - BillingProfileName = billingProfileName; + BillingProfileDisplayName = billingProfileDisplayName; CostCenter = costCenter; InvoiceSectionId = invoiceSectionId; - InvoiceSectionName = invoiceSectionName; + InvoiceSectionDisplayName = invoiceSectionDisplayName; ProductId = productId; ProductName = productName; SkuId = skuId; @@ -83,10 +86,10 @@ public BillingProperty() public string BillingAccountId { get; private set; } /// - /// Gets billing account name. + /// Gets billing account display name. /// - [JsonProperty(PropertyName = "properties.billingAccountName")] - public string BillingAccountName { get; private set; } + [JsonProperty(PropertyName = "properties.billingAccountDisplayName")] + public string BillingAccountDisplayName { get; private set; } /// /// Gets billing profile Id. @@ -95,10 +98,10 @@ public BillingProperty() public string BillingProfileId { get; private set; } /// - /// Gets billing profile name. + /// Gets billing profile display name. /// - [JsonProperty(PropertyName = "properties.billingProfileName")] - public string BillingProfileName { get; private set; } + [JsonProperty(PropertyName = "properties.billingProfileDisplayName")] + public string BillingProfileDisplayName { get; private set; } /// /// Gets cost center name. @@ -113,10 +116,10 @@ public BillingProperty() public string InvoiceSectionId { get; private set; } /// - /// Gets invoice Section name. + /// Gets invoice Section display name. /// - [JsonProperty(PropertyName = "properties.invoiceSectionName")] - public string InvoiceSectionName { get; private set; } + [JsonProperty(PropertyName = "properties.invoiceSectionDisplayName")] + public string InvoiceSectionDisplayName { get; private set; } /// /// Gets product Id. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleAssignmentPayload.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleAssignmentPayload.cs index 9fc63badaf94..74d64a4af330 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleAssignmentPayload.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleAssignmentPayload.cs @@ -33,12 +33,12 @@ public BillingRoleAssignmentPayload() /// /// The user's principal id that the role /// gets assigned to - /// The role definition + /// The role definition /// id - public BillingRoleAssignmentPayload(string principalId = default(string), string billingRoleDefinitionName = default(string)) + public BillingRoleAssignmentPayload(string principalId = default(string), string billingRoleDefinitionId = default(string)) { PrincipalId = principalId; - BillingRoleDefinitionName = billingRoleDefinitionName; + BillingRoleDefinitionId = billingRoleDefinitionId; CustomInit(); } @@ -48,16 +48,16 @@ public BillingRoleAssignmentPayload() partial void CustomInit(); /// - /// Gets the user's principal id that the role gets assigned to + /// Gets or sets the user's principal id that the role gets assigned to /// [JsonProperty(PropertyName = "principalId")] - public string PrincipalId { get; private set; } + public string PrincipalId { get; set; } /// - /// Gets the role definition id + /// Gets or sets the role definition id /// - [JsonProperty(PropertyName = "billingRoleDefinitionName")] - public string BillingRoleDefinitionName { get; private set; } + [JsonProperty(PropertyName = "billingRoleDefinitionId")] + public string BillingRoleDefinitionId { get; set; } } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleDefinition.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleDefinition.cs index 1ab8f7a72fef..1d8e57c0f051 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleDefinition.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRoleDefinition.cs @@ -38,7 +38,7 @@ public BillingRoleDefinition() /// Resource name. /// Resource type. /// The role description - /// The list OF billingPermissions a caller has on + /// The list of billingPermissions a caller has on /// a billing account. /// The name of the role public BillingRoleDefinition(string id = default(string), string name = default(string), string type = default(string), string description = default(string), IList value = default(IList), string roleName = default(string)) @@ -62,7 +62,7 @@ public BillingRoleDefinition() public string Description { get; private set; } /// - /// Gets the list OF billingPermissions a caller has on a billing + /// Gets the list of billingPermissions a caller has on a billing /// account. /// [JsonProperty(PropertyName = "properties.permissions.value")] diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionSummary.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscription.cs similarity index 62% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionSummary.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscription.cs index af34cba8b4b7..0d8e1dc1a2cc 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionSummary.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscription.cs @@ -16,21 +16,21 @@ namespace Microsoft.Azure.Management.Billing.Models using System.Linq; /// - /// A billing Subscription summary resource. + /// A billing Subscription resource. /// [Rest.Serialization.JsonTransformation] - public partial class BillingSubscriptionSummary : Resource + public partial class BillingSubscription : Resource { /// - /// Initializes a new instance of the BillingSubscriptionSummary class. + /// Initializes a new instance of the BillingSubscription class. /// - public BillingSubscriptionSummary() + public BillingSubscription() { CustomInit(); } /// - /// Initializes a new instance of the BillingSubscriptionSummary class. + /// Initializes a new instance of the BillingSubscription class. /// /// Resource Id. /// Resource name. @@ -44,15 +44,20 @@ public BillingSubscriptionSummary() /// Month to date charges. /// Billing Profile id to which this /// product belongs. - /// Billing Profile name to which this - /// product belongs. + /// Billing Profile display + /// name to which this product belongs. + /// Customer id to which this product + /// belongs. + /// Display name of customer to which + /// this product belongs. /// Invoice section id to which this /// product belongs. - /// Invoice section name to which this - /// product belongs. + /// Invoice section display + /// name to which this product belongs. + /// Reseller for this subscription. /// The sku id. /// The sku description. - public BillingSubscriptionSummary(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), System.Guid? subscriptionId = default(System.Guid?), string subscriptionBillingStatus = default(string), Amount lastMonthCharges = default(Amount), Amount monthToDateCharges = default(Amount), string billingProfileId = default(string), string billingProfileName = default(string), string invoiceSectionId = default(string), string invoiceSectionName = default(string), string skuId = default(string), string skuDescription = default(string)) + public BillingSubscription(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), System.Guid? subscriptionId = default(System.Guid?), string subscriptionBillingStatus = default(string), Amount lastMonthCharges = default(Amount), Amount monthToDateCharges = default(Amount), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string customerId = default(string), string customerDisplayName = default(string), string invoiceSectionId = default(string), string invoiceSectionDisplayName = default(string), Reseller reseller = default(Reseller), string skuId = default(string), string skuDescription = default(string)) : base(id, name, type) { DisplayName = displayName; @@ -61,9 +66,12 @@ public BillingSubscriptionSummary() LastMonthCharges = lastMonthCharges; MonthToDateCharges = monthToDateCharges; BillingProfileId = billingProfileId; - BillingProfileName = billingProfileName; + BillingProfileDisplayName = billingProfileDisplayName; + CustomerId = customerId; + CustomerDisplayName = customerDisplayName; InvoiceSectionId = invoiceSectionId; - InvoiceSectionName = invoiceSectionName; + InvoiceSectionDisplayName = invoiceSectionDisplayName; + Reseller = reseller; SkuId = skuId; SkuDescription = skuDescription; CustomInit(); @@ -112,10 +120,22 @@ public BillingSubscriptionSummary() public string BillingProfileId { get; private set; } /// - /// Gets billing Profile name to which this product belongs. + /// Gets billing Profile display name to which this product belongs. + /// + [JsonProperty(PropertyName = "properties.billingProfileDisplayName")] + public string BillingProfileDisplayName { get; private set; } + + /// + /// Gets customer id to which this product belongs. /// - [JsonProperty(PropertyName = "properties.billingProfileName")] - public string BillingProfileName { get; private set; } + [JsonProperty(PropertyName = "properties.customerId")] + public string CustomerId { get; private set; } + + /// + /// Gets display name of customer to which this product belongs. + /// + [JsonProperty(PropertyName = "properties.customerDisplayName")] + public string CustomerDisplayName { get; private set; } /// /// Gets invoice section id to which this product belongs. @@ -124,10 +144,16 @@ public BillingSubscriptionSummary() public string InvoiceSectionId { get; private set; } /// - /// Gets invoice section name to which this product belongs. + /// Gets invoice section display name to which this product belongs. + /// + [JsonProperty(PropertyName = "properties.invoiceSectionDisplayName")] + public string InvoiceSectionDisplayName { get; private set; } + + /// + /// Gets reseller for this subscription. /// - [JsonProperty(PropertyName = "properties.invoiceSectionName")] - public string InvoiceSectionName { get; private set; } + [JsonProperty(PropertyName = "properties.reseller")] + public Reseller Reseller { get; private set; } /// /// Gets or sets the sku id. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs index 4b5829c166b0..65f02e801fef 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Billing.Models using System.Linq; /// - /// Result of listing billing subscriptions summary. + /// Result of listing billing subscriptions. /// public partial class BillingSubscriptionsListResult { @@ -33,11 +33,10 @@ public BillingSubscriptionsListResult() /// Initializes a new instance of the BillingSubscriptionsListResult /// class. /// - /// The list of billing subscriptions - /// summary. + /// The list of billing subscriptions. /// The link (url) to the next page of /// results. - public BillingSubscriptionsListResult(IList value = default(IList), string nextLink = default(string)) + public BillingSubscriptionsListResult(IList value = default(IList), string nextLink = default(string)) { Value = value; NextLink = nextLink; @@ -50,10 +49,10 @@ public BillingSubscriptionsListResult() partial void CustomInit(); /// - /// Gets the list of billing subscriptions summary. + /// Gets the list of billing subscriptions. /// [JsonProperty(PropertyName = "value")] - public IList Value { get; private set; } + public IList Value { get; private set; } /// /// Gets the link (url) to the next page of results. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsTransferHeaders.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsTransferHeaders.cs index 582e08544f7f..253d7ba5b08d 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsTransferHeaders.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingSubscriptionsTransferHeaders.cs @@ -34,13 +34,10 @@ public BillingSubscriptionsTransferHeaders() /// Location URI to poll for result. /// Recommends the retryable time after /// receiving this. - /// URI to poll for the operation - /// status - public BillingSubscriptionsTransferHeaders(string location = default(string), int? retryAfter = default(int?), string azureAsyncOperation = default(string)) + public BillingSubscriptionsTransferHeaders(string location = default(string), int? retryAfter = default(int?)) { Location = location; RetryAfter = retryAfter; - AzureAsyncOperation = azureAsyncOperation; CustomInit(); } @@ -61,11 +58,5 @@ public BillingSubscriptionsTransferHeaders() [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } - /// - /// Gets or sets URI to poll for the operation status - /// - [JsonProperty(PropertyName = "Azure-AsyncOperation")] - public string AzureAsyncOperation { get; set; } - } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Customer.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Customer.cs new file mode 100644 index 000000000000..89c7ab63b4cf --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Customer.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A partner's customer. + /// + [Rest.Serialization.JsonTransformation] + public partial class Customer : Resource + { + /// + /// Initializes a new instance of the Customer class. + /// + public Customer() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Customer class. + /// + /// Resource Id. + /// Resource name. + /// Resource type. + /// The name of the customer. + /// Information about the + /// product. + /// The resellers which are allowed to provide + /// service to this customer. + public Customer(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), IList enabledAzurePlans = default(IList), IList resellers = default(IList)) + : base(id, name, type) + { + DisplayName = displayName; + EnabledAzurePlans = enabledAzurePlans; + Resellers = resellers; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the customer. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets information about the product. + /// + [JsonProperty(PropertyName = "properties.enabledAzurePlans")] + public IList EnabledAzurePlans { get; set; } + + /// + /// Gets or sets the resellers which are allowed to provide service to + /// this customer. + /// + [JsonProperty(PropertyName = "properties.resellers")] + public IList Resellers { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/CustomerType.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/CustomerType.cs new file mode 100644 index 000000000000..f3aa34eb0848 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/CustomerType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for CustomerType. + /// + public static class CustomerType + { + public const string Enterprise = "Enterprise"; + public const string Individual = "Individual"; + public const string Partner = "Partner"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/DownloadProperties.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Document.cs similarity index 83% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/DownloadProperties.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Document.cs index f91a65dcf1cb..36f973b7dd43 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/DownloadProperties.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Document.cs @@ -16,23 +16,23 @@ namespace Microsoft.Azure.Management.Billing.Models /// /// The properties of the invoice download. /// - public partial class DownloadProperties + public partial class Document { /// - /// Initializes a new instance of the DownloadProperties class. + /// Initializes a new instance of the Document class. /// - public DownloadProperties() + public Document() { CustomInit(); } /// - /// Initializes a new instance of the DownloadProperties class. + /// Initializes a new instance of the Document class. /// /// Document type. Possible values include: /// 'Invoice', 'VoidNote', 'Receipt', 'CreditNote' /// Document URL. - public DownloadProperties(string kind = default(string), string url = default(string)) + public Document(string kind = default(string), string url = default(string)) { Kind = kind; Url = url; diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/DocumentType.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/DocumentType.cs new file mode 100644 index 000000000000..6a75ed670068 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/DocumentType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for DocumentType. + /// + public static class DocumentType + { + public const string Invoice = "Invoice"; + public const string VoidNote = "VoidNote"; + public const string Receipt = "Receipt"; + public const string CreditNote = "CreditNote"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InitiateTransferRequest.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InitiateTransferRequest.cs index a16b7c341e08..00b981362f05 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InitiateTransferRequest.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InitiateTransferRequest.cs @@ -32,14 +32,13 @@ public InitiateTransferRequest() /// /// Initializes a new instance of the InitiateTransferRequest class. /// - /// Target Usage context for devTest - /// subscriptions. /// Email Id of recipient for /// transfer. - public InitiateTransferRequest(string billingProfileId = default(string), string recipientEmailId = default(string)) + /// Optional reseller Id for transfer. + public InitiateTransferRequest(string recipientEmailId = default(string), string resellerId = default(string)) { - BillingProfileId = billingProfileId; RecipientEmailId = recipientEmailId; + ResellerId = resellerId; CustomInit(); } @@ -48,17 +47,17 @@ public InitiateTransferRequest() /// partial void CustomInit(); - /// - /// Gets or sets target Usage context for devTest subscriptions. - /// - [JsonProperty(PropertyName = "properties.billingProfileId")] - public string BillingProfileId { get; set; } - /// /// Gets or sets email Id of recipient for transfer. /// [JsonProperty(PropertyName = "properties.recipientEmailId")] public string RecipientEmailId { get; set; } + /// + /// Gets or sets optional reseller Id for transfer. + /// + [JsonProperty(PropertyName = "properties.resellerId")] + public string ResellerId { get; set; } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSummary.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Invoice.cs similarity index 73% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSummary.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Invoice.cs index ffd2e631cc45..21725e4db657 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSummary.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Invoice.cs @@ -21,18 +21,18 @@ namespace Microsoft.Azure.Management.Billing.Models /// An invoice resource. /// [Rest.Serialization.JsonTransformation] - public partial class InvoiceSummary : Resource + public partial class Invoice : Resource { /// - /// Initializes a new instance of the InvoiceSummary class. + /// Initializes a new instance of the Invoice class. /// - public InvoiceSummary() + public Invoice() { CustomInit(); } /// - /// Initializes a new instance of the InvoiceSummary class. + /// Initializes a new instance of the Invoice class. /// /// Resource Id. /// Resource name. @@ -50,14 +50,14 @@ public InvoiceSummary() /// period. /// The billing profile id this invoice /// belongs to. - /// The profile name this invoice - /// belongs to. + /// The billing profile display + /// name this invoice belongs to. /// The purchase identifier for the /// invoice. - /// List of document urls available to - /// download including invoice and tax documents. + /// List of documents available to download + /// including invoice and tax documents. /// List of payments. - public InvoiceSummary(string id = default(string), string name = default(string), string type = default(string), System.DateTime? dueDate = default(System.DateTime?), System.DateTime? invoiceDate = default(System.DateTime?), string status = default(string), Amount amountDue = default(Amount), Amount billedAmount = default(Amount), System.DateTime? invoicePeriodStartDate = default(System.DateTime?), System.DateTime? invoicePeriodEndDate = default(System.DateTime?), string billingProfileId = default(string), string billingProfileName = default(string), string purchaseOrderNumber = default(string), IList documentUrls = default(IList), IList payments = default(IList)) + public Invoice(string id = default(string), string name = default(string), string type = default(string), System.DateTime? dueDate = default(System.DateTime?), System.DateTime? invoiceDate = default(System.DateTime?), string status = default(string), Amount amountDue = default(Amount), Amount billedAmount = default(Amount), System.DateTime? invoicePeriodStartDate = default(System.DateTime?), System.DateTime? invoicePeriodEndDate = default(System.DateTime?), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string purchaseOrderNumber = default(string), IList documents = default(IList), IList payments = default(IList)) : base(id, name, type) { DueDate = dueDate; @@ -68,9 +68,9 @@ public InvoiceSummary() InvoicePeriodStartDate = invoicePeriodStartDate; InvoicePeriodEndDate = invoicePeriodEndDate; BillingProfileId = billingProfileId; - BillingProfileName = billingProfileName; + BillingProfileDisplayName = billingProfileDisplayName; PurchaseOrderNumber = purchaseOrderNumber; - DocumentUrls = documentUrls; + Documents = documents; Payments = payments; CustomInit(); } @@ -130,10 +130,10 @@ public InvoiceSummary() public string BillingProfileId { get; private set; } /// - /// Gets the profile name this invoice belongs to. + /// Gets the billing profile display name this invoice belongs to. /// - [JsonProperty(PropertyName = "properties.billingProfileName")] - public string BillingProfileName { get; private set; } + [JsonProperty(PropertyName = "properties.billingProfileDisplayName")] + public string BillingProfileDisplayName { get; private set; } /// /// Gets the purchase identifier for the invoice. @@ -142,11 +142,11 @@ public InvoiceSummary() public string PurchaseOrderNumber { get; private set; } /// - /// Gets list of document urls available to download including invoice - /// and tax documents. + /// Gets list of documents available to download including invoice and + /// tax documents. /// - [JsonProperty(PropertyName = "properties.documentUrls")] - public IList DocumentUrls { get; private set; } + [JsonProperty(PropertyName = "properties.documents")] + public IList Documents { get; private set; } /// /// Gets list of payments. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceListResult.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceListResult.cs index 3d3d9d8b41ae..29686c43e46f 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceListResult.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceListResult.cs @@ -34,7 +34,7 @@ public InvoiceListResult() /// The list of invoices. /// The link (url) to the next page of /// results. - public InvoiceListResult(IList value = default(IList), string nextLink = default(string)) + public InvoiceListResult(IList value = default(IList), string nextLink = default(string)) { Value = value; NextLink = nextLink; @@ -50,7 +50,7 @@ public InvoiceListResult() /// Gets the list of invoices. /// [JsonProperty(PropertyName = "value")] - public IList Value { get; private set; } + public IList Value { get; private set; } /// /// Gets the link (url) to the next page of results. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs index 2c83b9f016f6..7d0e4e64e6d7 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs @@ -13,8 +13,6 @@ namespace Microsoft.Azure.Management.Billing.Models using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -38,13 +36,10 @@ public InvoiceSection() /// Resource name. /// Resource type. /// The name of the InvoiceSection. - /// The billing profiles associated to - /// the billing account. - public InvoiceSection(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), IList billingProfiles = default(IList)) + public InvoiceSection(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string)) : base(id, name, type) { DisplayName = displayName; - BillingProfiles = billingProfiles; CustomInit(); } @@ -59,12 +54,5 @@ public InvoiceSection() [JsonProperty(PropertyName = "properties.displayName")] public string DisplayName { get; set; } - /// - /// Gets or sets the billing profiles associated to the billing - /// account. - /// - [JsonProperty(PropertyName = "properties.billingProfiles")] - public IList BillingProfiles { get; set; } - } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionProperties.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionCreationRequest.cs similarity index 57% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionProperties.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionCreationRequest.cs index 0d524e480a90..63666bada0da 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionProperties.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionCreationRequest.cs @@ -11,33 +11,30 @@ namespace Microsoft.Azure.Management.Billing.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// /// The properties of an InvoiceSection. /// - public partial class InvoiceSectionProperties + public partial class InvoiceSectionCreationRequest { /// - /// Initializes a new instance of the InvoiceSectionProperties class. + /// Initializes a new instance of the InvoiceSectionCreationRequest + /// class. /// - public InvoiceSectionProperties() + public InvoiceSectionCreationRequest() { CustomInit(); } /// - /// Initializes a new instance of the InvoiceSectionProperties class. + /// Initializes a new instance of the InvoiceSectionCreationRequest + /// class. /// /// The name of the InvoiceSection. - /// The billing profiles associated to - /// the billing account. - public InvoiceSectionProperties(string displayName = default(string), IList billingProfiles = default(IList)) + public InvoiceSectionCreationRequest(string displayName = default(string)) { DisplayName = displayName; - BillingProfiles = billingProfiles; CustomInit(); } @@ -52,12 +49,5 @@ public InvoiceSectionProperties() [JsonProperty(PropertyName = "displayName")] public string DisplayName { get; set; } - /// - /// Gets or sets the billing profiles associated to the billing - /// account. - /// - [JsonProperty(PropertyName = "billingProfiles")] - public IList BillingProfiles { get; set; } - } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionsCreateHeaders.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionsCreateHeaders.cs index 035ba83f811e..347073d3b7c4 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionsCreateHeaders.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionsCreateHeaders.cs @@ -34,13 +34,10 @@ public InvoiceSectionsCreateHeaders() /// Location URI to poll for result /// Recommends the retryable time after /// receiving this. - /// URI to poll for the operation - /// status - public InvoiceSectionsCreateHeaders(string location = default(string), int? retryAfter = default(int?), string azureAsyncOperation = default(string)) + public InvoiceSectionsCreateHeaders(string location = default(string), int? retryAfter = default(int?)) { Location = location; RetryAfter = retryAfter; - AzureAsyncOperation = azureAsyncOperation; CustomInit(); } @@ -61,11 +58,5 @@ public InvoiceSectionsCreateHeaders() [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } - /// - /// Gets or sets URI to poll for the operation status - /// - [JsonProperty(PropertyName = "Azure-AsyncOperation")] - public string AzureAsyncOperation { get; set; } - } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceStatus.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceStatus.cs new file mode 100644 index 000000000000..3ed93022c055 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceStatus.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for InvoiceStatus. + /// + public static class InvoiceStatus + { + public const string PastDue = "PastDue"; + public const string Due = "Due"; + public const string Paid = "Paid"; + public const string Void = "Void"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCredit.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCredit.cs new file mode 100644 index 000000000000..69722dbd5433 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCredit.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Line of credit resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class LineOfCredit : Resource + { + /// + /// Initializes a new instance of the LineOfCredit class. + /// + public LineOfCredit() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LineOfCredit class. + /// + /// Resource Id. + /// Resource name. + /// Resource type. + /// The current credit limit. + /// The reason for the line of credit status when + /// not approved. + /// Remaining balance. + /// The line of credit status. Possible values + /// include: 'Approved', 'Rejected' + public LineOfCredit(string id = default(string), string name = default(string), string type = default(string), Amount creditLimit = default(Amount), string reason = default(string), Amount remainingBalance = default(Amount), string status = default(string)) + : base(id, name, type) + { + CreditLimit = creditLimit; + Reason = reason; + RemainingBalance = remainingBalance; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the current credit limit. + /// + [JsonProperty(PropertyName = "properties.creditLimit")] + public Amount CreditLimit { get; set; } + + /// + /// Gets the reason for the line of credit status when not approved. + /// + [JsonProperty(PropertyName = "properties.reason")] + public string Reason { get; private set; } + + /// + /// Gets remaining balance. + /// + [JsonProperty(PropertyName = "properties.remainingBalance")] + public Amount RemainingBalance { get; private set; } + + /// + /// Gets or sets the line of credit status. Possible values include: + /// 'Approved', 'Rejected' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCreditsUpdateHeaders.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCreditsUpdateHeaders.cs new file mode 100644 index 000000000000..11328f1778e5 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/LineOfCreditsUpdateHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Update operation. + /// + public partial class LineOfCreditsUpdateHeaders + { + /// + /// Initializes a new instance of the LineOfCreditsUpdateHeaders class. + /// + public LineOfCreditsUpdateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LineOfCreditsUpdateHeaders class. + /// + /// Location URI to poll for result. + /// Recommends the retryable time after + /// receiving this. + public LineOfCreditsUpdateHeaders(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets location URI to poll for result. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets recommends the retryable time after receiving this. + /// + [JsonProperty(PropertyName = "Retry-After")] + public int? RetryAfter { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/MarketplacePurchasesPolicy.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/MarketplacePurchasesPolicy.cs new file mode 100644 index 000000000000..b9b51871a589 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/MarketplacePurchasesPolicy.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for MarketplacePurchasesPolicy. + /// + public static class MarketplacePurchasesPolicy + { + public const string AllAllowed = "AllAllowed"; + public const string FreeAllowed = "FreeAllowed"; + public const string NotAllowed = "NotAllowed"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/OperationStatus.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/OperationStatus.cs deleted file mode 100644 index 26a84a70ab38..000000000000 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/OperationStatus.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Billing.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// status of the Billing POST/PUT operation. - /// - public partial class OperationStatus - { - /// - /// Initializes a new instance of the OperationStatus class. - /// - public OperationStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the OperationStatus class. - /// - /// The operation Id. - /// Status of the pending operation - /// Status Detail of the pending - /// operation - public OperationStatus(string id = default(string), string status = default(string), string statusDetail = default(string)) - { - Id = id; - Status = status; - StatusDetail = statusDetail; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the operation Id. - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - /// - /// Gets or sets status of the pending operation - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets status Detail of the pending operation - /// - [JsonProperty(PropertyName = "statusDetail")] - public string StatusDetail { get; set; } - - } -} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PaymentMethod.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PaymentMethod.cs index 5cf71f943c91..02fb87d8c3d0 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PaymentMethod.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PaymentMethod.cs @@ -38,10 +38,10 @@ public PaymentMethod() /// Payment method type. Possible /// values include: 'Credits', 'ChequeWire' /// Details about the payment method. - /// Expiration date. + /// Expiration month and year. /// The currency associated with the payment /// method. - public PaymentMethod(string id = default(string), string name = default(string), string type = default(string), string paymentMethodType = default(string), string details = default(string), System.DateTime? expiration = default(System.DateTime?), string currency = default(string)) + public PaymentMethod(string id = default(string), string name = default(string), string type = default(string), string paymentMethodType = default(string), string details = default(string), string expiration = default(string), string currency = default(string)) : base(id, name, type) { PaymentMethodType = paymentMethodType; @@ -70,10 +70,10 @@ public PaymentMethod() public string Details { get; private set; } /// - /// Gets expiration date. + /// Gets expiration month and year. /// [JsonProperty(PropertyName = "properties.expiration")] - public System.DateTime? Expiration { get; private set; } + public string Expiration { get; private set; } /// /// Gets the currency associated with the payment method. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Policy.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Policy.cs index 1e3f633436fe..85de382160ac 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Policy.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Policy.cs @@ -35,18 +35,20 @@ public Policy() /// Resource Id. /// Resource name. /// Resource type. - /// The - /// marketplacePurchasesAllowed flag. - /// The - /// reservationPurchasesAllowed flag. - /// The - /// subscriptionOwnerCanViewCharges flag. - public Policy(string id = default(string), string name = default(string), string type = default(string), bool? marketplacePurchasesAllowed = default(bool?), bool? reservationPurchasesAllowed = default(bool?), bool? subscriptionOwnerCanViewCharges = default(bool?)) + /// The marketplace purchases are + /// free, allowed or not allowed. Possible values include: + /// 'AllAllowed', 'FreeAllowed', 'NotAllowed' + /// The reservation purchases + /// allowed or not. Possible values include: 'Allowed', + /// 'NotAllowed' + /// Who can view charges. Possible values + /// include: 'None', 'SubscriptionOwner' + public Policy(string id = default(string), string name = default(string), string type = default(string), string marketplacePurchases = default(string), string reservationPurchases = default(string), string viewCharges = default(string)) : base(id, name, type) { - MarketplacePurchasesAllowed = marketplacePurchasesAllowed; - ReservationPurchasesAllowed = reservationPurchasesAllowed; - SubscriptionOwnerCanViewCharges = subscriptionOwnerCanViewCharges; + MarketplacePurchases = marketplacePurchases; + ReservationPurchases = reservationPurchases; + ViewCharges = viewCharges; CustomInit(); } @@ -56,22 +58,26 @@ public Policy() partial void CustomInit(); /// - /// Gets or sets the marketplacePurchasesAllowed flag. + /// Gets or sets the marketplace purchases are free, allowed or not + /// allowed. Possible values include: 'AllAllowed', 'FreeAllowed', + /// 'NotAllowed' /// - [JsonProperty(PropertyName = "properties.marketplacePurchasesAllowed")] - public bool? MarketplacePurchasesAllowed { get; set; } + [JsonProperty(PropertyName = "properties.marketplacePurchases")] + public string MarketplacePurchases { get; set; } /// - /// Gets or sets the reservationPurchasesAllowed flag. + /// Gets or sets the reservation purchases allowed or not. Possible + /// values include: 'Allowed', 'NotAllowed' /// - [JsonProperty(PropertyName = "properties.reservationPurchasesAllowed")] - public bool? ReservationPurchasesAllowed { get; set; } + [JsonProperty(PropertyName = "properties.reservationPurchases")] + public string ReservationPurchases { get; set; } /// - /// Gets or sets the subscriptionOwnerCanViewCharges flag. + /// Gets or sets who can view charges. Possible values include: 'None', + /// 'SubscriptionOwner' /// - [JsonProperty(PropertyName = "properties.subscriptionOwnerCanViewCharges")] - public bool? SubscriptionOwnerCanViewCharges { get; set; } + [JsonProperty(PropertyName = "properties.viewCharges")] + public string ViewCharges { get; set; } } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadByBillingProfileHeaders.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadByBillingProfileHeaders.cs new file mode 100644 index 000000000000..47a7dd2a5b11 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadByBillingProfileHeaders.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for DownloadByBillingProfile operation. + /// + public partial class PriceSheetDownloadByBillingProfileHeaders + { + /// + /// Initializes a new instance of the + /// PriceSheetDownloadByBillingProfileHeaders class. + /// + public PriceSheetDownloadByBillingProfileHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// PriceSheetDownloadByBillingProfileHeaders class. + /// + /// GET this URL to retrieve the status of the + /// asynchronous operation. + /// The amount of delay to use while the + /// status of the operation is checked. The value is expressed in + /// seconds. + /// The operation entity Id GUID. + public PriceSheetDownloadByBillingProfileHeaders(string location = default(string), string retryAfter = default(string), string oDataEntityId = default(string)) + { + Location = location; + RetryAfter = retryAfter; + ODataEntityId = oDataEntityId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets GET this URL to retrieve the status of the + /// asynchronous operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets the amount of delay to use while the status of the + /// operation is checked. The value is expressed in seconds. + /// + [JsonProperty(PropertyName = "Retry-After")] + public string RetryAfter { get; set; } + + /// + /// Gets or sets the operation entity Id GUID. + /// + [JsonProperty(PropertyName = "OData-EntityId")] + public string ODataEntityId { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadHeaders.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadHeaders.cs index d01435a680a8..29f758def14c 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadHeaders.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/PriceSheetDownloadHeaders.cs @@ -34,15 +34,11 @@ public PriceSheetDownloadHeaders() /// The amount of delay to use while the /// status of the operation is checked. The value is expressed in /// seconds. - /// To get the progress of the - /// operation, call GET operation on the URL in Azure-AsyncOperation - /// header field. /// The operation entity Id GUID. - public PriceSheetDownloadHeaders(string location = default(string), string retryAfter = default(string), string azureAsyncOperation = default(string), string oDataEntityId = default(string)) + public PriceSheetDownloadHeaders(string location = default(string), string retryAfter = default(string), string oDataEntityId = default(string)) { Location = location; RetryAfter = retryAfter; - AzureAsyncOperation = azureAsyncOperation; ODataEntityId = oDataEntityId; CustomInit(); } @@ -66,13 +62,6 @@ public PriceSheetDownloadHeaders() [JsonProperty(PropertyName = "Retry-After")] public string RetryAfter { get; set; } - /// - /// Gets or sets to get the progress of the operation, call GET - /// operation on the URL in Azure-AsyncOperation header field. - /// - [JsonProperty(PropertyName = "Azure-AsyncOperation")] - public string AzureAsyncOperation { get; set; } - /// /// Gets or sets the operation entity Id GUID. /// diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductSummary.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Product.cs similarity index 70% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductSummary.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Product.cs index 7b824db3a0c1..4b60b0b0a8e9 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductSummary.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Product.cs @@ -16,21 +16,21 @@ namespace Microsoft.Azure.Management.Billing.Models using System.Linq; /// - /// A product summary resource. + /// A product resource. /// [Rest.Serialization.JsonTransformation] - public partial class ProductSummary : Resource + public partial class Product : Resource { /// - /// Initializes a new instance of the ProductSummary class. + /// Initializes a new instance of the Product class. /// - public ProductSummary() + public Product() { CustomInit(); } /// - /// Initializes a new instance of the ProductSummary class. + /// Initializes a new instance of the Product class. /// /// Resource Id. /// Resource name. @@ -54,13 +54,17 @@ public ProductSummary() /// Parent Product Id. /// Invoice section id to which this /// product belongs. - /// Invoice section name to which this - /// product belongs. + /// Invoice section display + /// name to which this product belongs. /// Billing Profile id to which this /// product belongs. - /// Billing Profile name to which this - /// product belongs. - public ProductSummary(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), System.DateTime? purchaseDate = default(System.DateTime?), string productTypeId = default(string), string productType = default(string), string status = default(string), System.DateTime? endDate = default(System.DateTime?), string billingFrequency = default(string), Amount lastCharge = default(Amount), System.DateTime? lastChargeDate = default(System.DateTime?), double? quantity = default(double?), string skuId = default(string), string skuDescription = default(string), string availabilityId = default(string), string parentProductId = default(string), string invoiceSectionId = default(string), string invoiceSectionName = default(string), string billingProfileId = default(string), string billingProfileName = default(string)) + /// Billing Profile display + /// name to which this product belongs. + /// Customer id to which this product + /// belongs. + /// Display name of customer to which + /// this product belongs. + public Product(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), System.DateTime? purchaseDate = default(System.DateTime?), string productTypeId = default(string), string productType = default(string), string status = default(string), System.DateTime? endDate = default(System.DateTime?), string billingFrequency = default(string), Amount lastCharge = default(Amount), System.DateTime? lastChargeDate = default(System.DateTime?), double? quantity = default(double?), string skuId = default(string), string skuDescription = default(string), string availabilityId = default(string), string parentProductId = default(string), string invoiceSectionId = default(string), string invoiceSectionDisplayName = default(string), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string customerId = default(string), string customerDisplayName = default(string)) : base(id, name, type) { DisplayName = displayName; @@ -78,9 +82,11 @@ public ProductSummary() AvailabilityId = availabilityId; ParentProductId = parentProductId; InvoiceSectionId = invoiceSectionId; - InvoiceSectionName = invoiceSectionName; + InvoiceSectionDisplayName = invoiceSectionDisplayName; BillingProfileId = billingProfileId; - BillingProfileName = billingProfileName; + BillingProfileDisplayName = billingProfileDisplayName; + CustomerId = customerId; + CustomerDisplayName = customerDisplayName; CustomInit(); } @@ -183,10 +189,10 @@ public ProductSummary() public string InvoiceSectionId { get; private set; } /// - /// Gets invoice section name to which this product belongs. + /// Gets invoice section display name to which this product belongs. /// - [JsonProperty(PropertyName = "properties.invoiceSectionName")] - public string InvoiceSectionName { get; private set; } + [JsonProperty(PropertyName = "properties.invoiceSectionDisplayName")] + public string InvoiceSectionDisplayName { get; private set; } /// /// Gets billing Profile id to which this product belongs. @@ -195,10 +201,22 @@ public ProductSummary() public string BillingProfileId { get; private set; } /// - /// Gets billing Profile name to which this product belongs. + /// Gets billing Profile display name to which this product belongs. + /// + [JsonProperty(PropertyName = "properties.billingProfileDisplayName")] + public string BillingProfileDisplayName { get; private set; } + + /// + /// Gets customer id to which this product belongs. + /// + [JsonProperty(PropertyName = "properties.customerId")] + public string CustomerId { get; private set; } + + /// + /// Gets display name of customer to which this product belongs. /// - [JsonProperty(PropertyName = "properties.billingProfileName")] - public string BillingProfileName { get; private set; } + [JsonProperty(PropertyName = "properties.customerDisplayName")] + public string CustomerDisplayName { get; private set; } } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductTransferValidationErrorCode.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductTransferValidationErrorCode.cs new file mode 100644 index 000000000000..b2aa3eff7e27 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductTransferValidationErrorCode.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for ProductTransferValidationErrorCode. + /// + public static class ProductTransferValidationErrorCode + { + public const string InvalidSource = "InvalidSource"; + public const string ProductNotActive = "ProductNotActive"; + public const string InsufficientPermissionOnSource = "InsufficientPermissionOnSource"; + public const string InsufficientPermissionOnDestination = "InsufficientPermissionOnDestination"; + public const string DestinationBillingProfilePastDue = "DestinationBillingProfilePastDue"; + public const string ProductTypeNotSupported = "ProductTypeNotSupported"; + public const string CrossBillingAccountNotAllowed = "CrossBillingAccountNotAllowed"; + public const string NotAvailableForDestinationMarket = "NotAvailableForDestinationMarket"; + public const string OneTimePurchaseProductTransferNotAllowed = "OneTimePurchaseProductTransferNotAllowed"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsListResult.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsListResult.cs index f32c04aec14b..90a6ed7c54f0 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsListResult.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsListResult.cs @@ -16,8 +16,8 @@ namespace Microsoft.Azure.Management.Billing.Models using System.Linq; /// - /// Result of listing products summary. It contains a list of available - /// products summaries in reverse chronological order by purchase date. + /// Result of listing products. It contains a list of available products + /// summaries in reverse chronological order by purchase date. /// public partial class ProductsListResult { @@ -32,10 +32,10 @@ public ProductsListResult() /// /// Initializes a new instance of the ProductsListResult class. /// - /// The list of products summary. + /// The list of products. /// The link (url) to the next page of /// results. - public ProductsListResult(IList value = default(IList), string nextLink = default(string)) + public ProductsListResult(IList value = default(IList), string nextLink = default(string)) { Value = value; NextLink = nextLink; @@ -48,10 +48,10 @@ public ProductsListResult() partial void CustomInit(); /// - /// Gets the list of products summary. + /// Gets the list of products. /// [JsonProperty(PropertyName = "value")] - public IList Value { get; private set; } + public IList Value { get; private set; } /// /// Gets the link (url) to the next page of results. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsTransferHeaders.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsTransferHeaders.cs index d0cadf2b0d55..2440f6d2f2f0 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsTransferHeaders.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ProductsTransferHeaders.cs @@ -32,13 +32,10 @@ public ProductsTransferHeaders() /// Location URI to poll for result /// Recommends the retryable time after /// receiving this. - /// URI to poll for the operation - /// status - public ProductsTransferHeaders(string location = default(string), int? retryAfter = default(int?), string azureAsyncOperation = default(string)) + public ProductsTransferHeaders(string location = default(string), int? retryAfter = default(int?)) { Location = location; RetryAfter = retryAfter; - AzureAsyncOperation = azureAsyncOperation; CustomInit(); } @@ -59,11 +56,5 @@ public ProductsTransferHeaders() [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } - /// - /// Gets or sets URI to poll for the operation status - /// - [JsonProperty(PropertyName = "Azure-AsyncOperation")] - public string AzureAsyncOperation { get; set; } - } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/RecipientTransferDetails.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/RecipientTransferDetails.cs index a451ae984fb1..c4dddcb9ca96 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/RecipientTransferDetails.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/RecipientTransferDetails.cs @@ -45,13 +45,17 @@ public RecipientTransferDetails() /// transfer. /// Email Id of initiator of /// transfer. + /// Reseller Id for transfer. + /// Reseller name for transfer. + /// Customer type of the + /// initiator. /// Email Id who user canceled the /// transfer. /// Transfer last modification /// time. /// Detailed transfer /// status. - public RecipientTransferDetails(System.DateTime? creationTime = default(System.DateTime?), System.DateTime? expirationTime = default(System.DateTime?), IList allowedProductType = default(IList), string transferStatus = default(string), string recipientEmailId = default(string), string initiatorEmailId = default(string), string canceledBy = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), IList detailedTransferStatus = default(IList)) + public RecipientTransferDetails(System.DateTime? creationTime = default(System.DateTime?), System.DateTime? expirationTime = default(System.DateTime?), IList allowedProductType = default(IList), string transferStatus = default(string), string recipientEmailId = default(string), string initiatorEmailId = default(string), string resellerId = default(string), string resellerName = default(string), string initiatorCustomerType = default(string), string canceledBy = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), IList detailedTransferStatus = default(IList)) { CreationTime = creationTime; ExpirationTime = expirationTime; @@ -59,6 +63,9 @@ public RecipientTransferDetails() TransferStatus = transferStatus; RecipientEmailId = recipientEmailId; InitiatorEmailId = initiatorEmailId; + ResellerId = resellerId; + ResellerName = resellerName; + InitiatorCustomerType = initiatorCustomerType; CanceledBy = canceledBy; LastModifiedTime = lastModifiedTime; DetailedTransferStatus = detailedTransferStatus; @@ -108,6 +115,24 @@ public RecipientTransferDetails() [JsonProperty(PropertyName = "properties.initiatorEmailId")] public string InitiatorEmailId { get; private set; } + /// + /// Gets reseller Id for transfer. + /// + [JsonProperty(PropertyName = "properties.resellerId")] + public string ResellerId { get; private set; } + + /// + /// Gets reseller name for transfer. + /// + [JsonProperty(PropertyName = "properties.resellerName")] + public string ResellerName { get; private set; } + + /// + /// Gets customer type of the initiator. + /// + [JsonProperty(PropertyName = "properties.initiatorCustomerType")] + public string InitiatorCustomerType { get; private set; } + /// /// Gets email Id who user canceled the transfer. /// diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Reseller.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Reseller.cs new file mode 100644 index 000000000000..5efc6c6fcde2 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Reseller.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Details about a reseller. + /// + public partial class Reseller + { + /// + /// Initializes a new instance of the Reseller class. + /// + public Reseller() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Reseller class. + /// + /// The reseller id. + /// A description of the reseller. + public Reseller(string resellerId = default(string), string description = default(string)) + { + ResellerId = resellerId; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the reseller id. + /// + [JsonProperty(PropertyName = "resellerId")] + public string ResellerId { get; private set; } + + /// + /// Gets a description of the reseller. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ReservationPurchasesPolicy.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ReservationPurchasesPolicy.cs new file mode 100644 index 000000000000..a41293d8b273 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ReservationPurchasesPolicy.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for ReservationPurchasesPolicy. + /// + public static class ReservationPurchasesPolicy + { + public const string Allowed = "Allowed"; + public const string NotAllowed = "NotAllowed"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Status.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Status.cs new file mode 100644 index 000000000000..c0910b803733 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Status.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for Status. + /// + public static class Status + { + public const string Approved = "Approved"; + public const string Rejected = "Rejected"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/SubscriptionTransferValidationErrorCode.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/SubscriptionTransferValidationErrorCode.cs new file mode 100644 index 000000000000..128d487ef129 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/SubscriptionTransferValidationErrorCode.cs @@ -0,0 +1,28 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for SubscriptionTransferValidationErrorCode. + /// + public static class SubscriptionTransferValidationErrorCode + { + public const string InvalidSource = "InvalidSource"; + public const string SubscriptionNotActive = "SubscriptionNotActive"; + public const string InsufficientPermissionOnSource = "InsufficientPermissionOnSource"; + public const string InsufficientPermissionOnDestination = "InsufficientPermissionOnDestination"; + public const string DestinationBillingProfilePastDue = "DestinationBillingProfilePastDue"; + public const string SubscriptionTypeNotSupported = "SubscriptionTypeNotSupported"; + public const string CrossBillingAccountNotAllowed = "CrossBillingAccountNotAllowed"; + public const string NotAvailableForDestinationMarket = "NotAvailableForDestinationMarket"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionsSummary.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Transaction.cs similarity index 70% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionsSummary.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Transaction.cs index 97e3617a5a09..41adddc53bee 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionsSummary.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/Transaction.cs @@ -16,21 +16,21 @@ namespace Microsoft.Azure.Management.Billing.Models using System.Linq; /// - /// A reservation transaction summary resource. + /// A reservation transaction resource. /// [Rest.Serialization.JsonTransformation] - public partial class TransactionsSummary : Resource + public partial class Transaction : Resource { /// - /// Initializes a new instance of the TransactionsSummary class. + /// Initializes a new instance of the Transaction class. /// - public TransactionsSummary() + public Transaction() { CustomInit(); } /// - /// Initializes a new instance of the TransactionsSummary class. + /// Initializes a new instance of the Transaction class. /// /// Resource Id. /// Resource name. @@ -53,15 +53,19 @@ public TransactionsSummary() /// Purchase quantity. /// Invoice section id to which this /// product belongs. - /// Invoice section name to which this - /// product belongs. + /// Invoice section display + /// name to which this product belongs. /// Billing Profile id to which this /// product belongs. - /// Billing Profile name to which this - /// product belongs. + /// Billing Profile display + /// name to which this product belongs. + /// Customer id to which this product + /// belongs. + /// Display name of customer to which + /// this product belongs. /// The subscription id. /// The subscription name. - public TransactionsSummary(string id = default(string), string name = default(string), string type = default(string), string kind = default(string), System.DateTime? date = default(System.DateTime?), string invoice = default(string), string orderId = default(string), string orderName = default(string), string productFamily = default(string), string productTypeId = default(string), string productType = default(string), string productDescription = default(string), string transactionType = default(string), Amount transactionAmount = default(Amount), int? quantity = default(int?), string invoiceSectionId = default(string), string invoiceSectionName = default(string), string billingProfileId = default(string), string billingProfileName = default(string), string subscriptionId = default(string), string subscriptionName = default(string)) + public Transaction(string id = default(string), string name = default(string), string type = default(string), string kind = default(string), System.DateTime? date = default(System.DateTime?), string invoice = default(string), string orderId = default(string), string orderName = default(string), string productFamily = default(string), string productTypeId = default(string), string productType = default(string), string productDescription = default(string), string transactionType = default(string), Amount transactionAmount = default(Amount), int? quantity = default(int?), string invoiceSectionId = default(string), string invoiceSectionDisplayName = default(string), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string customerId = default(string), string customerDisplayName = default(string), string subscriptionId = default(string), string subscriptionName = default(string)) : base(id, name, type) { Kind = kind; @@ -77,9 +81,11 @@ public TransactionsSummary() TransactionAmount = transactionAmount; Quantity = quantity; InvoiceSectionId = invoiceSectionId; - InvoiceSectionName = invoiceSectionName; + InvoiceSectionDisplayName = invoiceSectionDisplayName; BillingProfileId = billingProfileId; - BillingProfileName = billingProfileName; + BillingProfileDisplayName = billingProfileDisplayName; + CustomerId = customerId; + CustomerDisplayName = customerDisplayName; SubscriptionId = subscriptionId; SubscriptionName = subscriptionName; CustomInit(); @@ -171,10 +177,10 @@ public TransactionsSummary() public string InvoiceSectionId { get; private set; } /// - /// Gets invoice section name to which this product belongs. + /// Gets invoice section display name to which this product belongs. /// - [JsonProperty(PropertyName = "properties.invoiceSectionName")] - public string InvoiceSectionName { get; private set; } + [JsonProperty(PropertyName = "properties.invoiceSectionDisplayName")] + public string InvoiceSectionDisplayName { get; private set; } /// /// Gets billing Profile id to which this product belongs. @@ -183,10 +189,22 @@ public TransactionsSummary() public string BillingProfileId { get; private set; } /// - /// Gets billing Profile name to which this product belongs. + /// Gets billing Profile display name to which this product belongs. + /// + [JsonProperty(PropertyName = "properties.billingProfileDisplayName")] + public string BillingProfileDisplayName { get; private set; } + + /// + /// Gets customer id to which this product belongs. + /// + [JsonProperty(PropertyName = "properties.customerId")] + public string CustomerId { get; private set; } + + /// + /// Gets display name of customer to which this product belongs. /// - [JsonProperty(PropertyName = "properties.billingProfileName")] - public string BillingProfileName { get; private set; } + [JsonProperty(PropertyName = "properties.customerDisplayName")] + public string CustomerDisplayName { get; private set; } /// /// Gets the subscription id. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionsListResult.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionListResult.cs similarity index 70% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionsListResult.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionListResult.cs index 0698ce1fb2e6..b38f7aa05616 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionsListResult.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransactionListResult.cs @@ -16,26 +16,25 @@ namespace Microsoft.Azure.Management.Billing.Models using System.Linq; /// - /// Result of listing reservation transactions summary. + /// Result of listing reservation transactions. /// - public partial class TransactionsListResult + public partial class TransactionListResult { /// - /// Initializes a new instance of the TransactionsListResult class. + /// Initializes a new instance of the TransactionListResult class. /// - public TransactionsListResult() + public TransactionListResult() { CustomInit(); } /// - /// Initializes a new instance of the TransactionsListResult class. + /// Initializes a new instance of the TransactionListResult class. /// - /// The list of reservation transactions - /// summary. + /// The list of reservation transactions. /// The link (url) to the next page of /// results. - public TransactionsListResult(IList value = default(IList), string nextLink = default(string)) + public TransactionListResult(IList value = default(IList), string nextLink = default(string)) { Value = value; NextLink = nextLink; @@ -48,10 +47,10 @@ public TransactionsListResult() partial void CustomInit(); /// - /// Gets the list of reservation transactions summary. + /// Gets the list of reservation transactions. /// [JsonProperty(PropertyName = "value")] - public IList Value { get; private set; } + public IList Value { get; private set; } /// /// Gets the link (url) to the next page of results. diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequest.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequest.cs index 73356f7165b6..caee5a03f332 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequest.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequest.cs @@ -36,9 +36,12 @@ public TransferBillingSubscriptionRequest() /// /// The destination invoice /// section id. - public TransferBillingSubscriptionRequest(string destinationInvoiceSectionId = default(string)) + /// The destination billing + /// profile id. + public TransferBillingSubscriptionRequest(string destinationInvoiceSectionId = default(string), string destinationBillingProfileId = default(string)) { DestinationInvoiceSectionId = destinationInvoiceSectionId; + DestinationBillingProfileId = destinationBillingProfileId; CustomInit(); } @@ -53,5 +56,11 @@ public TransferBillingSubscriptionRequest() [JsonProperty(PropertyName = "properties.destinationInvoiceSectionId")] public string DestinationInvoiceSectionId { get; set; } + /// + /// Gets or sets the destination billing profile id. + /// + [JsonProperty(PropertyName = "properties.destinationBillingProfileId")] + public string DestinationBillingProfileId { get; set; } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequestProperties.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequestProperties.cs index 1de9174f58fd..c441d309ce65 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequestProperties.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferBillingSubscriptionRequestProperties.cs @@ -33,9 +33,12 @@ public TransferBillingSubscriptionRequestProperties() /// /// The destination invoice /// section id. - public TransferBillingSubscriptionRequestProperties(string destinationInvoiceSectionId = default(string)) + /// The destination billing + /// profile id. + public TransferBillingSubscriptionRequestProperties(string destinationInvoiceSectionId = default(string), string destinationBillingProfileId = default(string)) { DestinationInvoiceSectionId = destinationInvoiceSectionId; + DestinationBillingProfileId = destinationBillingProfileId; CustomInit(); } @@ -50,5 +53,11 @@ public TransferBillingSubscriptionRequestProperties() [JsonProperty(PropertyName = "destinationInvoiceSectionId")] public string DestinationInvoiceSectionId { get; set; } + /// + /// Gets or sets the destination billing profile id. + /// + [JsonProperty(PropertyName = "destinationBillingProfileId")] + public string DestinationBillingProfileId { get; set; } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferDetails.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferDetails.cs index ea1d76fa501e..293d805691c8 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferDetails.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferDetails.cs @@ -38,6 +38,11 @@ public TransferDetails() /// Transfer expiration time. /// Target invoice section Id. /// Target billing account Id. + /// Reseller Id for transfer. + /// Reseller name for transfer. + /// Customer type of the + /// initiator. + /// Target billing profile Id. /// Overall transfer status. Possible /// values include: 'Pending', 'InProgress', 'Completed', /// 'CompletedWithErrors', 'Failed', 'Canceled', 'Declined' @@ -51,12 +56,16 @@ public TransferDetails() /// time. /// Detailed transfer /// status. - public TransferDetails(System.DateTime? creationTime = default(System.DateTime?), System.DateTime? expirationTime = default(System.DateTime?), string invoiceSectionId = default(string), string billingAccountId = default(string), string transferStatus = default(string), string recipientEmailId = default(string), string initiatorEmailId = default(string), string canceledBy = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), IList detailedTransferStatus = default(IList)) + public TransferDetails(System.DateTime? creationTime = default(System.DateTime?), System.DateTime? expirationTime = default(System.DateTime?), string invoiceSectionId = default(string), string billingAccountId = default(string), string resellerId = default(string), string resellerName = default(string), string initiatorCustomerType = default(string), string billingProfileId = default(string), string transferStatus = default(string), string recipientEmailId = default(string), string initiatorEmailId = default(string), string canceledBy = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), IList detailedTransferStatus = default(IList)) { CreationTime = creationTime; ExpirationTime = expirationTime; InvoiceSectionId = invoiceSectionId; BillingAccountId = billingAccountId; + ResellerId = resellerId; + ResellerName = resellerName; + InitiatorCustomerType = initiatorCustomerType; + BillingProfileId = billingProfileId; TransferStatus = transferStatus; RecipientEmailId = recipientEmailId; InitiatorEmailId = initiatorEmailId; @@ -95,6 +104,30 @@ public TransferDetails() [JsonProperty(PropertyName = "properties.billingAccountId")] public string BillingAccountId { get; private set; } + /// + /// Gets reseller Id for transfer. + /// + [JsonProperty(PropertyName = "properties.resellerId")] + public string ResellerId { get; private set; } + + /// + /// Gets reseller name for transfer. + /// + [JsonProperty(PropertyName = "properties.resellerName")] + public string ResellerName { get; private set; } + + /// + /// Gets customer type of the initiator. + /// + [JsonProperty(PropertyName = "properties.initiatorCustomerType")] + public string InitiatorCustomerType { get; private set; } + + /// + /// Gets target billing profile Id. + /// + [JsonProperty(PropertyName = "properties.billingProfileId")] + public string BillingProfileId { get; private set; } + /// /// Gets overall transfer status. Possible values include: 'Pending', /// 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed', diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferProductRequestProperties.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferProductRequestProperties.cs index dab785ca787c..76f21e33a9eb 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferProductRequestProperties.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TransferProductRequestProperties.cs @@ -31,11 +31,14 @@ public TransferProductRequestProperties() /// Initializes a new instance of the TransferProductRequestProperties /// class. /// - /// Destination invoice + /// The destination invoice /// section id. - public TransferProductRequestProperties(string destinationInvoiceSectionId = default(string)) + /// The destination billing + /// profile id. + public TransferProductRequestProperties(string destinationInvoiceSectionId = default(string), string destinationBillingProfileId = default(string)) { DestinationInvoiceSectionId = destinationInvoiceSectionId; + DestinationBillingProfileId = destinationBillingProfileId; CustomInit(); } @@ -45,10 +48,16 @@ public TransferProductRequestProperties() partial void CustomInit(); /// - /// Gets or sets destination invoice section id. + /// Gets or sets the destination invoice section id. /// [JsonProperty(PropertyName = "destinationInvoiceSectionId")] public string DestinationInvoiceSectionId { get; set; } + /// + /// Gets or sets the destination billing profile id. + /// + [JsonProperty(PropertyName = "destinationBillingProfileId")] + public string DestinationBillingProfileId { get; set; } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/UpdateAutoRenewOperationSummary.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/UpdateAutoRenewOperation.cs similarity index 84% rename from sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/UpdateAutoRenewOperationSummary.cs rename to sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/UpdateAutoRenewOperation.cs index 7df5ea8e5aca..d30e817542b0 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/UpdateAutoRenewOperationSummary.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/UpdateAutoRenewOperation.cs @@ -19,23 +19,21 @@ namespace Microsoft.Azure.Management.Billing.Models /// Summary of cancel product operation /// [Rest.Serialization.JsonTransformation] - public partial class UpdateAutoRenewOperationSummary + public partial class UpdateAutoRenewOperation { /// - /// Initializes a new instance of the UpdateAutoRenewOperationSummary - /// class. + /// Initializes a new instance of the UpdateAutoRenewOperation class. /// - public UpdateAutoRenewOperationSummary() + public UpdateAutoRenewOperation() { CustomInit(); } /// - /// Initializes a new instance of the UpdateAutoRenewOperationSummary - /// class. + /// Initializes a new instance of the UpdateAutoRenewOperation class. /// /// The end date of this asset - public UpdateAutoRenewOperationSummary(System.DateTime? endDate = default(System.DateTime?)) + public UpdateAutoRenewOperation(System.DateTime? endDate = default(System.DateTime?)) { EndDate = endDate; CustomInit(); diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateAddressResponse.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateAddressResponse.cs new file mode 100644 index 000000000000..076c6728e33d --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateAddressResponse.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Result of the address validation + /// + public partial class ValidateAddressResponse + { + /// + /// Initializes a new instance of the ValidateAddressResponse class. + /// + public ValidateAddressResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateAddressResponse class. + /// + /// status of the address validation. Possible + /// values include: 'Valid', 'Invalid' + /// list of suggested + /// addresses. + /// Validation error message. + public ValidateAddressResponse(string status = default(string), IList suggestedAddresses = default(IList), string validationMessage = default(string)) + { + Status = status; + SuggestedAddresses = suggestedAddresses; + ValidationMessage = validationMessage; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets status of the address validation. Possible values + /// include: 'Valid', 'Invalid' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets list of suggested addresses. + /// + [JsonProperty(PropertyName = "suggestedAddresses")] + public IList SuggestedAddresses { get; set; } + + /// + /// Gets or sets validation error message. + /// + [JsonProperty(PropertyName = "validationMessage")] + public string ValidationMessage { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityError.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityError.cs new file mode 100644 index 000000000000..6d06b5bcc559 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityError.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error details of the product transfer eligibility validation. + /// + public partial class ValidateProductTransferEligibilityError + { + /// + /// Initializes a new instance of the + /// ValidateProductTransferEligibilityError class. + /// + public ValidateProductTransferEligibilityError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ValidateProductTransferEligibilityError class. + /// + /// Error code for the product transfer validation. + /// Possible values include: 'InvalidSource', 'ProductNotActive', + /// 'InsufficientPermissionOnSource', + /// 'InsufficientPermissionOnDestination', + /// 'DestinationBillingProfilePastDue', 'ProductTypeNotSupported', + /// 'CrossBillingAccountNotAllowed', + /// 'NotAvailableForDestinationMarket', + /// 'OneTimePurchaseProductTransferNotAllowed' + /// The error message. + /// Detailed error message explaining the + /// error. + public ValidateProductTransferEligibilityError(string code = default(string), string message = default(string), string details = default(string)) + { + Code = code; + Message = message; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets error code for the product transfer validation. + /// Possible values include: 'InvalidSource', 'ProductNotActive', + /// 'InsufficientPermissionOnSource', + /// 'InsufficientPermissionOnDestination', + /// 'DestinationBillingProfilePastDue', 'ProductTypeNotSupported', + /// 'CrossBillingAccountNotAllowed', + /// 'NotAvailableForDestinationMarket', + /// 'OneTimePurchaseProductTransferNotAllowed' + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets detailed error message explaining the error. + /// + [JsonProperty(PropertyName = "details")] + public string Details { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityResult.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityResult.cs new file mode 100644 index 000000000000..20546dd70c0f --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateProductTransferEligibilityResult.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Result of the product transfer eligibility validation. + /// + public partial class ValidateProductTransferEligibilityResult + { + /// + /// Initializes a new instance of the + /// ValidateProductTransferEligibilityResult class. + /// + public ValidateProductTransferEligibilityResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ValidateProductTransferEligibilityResult class. + /// + /// Specifies whether the transfer is + /// eligible or not. + /// Validation error details. + public ValidateProductTransferEligibilityResult(bool? isTransferEligible = default(bool?), ValidateProductTransferEligibilityError errorDetails = default(ValidateProductTransferEligibilityError)) + { + IsTransferEligible = isTransferEligible; + ErrorDetails = errorDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets specifies whether the transfer is eligible or not. + /// + [JsonProperty(PropertyName = "isTransferEligible")] + public bool? IsTransferEligible { get; private set; } + + /// + /// Gets or sets validation error details. + /// + [JsonProperty(PropertyName = "errorDetails")] + public ValidateProductTransferEligibilityError ErrorDetails { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityError.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityError.cs new file mode 100644 index 000000000000..93b4696ea517 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityError.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error details of the transfer eligibility validation + /// + public partial class ValidateSubscriptionTransferEligibilityError + { + /// + /// Initializes a new instance of the + /// ValidateSubscriptionTransferEligibilityError class. + /// + public ValidateSubscriptionTransferEligibilityError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ValidateSubscriptionTransferEligibilityError class. + /// + /// Error code for the product transfer validation. + /// Possible values include: 'InvalidSource', 'SubscriptionNotActive', + /// 'InsufficientPermissionOnSource', + /// 'InsufficientPermissionOnDestination', + /// 'DestinationBillingProfilePastDue', 'SubscriptionTypeNotSupported', + /// 'CrossBillingAccountNotAllowed', + /// 'NotAvailableForDestinationMarket' + /// The error message. + /// Detailed error message explaining the + /// error. + public ValidateSubscriptionTransferEligibilityError(string code = default(string), string message = default(string), string details = default(string)) + { + Code = code; + Message = message; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets error code for the product transfer validation. + /// Possible values include: 'InvalidSource', 'SubscriptionNotActive', + /// 'InsufficientPermissionOnSource', + /// 'InsufficientPermissionOnDestination', + /// 'DestinationBillingProfilePastDue', 'SubscriptionTypeNotSupported', + /// 'CrossBillingAccountNotAllowed', 'NotAvailableForDestinationMarket' + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets detailed error message explaining the error. + /// + [JsonProperty(PropertyName = "details")] + public string Details { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityResult.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityResult.cs new file mode 100644 index 000000000000..d467475793ba --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateSubscriptionTransferEligibilityResult.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Result of the transfer eligibility validation. + /// + public partial class ValidateSubscriptionTransferEligibilityResult + { + /// + /// Initializes a new instance of the + /// ValidateSubscriptionTransferEligibilityResult class. + /// + public ValidateSubscriptionTransferEligibilityResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ValidateSubscriptionTransferEligibilityResult class. + /// + /// Specifies whether the transfer is + /// eligible or not. + /// Validation error details. + public ValidateSubscriptionTransferEligibilityResult(bool? isTransferEligible = default(bool?), ValidateSubscriptionTransferEligibilityError errorDetails = default(ValidateSubscriptionTransferEligibilityError)) + { + IsTransferEligible = isTransferEligible; + ErrorDetails = errorDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets specifies whether the transfer is eligible or not. + /// + [JsonProperty(PropertyName = "isTransferEligible")] + public bool? IsTransferEligible { get; private set; } + + /// + /// Gets or sets validation error details. + /// + [JsonProperty(PropertyName = "errorDetails")] + public ValidateSubscriptionTransferEligibilityError ErrorDetails { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferListResponse.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferListResponse.cs new file mode 100644 index 000000000000..de0740ec9920 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferListResponse.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Result of transfer validation. + /// + public partial class ValidateTransferListResponse + { + /// + /// Initializes a new instance of the ValidateTransferListResponse + /// class. + /// + public ValidateTransferListResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateTransferListResponse + /// class. + /// + /// The list of transfer validation + /// results. + /// The link (url) to the next page of + /// results. + public ValidateTransferListResponse(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + NextLink = nextLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the list of transfer validation results. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; private set; } + + /// + /// Gets the link (url) to the next page of results. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; private set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferResponse.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferResponse.cs new file mode 100644 index 000000000000..e5ff705c05b1 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidateTransferResponse.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Transfer validation response. + /// + [Rest.Serialization.JsonTransformation] + public partial class ValidateTransferResponse + { + /// + /// Initializes a new instance of the ValidateTransferResponse class. + /// + public ValidateTransferResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateTransferResponse class. + /// + /// The status of validation + /// The product id for which this result + /// applies. + /// Array of validation results. + public ValidateTransferResponse(string status = default(string), string productId = default(string), IList results = default(IList)) + { + Status = status; + ProductId = productId; + Results = results; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the status of validation + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets the product id for which this result applies. + /// + [JsonProperty(PropertyName = "properties.productId")] + public string ProductId { get; private set; } + + /// + /// Gets or sets array of validation results. + /// + [JsonProperty(PropertyName = "properties.results")] + public IList Results { get; set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidationResultProperties.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidationResultProperties.cs new file mode 100644 index 000000000000..5f59a5f39c39 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ValidationResultProperties.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The properties of the validation result. + /// + public partial class ValidationResultProperties + { + /// + /// Initializes a new instance of the ValidationResultProperties class. + /// + public ValidationResultProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidationResultProperties class. + /// + /// Result Level. + /// Result Code. + /// The validation message. + public ValidationResultProperties(string level = default(string), string code = default(string), string message = default(string)) + { + Level = level; + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets result Level. + /// + [JsonProperty(PropertyName = "level")] + public string Level { get; private set; } + + /// + /// Gets result Code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets the validation message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ViewChargesPolicy.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ViewChargesPolicy.cs new file mode 100644 index 000000000000..7b579b67e345 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/ViewChargesPolicy.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing.Models +{ + + /// + /// Defines values for ViewChargesPolicy. + /// + public static class ViewChargesPolicy + { + public const string None = "None"; + public const string SubscriptionOwner = "SubscriptionOwner"; + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperations.cs new file mode 100644 index 000000000000..84085899e0d6 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperations.cs @@ -0,0 +1,647 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + 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; + + /// + /// PartnerTransfersOperations operations. + /// + internal partial class PartnerTransfersOperations : IServiceOperations, IPartnerTransfersOperations + { + /// + /// Initializes a new instance of the PartnerTransfersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PartnerTransfersOperations(BillingManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the BillingManagementClient + /// + public BillingManagementClient Client { get; private set; } + + /// + /// Initiates the request to transfer the legacy subscriptions or RIs. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Parameters supplied to initiate the transfer. + /// + /// + /// 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> InitiateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string customerName, InitiateTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Initiate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/initiateTransfer").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + 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("POST"); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Gets the transfer details for given transfer Id. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + /// + /// 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 billingAccountName, string billingProfileName, string customerName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + if (transferName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "transferName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("transferName", transferName); + 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + _url = _url.Replace("{transferName}", System.Uri.EscapeDataString(transferName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Cancels the transfer for given transfer Id. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + /// + /// 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> CancelWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string customerName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + if (transferName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "transferName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("transferName", transferName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Cancel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + _url = _url.Replace("{transferName}", System.Uri.EscapeDataString(transferName)); + 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("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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperationsExtensions.cs new file mode 100644 index 000000000000..8860052a15e9 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersOperationsExtensions.cs @@ -0,0 +1,181 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PartnerTransfersOperations. + /// + public static partial class PartnerTransfersOperationsExtensions + { + /// + /// Initiates the request to transfer the legacy subscriptions or RIs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Parameters supplied to initiate the transfer. + /// + public static TransferDetails Initiate(this IPartnerTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName, InitiateTransferRequest parameters) + { + return operations.InitiateAsync(billingAccountName, billingProfileName, customerName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Initiates the request to transfer the legacy subscriptions or RIs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Parameters supplied to initiate the transfer. + /// + /// + /// The cancellation token. + /// + public static async Task InitiateAsync(this IPartnerTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName, InitiateTransferRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.InitiateWithHttpMessagesAsync(billingAccountName, billingProfileName, customerName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the transfer details for given transfer Id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + public static TransferDetails Get(this IPartnerTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName, string transferName) + { + return operations.GetAsync(billingAccountName, billingProfileName, customerName, transferName).GetAwaiter().GetResult(); + } + + /// + /// Gets the transfer details for given transfer Id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPartnerTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName, string transferName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, billingProfileName, customerName, transferName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancels the transfer for given transfer Id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + public static TransferDetails Cancel(this IPartnerTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName, string transferName) + { + return operations.CancelAsync(billingAccountName, billingProfileName, customerName, transferName).GetAwaiter().GetResult(); + } + + /// + /// Cancels the transfer for given transfer Id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// Transfer Name. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAsync(this IPartnerTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName, string transferName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CancelWithHttpMessagesAsync(billingAccountName, billingProfileName, customerName, transferName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperations.cs new file mode 100644 index 000000000000..76b9b237a451 --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperations.cs @@ -0,0 +1,409 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + 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; + + /// + /// PartnerTransfersTransfersOperations operations. + /// + internal partial class PartnerTransfersTransfersOperations : IServiceOperations, IPartnerTransfersTransfersOperations + { + /// + /// Initializes a new instance of the PartnerTransfersTransfersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PartnerTransfersTransfersOperations(BillingManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the BillingManagementClient + /// + public BillingManagementClient Client { get; private set; } + + /// + /// Lists all transfer's details initiated from given invoice section. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// 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 billingAccountName, string billingProfileName, string customerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("customerName", customerName); + 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.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 transfer's details initiated from given invoice section. + /// + /// + /// 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperationsExtensions.cs new file mode 100644 index 000000000000..92744de0099d --- /dev/null +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PartnerTransfersTransfersOperationsExtensions.cs @@ -0,0 +1,105 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Billing +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PartnerTransfersTransfersOperations. + /// + public static partial class PartnerTransfersTransfersOperationsExtensions + { + /// + /// Lists all transfer's details initiated from given invoice section. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + public static IPage List(this IPartnerTransfersTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName) + { + return operations.ListAsync(billingAccountName, billingProfileName, customerName).GetAwaiter().GetResult(); + } + + /// + /// Lists all transfer's details initiated from given invoice section. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Customer name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPartnerTransfersTransfersOperations operations, string billingAccountName, string billingProfileName, string customerName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, billingProfileName, customerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all transfer's details initiated from given invoice section. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IPartnerTransfersTransfersOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all transfer's details initiated from given invoice section. + /// + /// + /// 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 IPartnerTransfersTransfersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperations.cs index 374230e3d8d2..e624b752ef7a 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperations.cs @@ -52,7 +52,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// billing Account Id. @@ -78,7 +78,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { @@ -97,7 +97,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -230,7 +230,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// billing Account Id. @@ -259,7 +259,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { @@ -283,7 +283,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -417,7 +417,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -443,7 +443,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -458,7 +458,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNameNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -586,7 +586,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -612,7 +612,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingProfileNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingProfileNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -627,7 +627,7 @@ internal PaymentMethodsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileNameNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperationsExtensions.cs index f68d86f732f4..8f13960e5ac3 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PaymentMethodsOperationsExtensions.cs @@ -23,7 +23,7 @@ public static partial class PaymentMethodsOperationsExtensions { /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// The operations group for this extension method. @@ -31,14 +31,14 @@ public static partial class PaymentMethodsOperationsExtensions /// /// billing Account Id. /// - public static IPage ListByBillingAccountName(this IPaymentMethodsOperations operations, string billingAccountName) + public static IPage ListByBillingAccount(this IPaymentMethodsOperations operations, string billingAccountName) { - return operations.ListByBillingAccountNameAsync(billingAccountName).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName).GetAwaiter().GetResult(); } /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// The operations group for this extension method. @@ -49,9 +49,9 @@ public static IPage ListByBillingAccountName(this IPaymentMethods /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameAsync(this IPaymentMethodsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingAccountAsync(this IPaymentMethodsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -59,7 +59,7 @@ public static IPage ListByBillingAccountName(this IPaymentMethods /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// The operations group for this extension method. @@ -70,14 +70,14 @@ public static IPage ListByBillingAccountName(this IPaymentMethods /// /// Billing Profile Id. /// - public static IPage ListByBillingProfileName(this IPaymentMethodsOperations operations, string billingAccountName, string billingProfileName) + public static IPage ListByBillingProfile(this IPaymentMethodsOperations operations, string billingAccountName, string billingProfileName) { - return operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + return operations.ListByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); } /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// The operations group for this extension method. @@ -91,9 +91,9 @@ public static IPage ListByBillingProfileName(this IPaymentMethods /// /// The cancellation token. /// - public static async Task> ListByBillingProfileNameAsync(this IPaymentMethodsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingProfileAsync(this IPaymentMethodsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -101,7 +101,7 @@ public static IPage ListByBillingProfileName(this IPaymentMethods /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// The operations group for this extension method. @@ -109,14 +109,14 @@ public static IPage ListByBillingProfileName(this IPaymentMethods /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByBillingAccountNameNext(this IPaymentMethodsOperations operations, string nextPageLink) + public static IPage ListByBillingAccountNext(this IPaymentMethodsOperations operations, string nextPageLink) { - return operations.ListByBillingAccountNameNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByBillingAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// /// Lists the Payment Methods by billing account Id. - /// + /// /// /// /// The operations group for this extension method. @@ -127,9 +127,9 @@ public static IPage ListByBillingAccountNameNext(this IPaymentMet /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameNextAsync(this IPaymentMethodsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingAccountNextAsync(this IPaymentMethodsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -137,7 +137,7 @@ public static IPage ListByBillingAccountNameNext(this IPaymentMet /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// The operations group for this extension method. @@ -145,14 +145,14 @@ public static IPage ListByBillingAccountNameNext(this IPaymentMet /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByBillingProfileNameNext(this IPaymentMethodsOperations operations, string nextPageLink) + public static IPage ListByBillingProfileNext(this IPaymentMethodsOperations operations, string nextPageLink) { - return operations.ListByBillingProfileNameNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByBillingProfileNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// /// Lists the Payment Methods by billing profile Id. - /// + /// /// /// /// The operations group for this extension method. @@ -163,9 +163,9 @@ public static IPage ListByBillingProfileNameNext(this IPaymentMet /// /// The cancellation token. /// - public static async Task> ListByBillingProfileNameNextAsync(this IPaymentMethodsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingProfileNextAsync(this IPaymentMethodsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingProfileNameNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingProfileNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperations.cs index 0e0efa6ab96f..85836ea30bec 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperations.cs @@ -52,7 +52,7 @@ internal PoliciesOperations(BillingManagementClient client) /// /// The policy for a given billing account name and billing profile name. - /// + /// /// /// /// billing Account Id. @@ -81,7 +81,7 @@ internal PoliciesOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { @@ -105,7 +105,7 @@ internal PoliciesOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperationsExtensions.cs index 15938b36e44c..7ac8cdb86572 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PoliciesOperationsExtensions.cs @@ -23,7 +23,7 @@ public static partial class PoliciesOperationsExtensions { /// /// The policy for a given billing account name and billing profile name. - /// + /// /// /// /// The operations group for this extension method. @@ -34,14 +34,14 @@ public static partial class PoliciesOperationsExtensions /// /// Billing Profile Id. /// - public static Policy GetByBillingProfileName(this IPoliciesOperations operations, string billingAccountName, string billingProfileName) + public static Policy GetByBillingProfile(this IPoliciesOperations operations, string billingAccountName, string billingProfileName) { - return operations.GetByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + return operations.GetByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); } /// /// The policy for a given billing account name and billing profile name. - /// + /// /// /// /// The operations group for this extension method. @@ -55,9 +55,9 @@ public static Policy GetByBillingProfileName(this IPoliciesOperations operations /// /// The cancellation token. /// - public static async Task GetByBillingProfileNameAsync(this IPoliciesOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByBillingProfileAsync(this IPoliciesOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperations.cs index 1169c16a7a45..73c97053b8c6 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperations.cs @@ -54,10 +54,35 @@ internal PriceSheetOperations(BillingManagementClient client) /// Download price sheet for an invoice. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DownloadWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDownloadWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Download price sheet for a billing profile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// /// The headers that will be added to request. @@ -65,10 +90,10 @@ internal PriceSheetOperations(BillingManagementClient client) /// /// The cancellation token. /// - public async Task> DownloadWithHttpMessagesAsync(string billingAccountName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DownloadByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDownloadWithHttpMessagesAsync(billingAccountName, invoiceName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDownloadByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -76,10 +101,13 @@ internal PriceSheetOperations(BillingManagementClient client) /// Download price sheet for an invoice. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. /// /// /// Headers that will be added to request. @@ -102,7 +130,7 @@ internal PriceSheetOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginDownloadWithHttpMessagesAsync(string billingAccountName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginDownloadWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -112,6 +140,10 @@ internal PriceSheetOperations(BillingManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceName"); @@ -124,14 +156,16 @@ internal PriceSheetOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceName", invoiceName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginDownload", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/pricesheet/default/download").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/pricesheet/default/download").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceName}", System.Uri.EscapeDataString(invoiceName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -271,5 +305,204 @@ internal PriceSheetOperations(BillingManagementClient client) return _result; } + /// + /// Download price sheet for a billing profile. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// 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> BeginDownloadByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDownloadByBillingProfile", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/pricesheet/default/download").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + 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("POST"); + _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 != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperationsExtensions.cs index 44adaa29634e..a1be5f407ad0 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/PriceSheetOperationsExtensions.cs @@ -28,14 +28,17 @@ public static partial class PriceSheetOperationsExtensions /// The operations group for this extension method. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. /// - public static DownloadUrl Download(this IPriceSheetOperations operations, string billingAccountName, string invoiceName) + public static DownloadUrl Download(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName, string invoiceName) { - return operations.DownloadAsync(billingAccountName, invoiceName).GetAwaiter().GetResult(); + return operations.DownloadAsync(billingAccountName, billingProfileName, invoiceName).GetAwaiter().GetResult(); } /// @@ -45,17 +48,60 @@ public static DownloadUrl Download(this IPriceSheetOperations operations, string /// The operations group for this extension method. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. + /// + /// + /// The cancellation token. + /// + public static async Task DownloadAsync(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName, string invoiceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DownloadWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Download price sheet for a billing profile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + public static DownloadUrl DownloadByBillingProfile(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName) + { + return operations.DownloadByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + } + + /// + /// Download price sheet for a billing profile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// /// The cancellation token. /// - public static async Task DownloadAsync(this IPriceSheetOperations operations, string billingAccountName, string invoiceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DownloadByBillingProfileAsync(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DownloadWithHttpMessagesAsync(billingAccountName, invoiceName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DownloadByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -68,14 +114,17 @@ public static DownloadUrl Download(this IPriceSheetOperations operations, string /// The operations group for this extension method. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. /// - public static DownloadUrl BeginDownload(this IPriceSheetOperations operations, string billingAccountName, string invoiceName) + public static DownloadUrl BeginDownload(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName, string invoiceName) { - return operations.BeginDownloadAsync(billingAccountName, invoiceName).GetAwaiter().GetResult(); + return operations.BeginDownloadAsync(billingAccountName, billingProfileName, invoiceName).GetAwaiter().GetResult(); } /// @@ -85,17 +134,60 @@ public static DownloadUrl BeginDownload(this IPriceSheetOperations operations, s /// The operations group for this extension method. /// /// - /// Azure Billing Account ID. + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// - /// The name of an invoice resource. + /// Invoice Id. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDownloadAsync(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName, string invoiceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDownloadWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Download price sheet for a billing profile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + public static DownloadUrl BeginDownloadByBillingProfile(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName) + { + return operations.BeginDownloadByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult(); + } + + /// + /// Download price sheet for a billing profile. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. /// /// /// The cancellation token. /// - public static async Task BeginDownloadAsync(this IPriceSheetOperations operations, string billingAccountName, string invoiceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDownloadByBillingProfileAsync(this IPriceSheetOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginDownloadWithHttpMessagesAsync(billingAccountName, invoiceName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginDownloadByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperations.cs index f6745ea37bcc..1425cc87381d 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperations.cs @@ -50,9 +50,403 @@ internal ProductsOperations(BillingManagementClient client) /// public BillingManagementClient Client { get; private set; } + /// + /// Lists products by customer id. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to filter by product type. The filter supports 'eq', 'lt', + /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or + /// 'not'. Tag filter is a key value pair string where key and value is + /// separated by a colon (:). + /// + /// + /// 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> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + 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("billingAccountName", billingAccountName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("filter", filter); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByCustomer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/products").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a customer's product by name. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Invoice Id. + /// + /// + /// 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> GetByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string productName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + if (productName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "productName"); + } + 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("billingAccountName", billingAccountName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("productName", productName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetByCustomer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/products/{productName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + _url = _url.Replace("{productName}", System.Uri.EscapeDataString(productName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 products by billing account name. - /// + /// /// /// /// billing Account Id. @@ -84,7 +478,7 @@ internal ProductsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { @@ -104,7 +498,7 @@ internal ProductsOperations(BillingManagementClient client) tracingParameters.Add("billingAccountName", billingAccountName); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -207,7 +601,7 @@ internal ProductsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -220,7 +614,7 @@ internal ProductsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -241,11 +635,14 @@ internal ProductsOperations(BillingManagementClient client) /// /// Lists products by invoice section name. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -276,12 +673,16 @@ internal ProductsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -298,15 +699,17 @@ internal ProductsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/products").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -439,11 +842,14 @@ internal ProductsOperations(BillingManagementClient client) /// /// Get a single product by name. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -471,12 +877,16 @@ internal ProductsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string productName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -497,6 +907,7 @@ internal ProductsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("productName", productName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -504,8 +915,9 @@ internal ProductsOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/products/{productName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{productName}", System.Uri.EscapeDataString(productName)); List _queryParameters = new List(); @@ -601,7 +1013,7 @@ internal ProductsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -614,7 +1026,7 @@ internal ProductsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -639,6 +1051,9 @@ internal ProductsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -669,12 +1084,16 @@ internal ProductsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> TransferWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> TransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -699,6 +1118,7 @@ internal ProductsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("productName", productName); tracingParameters.Add("parameters", parameters); @@ -707,8 +1127,9 @@ internal ProductsOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/products/{productName}/transfer").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/transfer").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{productName}", System.Uri.EscapeDataString(productName)); List _queryParameters = new List(); @@ -810,7 +1231,7 @@ internal ProductsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -823,7 +1244,7 @@ internal ProductsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -855,6 +1276,216 @@ internal ProductsOperations(BillingManagementClient client) return _result; } + /// + /// Validates the transfer of products across invoice sections. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Invoice Id. + /// + /// + /// Parameters supplied to the Transfer Products 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> ValidateTransferWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (invoiceSectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); + } + if (productName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "productName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("invoiceSectionName", invoiceSectionName); + tracingParameters.Add("productName", productName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ValidateTransfer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/validateTransferEligibility").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); + _url = _url.Replace("{productName}", System.Uri.EscapeDataString(productName)); + 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("POST"); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + /// /// Cancel auto renew for product by product id and billing account name /// @@ -888,7 +1519,7 @@ internal ProductsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateAutoRenewByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateAutoRenewByBillingAccountWithHttpMessagesAsync(string billingAccountName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { @@ -917,7 +1548,7 @@ internal ProductsOperations(BillingManagementClient client) tracingParameters.Add("productName", productName); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "UpdateAutoRenewByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateAutoRenewByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -1023,7 +1654,7 @@ internal ProductsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1036,7 +1667,7 @@ internal ProductsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1061,6 +1692,9 @@ internal ProductsOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -1091,12 +1725,16 @@ internal ProductsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateAutoRenewByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateAutoRenewByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -1121,16 +1759,18 @@ internal ProductsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("productName", productName); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "UpdateAutoRenewByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateAutoRenewByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/products/{productName}/updateAutoRenew").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/updateAutoRenew").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{productName}", System.Uri.EscapeDataString(productName)); List _queryParameters = new List(); @@ -1232,7 +1872,7 @@ internal ProductsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1245,7 +1885,7 @@ internal ProductsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1266,7 +1906,7 @@ internal ProductsOperations(BillingManagementClient client) /// /// Lists products by billing account name. - /// + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -1292,7 +1932,7 @@ internal ProductsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1307,7 +1947,7 @@ internal ProductsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNameNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1401,7 +2041,7 @@ internal ProductsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1414,7 +2054,7 @@ internal ProductsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperationsExtensions.cs index d8574bf10be0..3389be778b58 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/ProductsOperationsExtensions.cs @@ -21,9 +21,111 @@ namespace Microsoft.Azure.Management.Billing /// public static partial class ProductsOperationsExtensions { + /// + /// Lists products by customer id. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to filter by product type. The filter supports 'eq', 'lt', + /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or + /// 'not'. Tag filter is a key value pair string where key and value is + /// separated by a colon (:). + /// + public static ProductsListResult ListByCustomer(this IProductsOperations operations, string billingAccountName, string customerName, string filter = default(string)) + { + return operations.ListByCustomerAsync(billingAccountName, customerName, filter).GetAwaiter().GetResult(); + } + + /// + /// Lists products by customer id. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// May be used to filter by product type. The filter supports 'eq', 'lt', + /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or + /// 'not'. Tag filter is a key value pair string where key and value is + /// separated by a colon (:). + /// + /// + /// The cancellation token. + /// + public static async Task ListByCustomerAsync(this IProductsOperations operations, string billingAccountName, string customerName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByCustomerWithHttpMessagesAsync(billingAccountName, customerName, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a customer's product by name. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Invoice Id. + /// + public static Product GetByCustomer(this IProductsOperations operations, string billingAccountName, string customerName, string productName) + { + return operations.GetByCustomerAsync(billingAccountName, customerName, productName).GetAwaiter().GetResult(); + } + + /// + /// Get a customer's product by name. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Invoice Id. + /// + /// + /// The cancellation token. + /// + public static async Task GetByCustomerAsync(this IProductsOperations operations, string billingAccountName, string customerName, string productName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByCustomerWithHttpMessagesAsync(billingAccountName, customerName, productName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Lists products by billing account name. - /// + /// /// /// /// The operations group for this extension method. @@ -37,14 +139,14 @@ public static partial class ProductsOperationsExtensions /// 'not'. Tag filter is a key value pair string where key and value is /// separated by a colon (:). /// - public static IPage ListByBillingAccountName(this IProductsOperations operations, string billingAccountName, string filter = default(string)) + public static IPage ListByBillingAccount(this IProductsOperations operations, string billingAccountName, string filter = default(string)) { - return operations.ListByBillingAccountNameAsync(billingAccountName, filter).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName, filter).GetAwaiter().GetResult(); } /// /// Lists products by billing account name. - /// + /// /// /// /// The operations group for this extension method. @@ -61,9 +163,9 @@ public static partial class ProductsOperationsExtensions /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameAsync(this IProductsOperations operations, string billingAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingAccountAsync(this IProductsOperations operations, string billingAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -71,7 +173,7 @@ public static partial class ProductsOperationsExtensions /// /// Lists products by invoice section name. - /// + /// /// /// /// The operations group for this extension method. @@ -79,6 +181,9 @@ public static partial class ProductsOperationsExtensions /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -88,14 +193,14 @@ public static partial class ProductsOperationsExtensions /// 'not'. Tag filter is a key value pair string where key and value is /// separated by a colon (:). /// - public static ProductsListResult ListByInvoiceSectionName(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string filter = default(string)) + public static ProductsListResult ListByInvoiceSection(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string filter = default(string)) { - return operations.ListByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName, filter).GetAwaiter().GetResult(); + return operations.ListByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, filter).GetAwaiter().GetResult(); } /// /// Lists products by invoice section name. - /// + /// /// /// /// The operations group for this extension method. @@ -103,6 +208,9 @@ public static partial class ProductsOperationsExtensions /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -115,9 +223,9 @@ public static partial class ProductsOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByInvoiceSectionNameAsync(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByInvoiceSectionAsync(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -125,7 +233,7 @@ public static partial class ProductsOperationsExtensions /// /// Get a single product by name. - /// + /// /// /// /// The operations group for this extension method. @@ -133,20 +241,23 @@ public static partial class ProductsOperationsExtensions /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// Invoice Id. /// - public static ProductSummary Get(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string productName) + public static Product Get(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName) { - return operations.GetAsync(billingAccountName, invoiceSectionName, productName).GetAwaiter().GetResult(); + return operations.GetAsync(billingAccountName, billingProfileName, invoiceSectionName, productName).GetAwaiter().GetResult(); } /// /// Get a single product by name. - /// + /// /// /// /// The operations group for this extension method. @@ -154,6 +265,9 @@ public static ProductSummary Get(this IProductsOperations operations, string bil /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -163,9 +277,9 @@ public static ProductSummary Get(this IProductsOperations operations, string bil /// /// The cancellation token. /// - public static async Task GetAsync(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string productName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, invoiceSectionName, productName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, productName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -180,6 +294,9 @@ public static ProductSummary Get(this IProductsOperations operations, string bil /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -189,9 +306,9 @@ public static ProductSummary Get(this IProductsOperations operations, string bil /// /// Parameters supplied to the Transfer Product operation. /// - public static ProductSummary Transfer(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters) + public static Product Transfer(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters) { - return operations.TransferAsync(billingAccountName, invoiceSectionName, productName, parameters).GetAwaiter().GetResult(); + return operations.TransferAsync(billingAccountName, billingProfileName, invoiceSectionName, productName, parameters).GetAwaiter().GetResult(); } /// @@ -203,6 +320,9 @@ public static ProductSummary Transfer(this IProductsOperations operations, strin /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -215,9 +335,67 @@ public static ProductSummary Transfer(this IProductsOperations operations, strin /// /// The cancellation token. /// - public static async Task TransferAsync(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TransferAsync(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.TransferWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, productName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates the transfer of products across invoice sections. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Invoice Id. + /// + /// + /// Parameters supplied to the Transfer Products operation. + /// + public static ValidateProductTransferEligibilityResult ValidateTransfer(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters) + { + return operations.ValidateTransferAsync(billingAccountName, billingProfileName, invoiceSectionName, productName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates the transfer of products across invoice sections. + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// InvoiceSection Id. + /// + /// + /// Invoice Id. + /// + /// + /// Parameters supplied to the Transfer Products operation. + /// + /// + /// The cancellation token. + /// + public static async Task ValidateTransferAsync(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, TransferProductRequestProperties parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TransferWithHttpMessagesAsync(billingAccountName, invoiceSectionName, productName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ValidateTransferWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, productName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -238,9 +416,9 @@ public static ProductSummary Transfer(this IProductsOperations operations, strin /// /// Update auto renew request parameters. /// - public static UpdateAutoRenewOperationSummary UpdateAutoRenewByBillingAccountName(this IProductsOperations operations, string billingAccountName, string productName, UpdateAutoRenewRequest body) + public static UpdateAutoRenewOperation UpdateAutoRenewByBillingAccount(this IProductsOperations operations, string billingAccountName, string productName, UpdateAutoRenewRequest body) { - return operations.UpdateAutoRenewByBillingAccountNameAsync(billingAccountName, productName, body).GetAwaiter().GetResult(); + return operations.UpdateAutoRenewByBillingAccountAsync(billingAccountName, productName, body).GetAwaiter().GetResult(); } /// @@ -261,9 +439,9 @@ public static UpdateAutoRenewOperationSummary UpdateAutoRenewByBillingAccountNam /// /// The cancellation token. /// - public static async Task UpdateAutoRenewByBillingAccountNameAsync(this IProductsOperations operations, string billingAccountName, string productName, UpdateAutoRenewRequest body, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAutoRenewByBillingAccountAsync(this IProductsOperations operations, string billingAccountName, string productName, UpdateAutoRenewRequest body, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateAutoRenewByBillingAccountNameWithHttpMessagesAsync(billingAccountName, productName, body, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateAutoRenewByBillingAccountWithHttpMessagesAsync(billingAccountName, productName, body, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -278,6 +456,9 @@ public static UpdateAutoRenewOperationSummary UpdateAutoRenewByBillingAccountNam /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -287,9 +468,9 @@ public static UpdateAutoRenewOperationSummary UpdateAutoRenewByBillingAccountNam /// /// Update auto renew request parameters. /// - public static UpdateAutoRenewOperationSummary UpdateAutoRenewByInvoiceSectionName(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body) + public static UpdateAutoRenewOperation UpdateAutoRenewByInvoiceSection(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body) { - return operations.UpdateAutoRenewByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName, productName, body).GetAwaiter().GetResult(); + return operations.UpdateAutoRenewByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, productName, body).GetAwaiter().GetResult(); } /// @@ -301,6 +482,9 @@ public static UpdateAutoRenewOperationSummary UpdateAutoRenewByInvoiceSectionNam /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -313,9 +497,9 @@ public static UpdateAutoRenewOperationSummary UpdateAutoRenewByInvoiceSectionNam /// /// The cancellation token. /// - public static async Task UpdateAutoRenewByInvoiceSectionNameAsync(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAutoRenewByInvoiceSectionAsync(this IProductsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string productName, UpdateAutoRenewRequest body, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateAutoRenewByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, productName, body, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateAutoRenewByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, productName, body, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -323,7 +507,7 @@ public static UpdateAutoRenewOperationSummary UpdateAutoRenewByInvoiceSectionNam /// /// Lists products by billing account name. - /// + /// /// /// /// The operations group for this extension method. @@ -331,14 +515,14 @@ public static UpdateAutoRenewOperationSummary UpdateAutoRenewByInvoiceSectionNam /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByBillingAccountNameNext(this IProductsOperations operations, string nextPageLink) + public static IPage ListByBillingAccountNext(this IProductsOperations operations, string nextPageLink) { - return operations.ListByBillingAccountNameNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByBillingAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// /// Lists products by billing account name. - /// + /// /// /// /// The operations group for this extension method. @@ -349,9 +533,9 @@ public static IPage ListByBillingAccountNameNext(this IProductsO /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameNextAsync(this IProductsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingAccountNextAsync(this IProductsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperations.cs index 379141cc8125..a37dd849bf00 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperations.cs @@ -56,8 +56,8 @@ internal RecipientTransfersOperations(BillingManagementClient client) /// /// Transfer Name. /// - /// - /// Accept transfer parameters. + /// + /// Parameters supplied to accept the transfer. /// /// /// Headers that will be added to request. @@ -80,15 +80,15 @@ internal RecipientTransfersOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AcceptWithHttpMessagesAsync(string transferName, AcceptTransferRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AcceptWithHttpMessagesAsync(string transferName, AcceptTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (transferName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "transferName"); } - if (body == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -98,7 +98,7 @@ internal RecipientTransfersOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("transferName", transferName); - tracingParameters.Add("body", body); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Accept", tracingParameters); } @@ -145,9 +145,9 @@ internal RecipientTransfersOperations(BillingManagementClient client) // Serialize Request string _requestContent = null; - if(body != null) + if(parameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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"); } @@ -233,6 +233,190 @@ internal RecipientTransfersOperations(BillingManagementClient client) return _result; } + /// + /// Validates if the products can be transferred in the context of the given + /// transfer name. + /// + /// + /// Transfer Name. + /// + /// + /// Parameters supplied to validate the transfer. + /// + /// + /// 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> ValidateWithHttpMessagesAsync(string transferName, AcceptTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (transferName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "transferName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("transferName", transferName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Validate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/transfers/{transferName}/validateTransfer").ToString(); + _url = _url.Replace("{transferName}", System.Uri.EscapeDataString(transferName)); + 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("POST"); + _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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + /// /// Declines the transfer with given transfer Id. /// @@ -448,7 +632,7 @@ internal RecipientTransfersOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/transfers/{transferName}/").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/transfers/{transferName}").ToString(); _url = _url.Replace("{transferName}", System.Uri.EscapeDataString(transferName)); List _queryParameters = new List(); if (_queryParameters.Count > 0) diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperationsExtensions.cs index bd0c5678ac0a..f12f304aba5f 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/RecipientTransfersOperationsExtensions.cs @@ -30,12 +30,12 @@ public static partial class RecipientTransfersOperationsExtensions /// /// Transfer Name. /// - /// - /// Accept transfer parameters. + /// + /// Parameters supplied to accept the transfer. /// - public static RecipientTransferDetails Accept(this IRecipientTransfersOperations operations, string transferName, AcceptTransferRequest body) + public static RecipientTransferDetails Accept(this IRecipientTransfersOperations operations, string transferName, AcceptTransferRequest parameters) { - return operations.AcceptAsync(transferName, body).GetAwaiter().GetResult(); + return operations.AcceptAsync(transferName, parameters).GetAwaiter().GetResult(); } /// @@ -47,15 +47,57 @@ public static RecipientTransferDetails Accept(this IRecipientTransfersOperations /// /// Transfer Name. /// - /// - /// Accept transfer parameters. + /// + /// Parameters supplied to accept the transfer. /// /// /// The cancellation token. /// - public static async Task AcceptAsync(this IRecipientTransfersOperations operations, string transferName, AcceptTransferRequest body, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AcceptAsync(this IRecipientTransfersOperations operations, string transferName, AcceptTransferRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AcceptWithHttpMessagesAsync(transferName, body, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AcceptWithHttpMessagesAsync(transferName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates if the products can be transferred in the context of the given + /// transfer name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Transfer Name. + /// + /// + /// Parameters supplied to validate the transfer. + /// + public static ValidateTransferListResponse Validate(this IRecipientTransfersOperations operations, string transferName, AcceptTransferRequest parameters) + { + return operations.ValidateAsync(transferName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates if the products can be transferred in the context of the given + /// transfer name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Transfer Name. + /// + /// + /// Parameters supplied to validate the transfer. + /// + /// + /// The cancellation token. + /// + public static async Task ValidateAsync(this IRecipientTransfersOperations operations, string transferName, AcceptTransferRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ValidateWithHttpMessagesAsync(transferName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs index ea1bcebcf0bd..df921c36912f 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs @@ -19,27 +19,32 @@ public static IEnumerable> ApiInfo_BillingManageme { return new Tuple[] { - new Tuple("Billing", "Agreements", "2018-11-01-preview"), - new Tuple("Billing", "AvailableBalances", "2018-11-01-preview"), - new Tuple("Billing", "BillingAccounts", "2018-11-01-preview"), - new Tuple("Billing", "BillingPermissions", "2018-11-01-preview"), - new Tuple("Billing", "BillingProfiles", "2018-11-01-preview"), - new Tuple("Billing", "BillingProperty", "2018-11-01-preview"), - new Tuple("Billing", "BillingRoleAssignments", "2018-11-01-preview"), - new Tuple("Billing", "BillingRoleDefinitions", "2018-11-01-preview"), - new Tuple("Billing", "BillingSubscriptions", "2018-11-01-preview"), - new Tuple("Billing", "Departments", "2018-11-01-preview"), - new Tuple("Billing", "EnrollmentAccounts", "2018-11-01-preview"), - new Tuple("Billing", "InvoiceSections", "2018-11-01-preview"), - new Tuple("Billing", "Invoices", "2018-11-01-preview"), - new Tuple("Billing", "Operations", "2018-11-01-preview"), - new Tuple("Billing", "PaymentMethods", "2018-11-01-preview"), - new Tuple("Billing", "Policies", "2018-11-01-preview"), - new Tuple("Billing", "PriceSheet", "2018-11-01-preview"), - new Tuple("Billing", "Products", "2018-11-01-preview"), - new Tuple("Billing", "RecipientTransfers", "2018-11-01-preview"), - new Tuple("Billing", "Transactions", "2018-11-01-preview"), - new Tuple("Billing", "Transfers", "2018-11-01-preview"), + new Tuple("Billing", "Address", "2019-10-01-preview"), + new Tuple("Billing", "Agreements", "2019-10-01-preview"), + new Tuple("Billing", "AvailableBalances", "2019-10-01-preview"), + new Tuple("Billing", "BillingAccounts", "2019-10-01-preview"), + new Tuple("Billing", "BillingPermissions", "2019-10-01-preview"), + new Tuple("Billing", "BillingProfiles", "2019-10-01-preview"), + new Tuple("Billing", "BillingProperty", "2019-10-01-preview"), + new Tuple("Billing", "BillingRoleAssignments", "2019-10-01-preview"), + new Tuple("Billing", "BillingRoleDefinitions", "2019-10-01-preview"), + new Tuple("Billing", "BillingSubscriptions", "2019-10-01-preview"), + new Tuple("Billing", "Customers", "2019-10-01-preview"), + new Tuple("Billing", "Departments", "2019-10-01-preview"), + new Tuple("Billing", "EnrollmentAccounts", "2019-10-01-preview"), + new Tuple("Billing", "InvoiceSections", "2019-10-01-preview"), + new Tuple("Billing", "Invoices", "2019-10-01-preview"), + new Tuple("Billing", "LineOfCredits", "2019-10-01-preview"), + new Tuple("Billing", "Operations", "2019-10-01-preview"), + new Tuple("Billing", "PartnerTransfers", "2019-10-01-preview"), + new Tuple("Billing", "PartnerTransfersTransfers", "2019-10-01-preview"), + new Tuple("Billing", "PaymentMethods", "2019-10-01-preview"), + new Tuple("Billing", "Policies", "2019-10-01-preview"), + new Tuple("Billing", "PriceSheet", "2019-10-01-preview"), + new Tuple("Billing", "Products", "2019-10-01-preview"), + new Tuple("Billing", "RecipientTransfers", "2019-10-01-preview"), + new Tuple("Billing", "Transactions", "2019-10-01-preview"), + new Tuple("Billing", "Transfers", "2019-10-01-preview"), }.AsEnumerable(); } } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperations.cs index 15c25c43a851..af4f49332675 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperations.cs @@ -50,10 +50,232 @@ internal TransactionsOperations(BillingManagementClient client) /// public BillingManagementClient Client { get; private set; } + /// + /// Lists the transactions by customer id for given start date and end date. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Start date + /// + /// + /// End date + /// + /// + /// May be used to filter by transaction kind. The filter supports 'eq', 'lt', + /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or + /// 'not'. Tag filter is a key value pair string where key and value is + /// separated by a colon (:). + /// + /// + /// 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>> ListByCustomerWithHttpMessagesAsync(string billingAccountName, string customerName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (customerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "customerName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (startDate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "startDate"); + } + if (endDate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "endDate"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("customerName", customerName); + tracingParameters.Add("startDate", startDate); + tracingParameters.Add("endDate", endDate); + tracingParameters.Add("filter", filter); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByCustomer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/transactions").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{customerName}", System.Uri.EscapeDataString(customerName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (startDate != null) + { + _queryParameters.Add(string.Format("startDate={0}", System.Uri.EscapeDataString(startDate))); + } + if (endDate != null) + { + _queryParameters.Add(string.Format("endDate={0}", System.Uri.EscapeDataString(endDate))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the transactions by billing account name for given start and end /// date. - /// + /// /// /// /// billing Account Id. @@ -91,7 +313,7 @@ internal TransactionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountWithHttpMessagesAsync(string billingAccountName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { @@ -121,7 +343,7 @@ internal TransactionsOperations(BillingManagementClient client) tracingParameters.Add("endDate", endDate); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccount", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -232,7 +454,7 @@ internal TransactionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -245,7 +467,7 @@ internal TransactionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -267,7 +489,7 @@ internal TransactionsOperations(BillingManagementClient client) /// /// Lists the transactions by billing profile name for given start date and end /// date. - /// + /// /// /// /// billing Account Id. @@ -308,7 +530,7 @@ internal TransactionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { @@ -343,7 +565,7 @@ internal TransactionsOperations(BillingManagementClient client) tracingParameters.Add("endDate", endDate); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfileName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -455,7 +677,7 @@ internal TransactionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -468,7 +690,7 @@ internal TransactionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -490,11 +712,14 @@ internal TransactionsOperations(BillingManagementClient client) /// /// Lists the transactions by invoice section name for given start date and end /// date. - /// + /// /// /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -531,12 +756,16 @@ internal TransactionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByInvoiceSectionNameWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -561,17 +790,19 @@ internal TransactionsOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("startDate", startDate); tracingParameters.Add("endDate", endDate); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSectionName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInvoiceSection", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/transactions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -678,7 +909,7 @@ internal TransactionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -691,7 +922,7 @@ internal TransactionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -711,9 +942,398 @@ internal TransactionsOperations(BillingManagementClient client) } /// - /// Lists the transactions by billing account name for given start and end - /// date. - /// + /// Get the transaction. + /// + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Transaction name. + /// + /// + /// Start date + /// + /// + /// End date + /// + /// + /// 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 billingAccountName, string billingProfileName, string transactionName, string startDate, string endDate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (billingAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); + } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } + if (transactionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "transactionName"); + } + if (startDate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "startDate"); + } + if (endDate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "endDate"); + } + 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("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); + tracingParameters.Add("transactionName", transactionName); + tracingParameters.Add("startDate", startDate); + tracingParameters.Add("endDate", endDate); + 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("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/{transactionName}").ToString(); + _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); + _url = _url.Replace("{transactionName}", System.Uri.EscapeDataString(transactionName)); + List _queryParameters = new List(); + if (startDate != null) + { + _queryParameters.Add(string.Format("startDate={0}", System.Uri.EscapeDataString(startDate))); + } + if (endDate != null) + { + _queryParameters.Add(string.Format("endDate={0}", System.Uri.EscapeDataString(endDate))); + } + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the transactions by customer id for given start date and end date. + /// + /// + /// + /// 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>> ListByCustomerNextWithHttpMessagesAsync(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, "ListByCustomerNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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 the transactions by billing account name for given start and end + /// date. + /// /// /// /// The NextLink from the previous successful call to List operation. @@ -739,7 +1359,7 @@ internal TransactionsOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByBillingAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -754,7 +1374,7 @@ internal TransactionsOperations(BillingManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNameNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByBillingAccountNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -848,7 +1468,7 @@ internal TransactionsOperations(BillingManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -861,7 +1481,7 @@ internal TransactionsOperations(BillingManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperationsExtensions.cs index b688c5fd9120..c94b794fd62b 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransactionsOperationsExtensions.cs @@ -21,10 +21,76 @@ namespace Microsoft.Azure.Management.Billing /// public static partial class TransactionsOperationsExtensions { + /// + /// Lists the transactions by customer id for given start date and end date. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Start date + /// + /// + /// End date + /// + /// + /// May be used to filter by transaction kind. The filter supports 'eq', 'lt', + /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or + /// 'not'. Tag filter is a key value pair string where key and value is + /// separated by a colon (:). + /// + public static IPage ListByCustomer(this ITransactionsOperations operations, string billingAccountName, string customerName, string startDate, string endDate, string filter = default(string)) + { + return operations.ListByCustomerAsync(billingAccountName, customerName, startDate, endDate, filter).GetAwaiter().GetResult(); + } + + /// + /// Lists the transactions by customer id for given start date and end date. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Customer name. + /// + /// + /// Start date + /// + /// + /// End date + /// + /// + /// May be used to filter by transaction kind. The filter supports 'eq', 'lt', + /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or + /// 'not'. Tag filter is a key value pair string where key and value is + /// separated by a colon (:). + /// + /// + /// The cancellation token. + /// + public static async Task> ListByCustomerAsync(this ITransactionsOperations operations, string billingAccountName, string customerName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByCustomerWithHttpMessagesAsync(billingAccountName, customerName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Lists the transactions by billing account name for given start and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -44,15 +110,15 @@ public static partial class TransactionsOperationsExtensions /// 'not'. Tag filter is a key value pair string where key and value is /// separated by a colon (:). /// - public static IPage ListByBillingAccountName(this ITransactionsOperations operations, string billingAccountName, string startDate, string endDate, string filter = default(string)) + public static IPage ListByBillingAccount(this ITransactionsOperations operations, string billingAccountName, string startDate, string endDate, string filter = default(string)) { - return operations.ListByBillingAccountNameAsync(billingAccountName, startDate, endDate, filter).GetAwaiter().GetResult(); + return operations.ListByBillingAccountAsync(billingAccountName, startDate, endDate, filter).GetAwaiter().GetResult(); } /// /// Lists the transactions by billing account name for given start and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -75,9 +141,9 @@ public static partial class TransactionsOperationsExtensions /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameAsync(this ITransactionsOperations operations, string billingAccountName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingAccountAsync(this ITransactionsOperations operations, string billingAccountName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameWithHttpMessagesAsync(billingAccountName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -86,7 +152,7 @@ public static partial class TransactionsOperationsExtensions /// /// Lists the transactions by billing profile name for given start date and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -109,15 +175,15 @@ public static partial class TransactionsOperationsExtensions /// 'not'. Tag filter is a key value pair string where key and value is /// separated by a colon (:). /// - public static TransactionsListResult ListByBillingProfileName(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string)) + public static TransactionListResult ListByBillingProfile(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string)) { - return operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName, startDate, endDate, filter).GetAwaiter().GetResult(); + return operations.ListByBillingProfileAsync(billingAccountName, billingProfileName, startDate, endDate, filter).GetAwaiter().GetResult(); } /// /// Lists the transactions by billing profile name for given start date and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -143,9 +209,9 @@ public static partial class TransactionsOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByBillingProfileNameAsync(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByBillingProfileAsync(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingProfileNameWithHttpMessagesAsync(billingAccountName, billingProfileName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -154,7 +220,7 @@ public static partial class TransactionsOperationsExtensions /// /// Lists the transactions by invoice section name for given start date and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -162,6 +228,9 @@ public static partial class TransactionsOperationsExtensions /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -177,15 +246,15 @@ public static partial class TransactionsOperationsExtensions /// 'not'. Tag filter is a key value pair string where key and value is /// separated by a colon (:). /// - public static TransactionsListResult ListByInvoiceSectionName(this ITransactionsOperations operations, string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string)) + public static TransactionListResult ListByInvoiceSection(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string startDate, string endDate, string filter = default(string)) { - return operations.ListByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName, startDate, endDate, filter).GetAwaiter().GetResult(); + return operations.ListByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, startDate, endDate, filter).GetAwaiter().GetResult(); } /// /// Lists the transactions by invoice section name for given start date and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -193,6 +262,9 @@ public static partial class TransactionsOperationsExtensions /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -211,9 +283,105 @@ public static partial class TransactionsOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByInvoiceSectionNameAsync(this ITransactionsOperations operations, string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByInvoiceSectionAsync(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the transaction. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Transaction name. + /// + /// + /// Start date + /// + /// + /// End date + /// + public static Transaction Get(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string transactionName, string startDate, string endDate) + { + return operations.GetAsync(billingAccountName, billingProfileName, transactionName, startDate, endDate).GetAwaiter().GetResult(); + } + + /// + /// Get the transaction. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// billing Account Id. + /// + /// + /// Billing Profile Id. + /// + /// + /// Transaction name. + /// + /// + /// Start date + /// + /// + /// End date + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ITransactionsOperations operations, string billingAccountName, string billingProfileName, string transactionName, string startDate, string endDate, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInvoiceSectionNameWithHttpMessagesAsync(billingAccountName, invoiceSectionName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, billingProfileName, transactionName, startDate, endDate, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the transactions by customer id for given start date and end date. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByCustomerNext(this ITransactionsOperations operations, string nextPageLink) + { + return operations.ListByCustomerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the transactions by customer id for given start date and end date. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByCustomerNextAsync(this ITransactionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByCustomerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -222,7 +390,7 @@ public static partial class TransactionsOperationsExtensions /// /// Lists the transactions by billing account name for given start and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -230,15 +398,15 @@ public static partial class TransactionsOperationsExtensions /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByBillingAccountNameNext(this ITransactionsOperations operations, string nextPageLink) + public static IPage ListByBillingAccountNext(this ITransactionsOperations operations, string nextPageLink) { - return operations.ListByBillingAccountNameNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByBillingAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// /// Lists the transactions by billing account name for given start and end /// date. - /// + /// /// /// /// The operations group for this extension method. @@ -249,9 +417,9 @@ public static IPage ListByBillingAccountNameNext(this ITran /// /// The cancellation token. /// - public static async Task> ListByBillingAccountNameNextAsync(this ITransactionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByBillingAccountNextAsync(this ITransactionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByBillingAccountNameNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByBillingAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperations.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperations.cs index 9bd562f3cebd..7a42f150f109 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperations.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperations.cs @@ -56,11 +56,14 @@ internal TransfersOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// Initiate transfer parameters. + /// + /// Parameters supplied to initiate the transfer. /// /// /// Headers that will be added to request. @@ -83,19 +86,23 @@ internal TransfersOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> InitiateWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, InitiateTransferRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> InitiateWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, InitiateTransferRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); } - if (body == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -105,15 +112,17 @@ internal TransfersOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); - tracingParameters.Add("body", body); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Initiate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/initiateTransfer").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/initiateTransfer").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (_queryParameters.Count > 0) @@ -154,9 +163,9 @@ internal TransfersOperations(BillingManagementClient client) // Serialize Request string _requestContent = null; - if(body != null) + if(parameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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"); } @@ -248,6 +257,9 @@ internal TransfersOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -275,12 +287,16 @@ internal TransfersOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -297,6 +313,7 @@ internal TransfersOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("transferName", transferName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -304,8 +321,9 @@ internal TransfersOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{transferName}", System.Uri.EscapeDataString(transferName)); List _queryParameters = new List(); @@ -435,6 +453,9 @@ internal TransfersOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -462,12 +483,16 @@ internal TransfersOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CancelWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CancelWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -484,6 +509,7 @@ internal TransfersOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); tracingParameters.Add("transferName", transferName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -491,8 +517,9 @@ internal TransfersOperations(BillingManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); _url = _url.Replace("{transferName}", System.Uri.EscapeDataString(transferName)); List _queryParameters = new List(); @@ -622,6 +649,9 @@ internal TransfersOperations(BillingManagementClient client) /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -646,12 +676,16 @@ internal TransfersOperations(BillingManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (billingAccountName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "billingAccountName"); } + if (billingProfileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "billingProfileName"); + } if (invoiceSectionName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "invoiceSectionName"); @@ -664,14 +698,16 @@ internal TransfersOperations(BillingManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("billingAccountName", billingAccountName); + tracingParameters.Add("billingProfileName", billingProfileName); tracingParameters.Add("invoiceSectionName", invoiceSectionName); 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.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/transfers").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers").ToString(); _url = _url.Replace("{billingAccountName}", System.Uri.EscapeDataString(billingAccountName)); + _url = _url.Replace("{billingProfileName}", System.Uri.EscapeDataString(billingProfileName)); _url = _url.Replace("{invoiceSectionName}", System.Uri.EscapeDataString(invoiceSectionName)); List _queryParameters = new List(); if (_queryParameters.Count > 0) diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperationsExtensions.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperationsExtensions.cs index fc89c4ca02b4..3b529a83a0c3 100644 --- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperationsExtensions.cs +++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/TransfersOperationsExtensions.cs @@ -30,15 +30,18 @@ public static partial class TransfersOperationsExtensions /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// Initiate transfer parameters. + /// + /// Parameters supplied to initiate the transfer. /// - public static TransferDetails Initiate(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName, InitiateTransferRequest body) + public static TransferDetails Initiate(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InitiateTransferRequest parameters) { - return operations.InitiateAsync(billingAccountName, invoiceSectionName, body).GetAwaiter().GetResult(); + return operations.InitiateAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters).GetAwaiter().GetResult(); } /// @@ -50,18 +53,21 @@ public static TransferDetails Initiate(this ITransfersOperations operations, str /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - /// - /// Initiate transfer parameters. + /// + /// Parameters supplied to initiate the transfer. /// /// /// The cancellation token. /// - public static async Task InitiateAsync(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName, InitiateTransferRequest body, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task InitiateAsync(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, InitiateTransferRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.InitiateWithHttpMessagesAsync(billingAccountName, invoiceSectionName, body, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.InitiateWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -76,15 +82,18 @@ public static TransferDetails Initiate(this ITransfersOperations operations, str /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// Transfer Name. /// - public static TransferDetails Get(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName, string transferName) + public static TransferDetails Get(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName) { - return operations.GetAsync(billingAccountName, invoiceSectionName, transferName).GetAwaiter().GetResult(); + return operations.GetAsync(billingAccountName, billingProfileName, invoiceSectionName, transferName).GetAwaiter().GetResult(); } /// @@ -96,6 +105,9 @@ public static TransferDetails Get(this ITransfersOperations operations, string b /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -105,9 +117,9 @@ public static TransferDetails Get(this ITransfersOperations operations, string b /// /// The cancellation token. /// - public static async Task GetAsync(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName, string transferName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, invoiceSectionName, transferName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, transferName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -122,15 +134,18 @@ public static TransferDetails Get(this ITransfersOperations operations, string b /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// Transfer Name. /// - public static TransferDetails Cancel(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName, string transferName) + public static TransferDetails Cancel(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName) { - return operations.CancelAsync(billingAccountName, invoiceSectionName, transferName).GetAwaiter().GetResult(); + return operations.CancelAsync(billingAccountName, billingProfileName, invoiceSectionName, transferName).GetAwaiter().GetResult(); } /// @@ -142,6 +157,9 @@ public static TransferDetails Cancel(this ITransfersOperations operations, strin /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// @@ -151,9 +169,9 @@ public static TransferDetails Cancel(this ITransfersOperations operations, strin /// /// The cancellation token. /// - public static async Task CancelAsync(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName, string transferName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CancelAsync(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string transferName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CancelWithHttpMessagesAsync(billingAccountName, invoiceSectionName, transferName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CancelWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, transferName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -168,12 +186,15 @@ public static TransferDetails Cancel(this ITransfersOperations operations, strin /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// - public static IPage List(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName) + public static IPage List(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { - return operations.ListAsync(billingAccountName, invoiceSectionName).GetAwaiter().GetResult(); + return operations.ListAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult(); } /// @@ -185,15 +206,18 @@ public static IPage List(this ITransfersOperations operations, /// /// billing Account Id. /// + /// + /// Billing Profile Id. + /// /// /// InvoiceSection Id. /// /// /// The cancellation token. /// - public static async Task> ListAsync(this ITransfersOperations operations, string billingAccountName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this ITransfersOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } From 1ce1996e64aed49f16f2c0b4ff764ff4e396640c Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 21 Aug 2019 03:00:57 +0000 Subject: [PATCH 24/24] Generated from fc0bdde313743dbbed8e8c506dd9e07107d04142 Merge branch 'master' into ivan/support-express-custom-setup-for-manged-ir --- .../Generated/DataFactoryManagementClient.cs | 4 +- .../src/Generated/Models/AvroSink.cs | 24 ++++- .../src/Generated/Models/AzureBlobFSSink.cs | 7 +- .../Models/AzureBlobFSWriteSettings.cs | 23 +++-- .../Models/AzureBlobStorageWriteSettings.cs | 23 +++-- .../Generated/Models/AzureDataExplorerSink.cs | 7 +- .../Models/AzureDataLakeStoreSink.cs | 7 +- .../Models/AzureDataLakeStoreWriteSettings.cs | 15 ++- .../src/Generated/Models/AzureMySqlSink.cs | 7 +- .../Generated/Models/AzurePostgreSqlSink.cs | 7 +- .../src/Generated/Models/AzureQueueSink.cs | 7 +- .../Generated/Models/AzureSearchIndexSink.cs | 7 +- .../src/Generated/Models/AzureSqlSink.cs | 19 +--- .../src/Generated/Models/AzureTableSink.cs | 7 +- .../src/Generated/Models/BinarySink.cs | 20 +++- .../src/Generated/Models/BlobSink.cs | 7 +- .../src/Generated/Models/CmdkeySetup.cs | 92 +++++++++++++++++++ .../Models/CommonDataServiceForAppsSink.cs | 7 +- .../src/Generated/Models/ComponentSetup.cs | 81 ++++++++++++++++ .../src/Generated/Models/CopySink.cs | 14 ++- .../Models/CosmosDbMongoDbApiSink.cs | 7 +- .../src/Generated/Models/CustomSetupBase.cs | 35 +++++++ .../src/Generated/Models/DelimitedTextSink.cs | 11 ++- .../Models/DocumentDbCollectionSink.cs | 7 +- .../src/Generated/Models/DynamicsCrmSink.cs | 7 +- .../src/Generated/Models/DynamicsSink.cs | 7 +- .../Models/EnvironmentVariableSetup.cs | 81 ++++++++++++++++ .../Models/FileServerWriteSettings.cs | 15 ++- .../src/Generated/Models/FileSystemSink.cs | 7 +- .../src/Generated/Models/InformixSink.cs | 7 +- .../IntegrationRuntimeSsisProperties.cs | 12 ++- .../src/Generated/Models/JsonSink.cs | 24 ++++- .../Generated/Models/MicrosoftAccessSink.cs | 7 +- .../src/Generated/Models/OdbcSink.cs | 7 +- .../src/Generated/Models/OracleSink.cs | 7 +- .../src/Generated/Models/ParquetSink.cs | 20 +++- .../Models/SalesforceServiceCloudSink.cs | 7 +- .../src/Generated/Models/SalesforceSink.cs | 7 +- .../Models/SapCloudForCustomerSink.cs | 7 +- .../src/Generated/Models/SqlDWSink.cs | 19 +--- .../src/Generated/Models/SqlMISink.cs | 19 +--- .../src/Generated/Models/SqlServerSink.cs | 19 +--- .../src/Generated/Models/SqlSink.cs | 19 +--- .../Generated/Models/StoreWriteSettings.cs | 24 ++++- 44 files changed, 610 insertions(+), 157 deletions(-) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CmdkeySetup.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ComponentSetup.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CustomSetupBase.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EnvironmentVariableSetup.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs index e33e68d2d6aa..29123f6f8b6d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs @@ -457,12 +457,12 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("authorizationType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("authorizationType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); CustomInitialize(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs index 971fe631c2e1..9274f1e6ce64 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AvroSink.cs @@ -46,10 +46,13 @@ public AvroSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Avro store settings. /// Avro format settings. - public AvroSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), AvroWriteSettings formatSettings = default(AvroWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AvroSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), AvroWriteSettings formatSettings = default(AvroWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; FormatSettings = formatSettings; @@ -73,5 +76,22 @@ public AvroSink() [JsonProperty(PropertyName = "formatSettings")] public AvroWriteSettings FormatSettings { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + if (FormatSettings != null) + { + FormatSettings.Validate(); + } + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs index 587c3c7c0b67..b37f7384f30b 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSSink.cs @@ -46,10 +46,13 @@ public AzureBlobFSSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. - public AzureBlobFSSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureBlobFSSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CopyBehavior = copyBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs index a4190a133de4..b80df367637a 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSWriteSettings.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataFactory.Models { - using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -31,6 +30,7 @@ public AzureBlobFSWriteSettings() /// /// Initializes a new instance of the AzureBlobFSWriteSettings class. /// + /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -38,13 +38,9 @@ public AzureBlobFSWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - /// Indicates the block size(MB) when - /// writing data to blob. Type: integer (or Expression with resultType - /// integer). - public AzureBlobFSWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object blockSizeInMB = default(object)) - : base(additionalProperties, maxConcurrentConnections, copyBehavior) + public AzureBlobFSWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) { - BlockSizeInMB = blockSizeInMB; CustomInit(); } @@ -54,11 +50,14 @@ public AzureBlobFSWriteSettings() partial void CustomInit(); /// - /// Gets or sets indicates the block size(MB) when writing data to - /// blob. Type: integer (or Expression with resultType integer). + /// Validate the object. /// - [JsonProperty(PropertyName = "blockSizeInMB")] - public object BlockSizeInMB { get; set; } - + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs index 5abe50e082e2..b40c03973a83 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobStorageWriteSettings.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataFactory.Models { - using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -33,6 +32,7 @@ public AzureBlobStorageWriteSettings() /// Initializes a new instance of the AzureBlobStorageWriteSettings /// class. /// + /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -40,13 +40,9 @@ public AzureBlobStorageWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - /// Indicates the block size(MB) when - /// writing data to blob. Type: integer (or Expression with resultType - /// integer). - public AzureBlobStorageWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object blockSizeInMB = default(object)) - : base(additionalProperties, maxConcurrentConnections, copyBehavior) + public AzureBlobStorageWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) { - BlockSizeInMB = blockSizeInMB; CustomInit(); } @@ -56,11 +52,14 @@ public AzureBlobStorageWriteSettings() partial void CustomInit(); /// - /// Gets or sets indicates the block size(MB) when writing data to - /// blob. Type: integer (or Expression with resultType integer). + /// Validate the object. /// - [JsonProperty(PropertyName = "blockSizeInMB")] - public object BlockSizeInMB { get; set; } - + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs index c0cd48667b9d..9eaf14918f16 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataExplorerSink.cs @@ -46,6 +46,9 @@ public AzureDataExplorerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A name of a pre-created csv /// mapping that was defined on the target Kusto table. Type: /// string. @@ -53,8 +56,8 @@ public AzureDataExplorerSink() /// description provided in a json format. Type: string. /// If set to true, any aggregation will /// be skipped. Default is false. Type: boolean. - public AzureDataExplorerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ingestionMappingName = default(object), object ingestionMappingAsJson = default(object), object flushImmediately = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureDataExplorerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ingestionMappingName = default(object), object ingestionMappingAsJson = default(object), object flushImmediately = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IngestionMappingName = ingestionMappingName; IngestionMappingAsJson = ingestionMappingAsJson; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs index 0760f01ffd36..cfea28c077cc 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreSink.cs @@ -46,12 +46,15 @@ public AzureDataLakeStoreSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. /// Single File /// Parallel. - public AzureDataLakeStoreSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object enableAdlsSingleFileParallel = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureDataLakeStoreSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object), object enableAdlsSingleFileParallel = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CopyBehavior = copyBehavior; EnableAdlsSingleFileParallel = enableAdlsSingleFileParallel; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs index 6a3e6a6958a7..5d10b8f5583d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreWriteSettings.cs @@ -32,6 +32,7 @@ public AzureDataLakeStoreWriteSettings() /// Initializes a new instance of the AzureDataLakeStoreWriteSettings /// class. /// + /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -39,8 +40,8 @@ public AzureDataLakeStoreWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public AzureDataLakeStoreWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(additionalProperties, maxConcurrentConnections, copyBehavior) + public AzureDataLakeStoreWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) { CustomInit(); } @@ -50,5 +51,15 @@ public AzureDataLakeStoreWriteSettings() /// partial void CustomInit(); + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs index 833052d405ae..9b42ad79a764 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMySqlSink.cs @@ -46,10 +46,13 @@ public AzureMySqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public AzureMySqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureMySqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs index b7948c955b27..f1d8cbfe3e79 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzurePostgreSqlSink.cs @@ -46,10 +46,13 @@ public AzurePostgreSqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public AzurePostgreSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzurePostgreSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs index a3412d7745c0..8813cafc55c1 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureQueueSink.cs @@ -45,8 +45,11 @@ public AzureQueueSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - public AzureQueueSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public AzureQueueSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CustomInit(); } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs index cc1483ddc136..2845ca9f5a76 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSearchIndexSink.cs @@ -46,11 +46,14 @@ public AzureSearchIndexSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Specify the write behavior when /// upserting documents into Azure Search Index. Possible values /// include: 'Merge', 'Upload' - public AzureSearchIndexSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureSearchIndexSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs index e5132caf465f..69746f19d8e7 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlSink.cs @@ -46,6 +46,9 @@ public AzureSqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,18 +61,14 @@ public AzureSqlSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). - public AzureSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureSqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - TableOption = tableOption; CustomInit(); } @@ -112,13 +111,5 @@ public AzureSqlSink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } - /// - /// Gets or sets the option to handle sink table, such as autoCreate. - /// For now only 'autoCreate' value is supported. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "tableOption")] - public object TableOption { get; set; } - } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs index 3700867f3ad8..63f7cb275dda 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureTableSink.cs @@ -46,6 +46,9 @@ public AzureTableSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Azure Table /// default partition key value. Type: string (or Expression with /// resultType string). @@ -55,8 +58,8 @@ public AzureTableSink() /// string (or Expression with resultType string). /// Azure Table insert type. Type: /// string (or Expression with resultType string). - public AzureTableSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object azureTableDefaultPartitionKeyValue = default(object), object azureTablePartitionKeyName = default(object), object azureTableRowKeyName = default(object), object azureTableInsertType = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public AzureTableSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object azureTableDefaultPartitionKeyValue = default(object), object azureTablePartitionKeyName = default(object), object azureTableRowKeyName = default(object), object azureTableInsertType = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { AzureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue; AzureTablePartitionKeyName = azureTablePartitionKeyName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs index 5fec652f6705..fa827814e6bb 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs @@ -46,9 +46,12 @@ public BinarySink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Binary store settings. - public BinarySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public BinarySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; CustomInit(); @@ -65,5 +68,18 @@ public BinarySink() [JsonProperty(PropertyName = "storeSettings")] public StoreWriteSettings StoreSettings { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs index ff85b921f5a5..426e9f94f571 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BlobSink.cs @@ -46,6 +46,9 @@ public BlobSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Blob writer overwrite files. /// Type: boolean (or Expression with resultType boolean). /// Blob writer date time @@ -55,8 +58,8 @@ public BlobSink() /// boolean (or Expression with resultType boolean). /// The type of copy behavior for copy /// sink. - public BlobSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object blobWriterOverwriteFiles = default(object), object blobWriterDateTimeFormat = default(object), object blobWriterAddHeader = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public BlobSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object blobWriterOverwriteFiles = default(object), object blobWriterDateTimeFormat = default(object), object blobWriterAddHeader = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { BlobWriterOverwriteFiles = blobWriterOverwriteFiles; BlobWriterDateTimeFormat = blobWriterDateTimeFormat; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CmdkeySetup.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CmdkeySetup.cs new file mode 100644 index 000000000000..45d119702566 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CmdkeySetup.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The custom setup of running cmdkey commands. + /// + [Rest.Serialization.JsonTransformation] + public partial class CmdkeySetup : CustomSetupBase + { + /// + /// Initializes a new instance of the CmdkeySetup class. + /// + public CmdkeySetup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CmdkeySetup class. + /// + /// The server name of data source + /// access. + /// The user name of data source access. + /// The password of data source access. + public CmdkeySetup(object targetName, object userName, SecretBase password) + { + TargetName = targetName; + UserName = userName; + Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the server name of data source access. + /// + [JsonProperty(PropertyName = "typeProperties.targetName")] + public object TargetName { get; set; } + + /// + /// Gets or sets the user name of data source access. + /// + [JsonProperty(PropertyName = "typeProperties.userName")] + public object UserName { get; set; } + + /// + /// Gets or sets the password of data source access. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetName"); + } + if (UserName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "UserName"); + } + if (Password == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Password"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs index 3d2ecc7c8606..81baff60460c 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs @@ -48,12 +48,15 @@ public CommonDataServiceForAppsSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The flag indicating whether to /// ignore null values from input dataset (except key fields) during /// write operation. Default is false. Type: boolean (or Expression /// with resultType boolean). - public CommonDataServiceForAppsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public CommonDataServiceForAppsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ComponentSetup.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ComponentSetup.cs new file mode 100644 index 000000000000..ac77e7b741ae --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ComponentSetup.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The custom setup of installing 3rd party components. + /// + [Rest.Serialization.JsonTransformation] + public partial class ComponentSetup : CustomSetupBase + { + /// + /// Initializes a new instance of the ComponentSetup class. + /// + public ComponentSetup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ComponentSetup class. + /// + /// The name of the 3rd party + /// component. + /// The license key to activate the + /// component. + public ComponentSetup(string componentName, SecretBase licenseKey) + { + ComponentName = componentName; + LicenseKey = licenseKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the 3rd party component. + /// + [JsonProperty(PropertyName = "typeProperties.componentName")] + public string ComponentName { get; set; } + + /// + /// Gets or sets the license key to activate the component. + /// + [JsonProperty(PropertyName = "typeProperties.licenseKey")] + public SecretBase LicenseKey { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ComponentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ComponentName"); + } + if (LicenseKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LicenseKey"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs index ac2f9e17465e..e0419e79400a 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CopySink.cs @@ -46,7 +46,10 @@ public CopySink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). - public CopySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object)) + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). + public CopySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object)) { AdditionalProperties = additionalProperties; WriteBatchSize = writeBatchSize; @@ -54,6 +57,7 @@ public CopySink() SinkRetryCount = sinkRetryCount; SinkRetryWait = sinkRetryWait; MaxConcurrentConnections = maxConcurrentConnections; + TableOption = tableOption; CustomInit(); } @@ -106,5 +110,13 @@ public CopySink() [JsonProperty(PropertyName = "maxConcurrentConnections")] public object MaxConcurrentConnections { get; set; } + /// + /// Gets or sets the option to handle sink table, such as autoCreate. + /// For now only 'autoCreate' value is supported. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "tableOption")] + public object TableOption { get; set; } + } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs index 396dec19b3c1..8f120b788ec2 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbMongoDbApiSink.cs @@ -46,13 +46,16 @@ public CosmosDbMongoDbApiSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Specifies whether the document with /// same key to be overwritten (upsert) rather than throw exception /// (insert). The default value is "insert". Type: string (or /// Expression with resultType string). Type: string (or Expression /// with resultType string). - public CosmosDbMongoDbApiSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object writeBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public CosmosDbMongoDbApiSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object writeBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CustomSetupBase.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CustomSetupBase.cs new file mode 100644 index 000000000000..eb4d7b084004 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CustomSetupBase.cs @@ -0,0 +1,35 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + /// + /// The base definition of the custom setup. + /// + public partial class CustomSetupBase + { + /// + /// Initializes a new instance of the CustomSetupBase class. + /// + public CustomSetupBase() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs index d6c268d8b94f..77247684a5f5 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DelimitedTextSink.cs @@ -46,10 +46,13 @@ public DelimitedTextSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// DelimitedText store settings. /// DelimitedText format settings. - public DelimitedTextSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), DelimitedTextWriteSettings formatSettings = default(DelimitedTextWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DelimitedTextSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), DelimitedTextWriteSettings formatSettings = default(DelimitedTextWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; FormatSettings = formatSettings; @@ -81,6 +84,10 @@ public DelimitedTextSink() /// public virtual void Validate() { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } if (FormatSettings != null) { FormatSettings.Validate(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs index 9ceefb6b2244..05618fdb3770 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DocumentDbCollectionSink.cs @@ -46,13 +46,16 @@ public DocumentDbCollectionSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Nested properties separator. Default /// is . (dot). Type: string (or Expression with resultType /// string). /// Describes how to write data to Azure /// Cosmos DB. Allowed values: insert and upsert. - public DocumentDbCollectionSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object nestingSeparator = default(object), object writeBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DocumentDbCollectionSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object nestingSeparator = default(object), object writeBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { NestingSeparator = nestingSeparator; WriteBehavior = writeBehavior; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs index 25a45867354d..400055fb26ef 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs @@ -46,12 +46,15 @@ public DynamicsCrmSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The flag indicating whether to /// ignore null values from input dataset (except key fields) during /// write operation. Default is false. Type: boolean (or Expression /// with resultType boolean). - public DynamicsCrmSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DynamicsCrmSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs index 34852c284b6a..1d15c9e2506b 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsSink.cs @@ -46,12 +46,15 @@ public DynamicsSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The flag indicating whether ignore /// null values from input dataset (except key fields) during write /// operation. Default is false. Type: boolean (or Expression with /// resultType boolean). - public DynamicsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public DynamicsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { IgnoreNullValues = ignoreNullValues; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EnvironmentVariableSetup.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EnvironmentVariableSetup.cs new file mode 100644 index 000000000000..f5845ebf762b --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/EnvironmentVariableSetup.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The custom setup of setting environment variable. + /// + [Rest.Serialization.JsonTransformation] + public partial class EnvironmentVariableSetup : CustomSetupBase + { + /// + /// Initializes a new instance of the EnvironmentVariableSetup class. + /// + public EnvironmentVariableSetup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EnvironmentVariableSetup class. + /// + /// The name of the environment + /// variable. + /// The value of the environment + /// variable. + public EnvironmentVariableSetup(string variableName, string variableValue) + { + VariableName = variableName; + VariableValue = variableValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the environment variable. + /// + [JsonProperty(PropertyName = "typeProperties.variableName")] + public string VariableName { get; set; } + + /// + /// Gets or sets the value of the environment variable. + /// + [JsonProperty(PropertyName = "typeProperties.variableValue")] + public string VariableValue { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VariableName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "VariableName"); + } + if (VariableValue == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "VariableValue"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs index b89b89c40ba2..c7f5984e798d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileServerWriteSettings.cs @@ -30,6 +30,7 @@ public FileServerWriteSettings() /// /// Initializes a new instance of the FileServerWriteSettings class. /// + /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -37,8 +38,8 @@ public FileServerWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public FileServerWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(additionalProperties, maxConcurrentConnections, copyBehavior) + public FileServerWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + : base(type, additionalProperties, maxConcurrentConnections, copyBehavior) { CustomInit(); } @@ -48,5 +49,15 @@ public FileServerWriteSettings() /// partial void CustomInit(); + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs index a5020f9d87af..10e949b9a56d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileSystemSink.cs @@ -46,10 +46,13 @@ public FileSystemSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The type of copy behavior for copy /// sink. - public FileSystemSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public FileSystemSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object copyBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { CopyBehavior = copyBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs index 0ceb858146c6..253b5f23987e 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs @@ -46,10 +46,13 @@ public InformixSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public InformixSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public InformixSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs index cd1b8b9fc3af..ce973fd96ae6 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs @@ -46,7 +46,9 @@ public IntegrationRuntimeSsisProperties() /// managed dedicated integration runtime. /// The edition for the SSIS Integration Runtime. /// Possible values include: 'Standard', 'Enterprise' - public IntegrationRuntimeSsisProperties(IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeSsisCatalogInfo catalogInfo = default(IntegrationRuntimeSsisCatalogInfo), string licenseType = default(string), IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties = default(IntegrationRuntimeCustomSetupScriptProperties), IntegrationRuntimeDataProxyProperties dataProxyProperties = default(IntegrationRuntimeDataProxyProperties), string edition = default(string)) + /// Custom setup without + /// script properties for a SSIS integration runtime. + public IntegrationRuntimeSsisProperties(IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeSsisCatalogInfo catalogInfo = default(IntegrationRuntimeSsisCatalogInfo), string licenseType = default(string), IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties = default(IntegrationRuntimeCustomSetupScriptProperties), IntegrationRuntimeDataProxyProperties dataProxyProperties = default(IntegrationRuntimeDataProxyProperties), string edition = default(string), IList expressCustomSetupProperties = default(IList)) { AdditionalProperties = additionalProperties; CatalogInfo = catalogInfo; @@ -54,6 +56,7 @@ public IntegrationRuntimeSsisProperties() CustomSetupScriptProperties = customSetupScriptProperties; DataProxyProperties = dataProxyProperties; Edition = edition; + ExpressCustomSetupProperties = expressCustomSetupProperties; CustomInit(); } @@ -104,6 +107,13 @@ public IntegrationRuntimeSsisProperties() [JsonProperty(PropertyName = "edition")] public string Edition { get; set; } + /// + /// Gets or sets custom setup without script properties for a SSIS + /// integration runtime. + /// + [JsonProperty(PropertyName = "expressCustomSetupProperties")] + public IList ExpressCustomSetupProperties { get; set; } + /// /// Validate the object. /// diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs index 703c9718ea8c..ac94b3be6d3e 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonSink.cs @@ -46,10 +46,13 @@ public JsonSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Json store settings. /// Json format settings. - public JsonSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), JsonWriteSettings formatSettings = default(JsonWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public JsonSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), JsonWriteSettings formatSettings = default(JsonWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; FormatSettings = formatSettings; @@ -73,5 +76,22 @@ public JsonSink() [JsonProperty(PropertyName = "formatSettings")] public JsonWriteSettings FormatSettings { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + if (FormatSettings != null) + { + FormatSettings.Validate(); + } + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs index 899d6f038b43..29ecbea568fd 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs @@ -46,10 +46,13 @@ public MicrosoftAccessSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public MicrosoftAccessSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public MicrosoftAccessSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs index 7151280b5eca..2d0ad3bdc807 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OdbcSink.cs @@ -46,10 +46,13 @@ public OdbcSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// A query to execute before starting the /// copy. Type: string (or Expression with resultType string). - public OdbcSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public OdbcSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs index 7859a5c6260b..3aed6e3d813d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OracleSink.cs @@ -46,10 +46,13 @@ public OracleSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL pre-copy script. Type: string (or /// Expression with resultType string). - public OracleSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public OracleSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs index 67b95379fe09..6d975bbfd3f4 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ParquetSink.cs @@ -46,9 +46,12 @@ public ParquetSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// Parquet store settings. - public ParquetSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public ParquetSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { StoreSettings = storeSettings; CustomInit(); @@ -65,5 +68,18 @@ public ParquetSink() [JsonProperty(PropertyName = "storeSettings")] public StoreWriteSettings StoreSettings { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs index a260bddc659c..bd3ff8173a12 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs @@ -46,6 +46,9 @@ public SalesforceServiceCloudSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is Insert. Possible values include: 'Insert', /// 'Upsert' @@ -61,8 +64,8 @@ public SalesforceServiceCloudSink() /// destination object to NULL when doing upsert/update operation and /// insert NULL value when doing insert operation. Type: boolean (or /// Expression with resultType boolean). - public SalesforceServiceCloudSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SalesforceServiceCloudSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; ExternalIdFieldName = externalIdFieldName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs index cba5c6904541..69304bd4f61d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceSink.cs @@ -46,6 +46,9 @@ public SalesforceSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is Insert. Possible values include: 'Insert', /// 'Upsert' @@ -61,8 +64,8 @@ public SalesforceSink() /// destination object to NULL when doing upsert/update operation and /// insert NULL value when doing insert operation. Type: boolean (or /// Expression with resultType boolean). - public SalesforceSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SalesforceSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; ExternalIdFieldName = externalIdFieldName; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs index 9157f1e4386f..e5dc41803f2f 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapCloudForCustomerSink.cs @@ -46,11 +46,14 @@ public SapCloudForCustomerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// The write behavior for the operation. /// Default is 'Insert'. Possible values include: 'Insert', /// 'Update' - public SapCloudForCustomerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SapCloudForCustomerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), string writeBehavior = default(string)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { WriteBehavior = writeBehavior; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs index 665789d11e24..805f98203a7c 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlDWSink.cs @@ -46,6 +46,9 @@ public SqlDWSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL pre-copy script. Type: string (or /// Expression with resultType string). /// Indicates to use PolyBase to copy data @@ -53,16 +56,12 @@ public SqlDWSink() /// Expression with resultType boolean). /// Specifies PolyBase-related settings /// when allowPolyBase is true. - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). - public SqlDWSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object), object allowPolyBase = default(object), PolybaseSettings polyBaseSettings = default(PolybaseSettings), object tableOption = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlDWSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object preCopyScript = default(object), object allowPolyBase = default(object), PolybaseSettings polyBaseSettings = default(PolybaseSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { PreCopyScript = preCopyScript; AllowPolyBase = allowPolyBase; PolyBaseSettings = polyBaseSettings; - TableOption = tableOption; CustomInit(); } @@ -93,13 +92,5 @@ public SqlDWSink() [JsonProperty(PropertyName = "polyBaseSettings")] public PolybaseSettings PolyBaseSettings { get; set; } - /// - /// Gets or sets the option to handle sink table, such as autoCreate. - /// For now only 'autoCreate' value is supported. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "tableOption")] - public object TableOption { get; set; } - } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs index d64ed35f2ae2..d11009fac792 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs @@ -46,6 +46,9 @@ public SqlMISink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,18 +61,14 @@ public SqlMISink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). - public SqlMISink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlMISink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - TableOption = tableOption; CustomInit(); } @@ -112,13 +111,5 @@ public SqlMISink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } - /// - /// Gets or sets the option to handle sink table, such as autoCreate. - /// For now only 'autoCreate' value is supported. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "tableOption")] - public object TableOption { get; set; } - } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs index ab3da5038a7d..a3f859004857 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlServerSink.cs @@ -46,6 +46,9 @@ public SqlServerSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,18 +61,14 @@ public SqlServerSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). - public SqlServerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlServerSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - TableOption = tableOption; CustomInit(); } @@ -112,13 +111,5 @@ public SqlServerSink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } - /// - /// Gets or sets the option to handle sink table, such as autoCreate. - /// For now only 'autoCreate' value is supported. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "tableOption")] - public object TableOption { get; set; } - } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs index a388a568e45f..3d3e70cc329d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlSink.cs @@ -46,6 +46,9 @@ public SqlSink() /// The maximum concurrent /// connection count for the sink data store. Type: integer (or /// Expression with resultType integer). + /// The option to handle sink table, such as + /// autoCreate. For now only 'autoCreate' value is supported. Type: + /// string (or Expression with resultType string). /// SQL writer stored /// procedure name. Type: string (or Expression with resultType /// string). @@ -58,18 +61,14 @@ public SqlSink() /// The stored /// procedure parameter name of the table type. Type: string (or /// Expression with resultType string). - /// The option to handle sink table, such as - /// autoCreate. For now only 'autoCreate' value is supported. Type: - /// string (or Expression with resultType string). - public SqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object), object tableOption = default(object)) - : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + public SqlSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object tableOption = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, tableOption) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; PreCopyScript = preCopyScript; StoredProcedureParameters = storedProcedureParameters; StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - TableOption = tableOption; CustomInit(); } @@ -112,13 +111,5 @@ public SqlSink() [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] public object StoredProcedureTableTypeParameterName { get; set; } - /// - /// Gets or sets the option to handle sink table, such as autoCreate. - /// For now only 'autoCreate' value is supported. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "tableOption")] - public object TableOption { get; set; } - } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs index 0346d5e0d099..a2865e56f776 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/StoreWriteSettings.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.DataFactory.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -31,6 +32,7 @@ public StoreWriteSettings() /// /// Initializes a new instance of the StoreWriteSettings class. /// + /// The write setting type. /// Unmatched properties from the /// message are deserialized this collection /// The maximum concurrent @@ -38,9 +40,10 @@ public StoreWriteSettings() /// Expression with resultType integer). /// The type of copy behavior for copy /// sink. - public StoreWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) + public StoreWriteSettings(string type, IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object)) { AdditionalProperties = additionalProperties; + Type = type; MaxConcurrentConnections = maxConcurrentConnections; CopyBehavior = copyBehavior; CustomInit(); @@ -58,6 +61,12 @@ public StoreWriteSettings() [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } + /// + /// Gets or sets the write setting type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + /// /// Gets or sets the maximum concurrent connection count for the source /// data store. Type: integer (or Expression with resultType integer). @@ -71,5 +80,18 @@ public StoreWriteSettings() [JsonProperty(PropertyName = "copyBehavior")] public object CopyBehavior { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } } }