From baff4e739825195a6a9ec36c4fc6a9aa46fd4f03 Mon Sep 17 00:00:00 2001 From: msJinLei Date: Tue, 22 Dec 2020 10:41:09 +0800 Subject: [PATCH] MySql flexibler server enhancement --- src/MySql/Az.MySql.psd1 | 12 +- src/MySql/build-module.ps1 | 2 +- .../custom/Get-AzMySqlConnectionString.ps1 | 2 +- ...-AzMySqlFlexibleServerConnectionString.ps1 | 144 + ...lFlexibleServerLocationBasedCapability.ps1 | 119 + .../custom/New-AzMySqlFlexibleServer.ps1 | 725 +- .../New-AzMySqlFlexibleServerFirewallRule.ps1 | 1 + .../New-AzMySqlFlexibleServerReplica.ps1 | 202 +- .../custom/Update-AzMySqlFlexibleServer.ps1 | 4 + src/MySql/custom/readme.md | 8 +- ...t-AzMySqlFlexibleServerConnectionString.md | 16 + ...qlFlexibleServerLocationBasedCapability.md | 27 + .../examples/New-AzMySqlFlexibleServer.md | 144 +- .../exports/Get-AzMySqlConnectionString.ps1 | 4 +- ...-AzMySqlFlexibleServerConnectionString.ps1 | 177 + ...lFlexibleServerLocationBasedCapability.ps1 | 153 + .../exports/New-AzMySqlFlexibleServer.ps1 | 204 +- src/MySql/exports/ProxyCmdletDefinitions.ps1 | 538 +- src/MySql/generate-info.json | 10 +- src/MySql/generated/api/MySql.cs | 2379 ++-- src/MySql/generated/api/Support/CreateMode.cs | 2 +- .../api/Support/GeoRedundantBackup.cs | 2 +- .../generated/api/Support/HaEnabledEnum.cs | 2 +- .../generated/api/Support/IdentityType.cs | 2 +- .../api/Support/InfrastructureEncryption.cs | 2 +- .../Support/InfrastructureEncryptionEnum.cs | 2 +- .../api/Support/IsConfigPendingRestart.cs | 2 +- .../generated/api/Support/IsDynamicConfig.cs | 2 +- src/MySql/generated/api/Support/IsReadOnly.cs | 2 +- .../api/Support/MinimalTlsVersionEnum.cs | 2 +- .../generated/api/Support/OperationOrigin.cs | 2 +- .../PrivateEndpointProvisioningState.cs | 2 +- ...inkServiceConnectionStateActionsRequire.cs | 2 +- ...PrivateLinkServiceConnectionStateStatus.cs | 2 +- .../api/Support/PublicNetworkAccessEnum.cs | 2 +- .../api/Support/ResourceIdentityType.cs | 2 +- .../api/Support/SecurityAlertPolicyName.cs | 2 +- .../generated/api/Support/ServerHaState.cs | 2 +- .../Support/ServerSecurityAlertPolicyState.cs | 2 +- .../generated/api/Support/ServerState.cs | 2 +- .../generated/api/Support/ServerVersion.cs | 2 +- src/MySql/generated/api/Support/SkuTier.cs | 2 +- .../api/Support/SslEnforcementEnum.cs | 2 +- .../generated/api/Support/StorageAutogrow.cs | 2 +- .../api/Support/VirtualNetworkRuleState.cs | 2 +- .../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 2 +- .../runtime/UndeclaredResponseException.cs | 7 +- src/MySql/help/Az.MySql.md | 6 + src/MySql/help/Get-AzMySqlConnectionString.md | 4 +- ...t-AzMySqlFlexibleServerConnectionString.md | 177 + ...qlFlexibleServerLocationBasedCapability.md | 115 + src/MySql/help/New-AzMySqlFlexibleServer.md | 280 +- ...lFlexibleServerLocationBasedCapability.ps1 | 28 +- .../internal/New-AzMySqlFlexibleServer.ps1 | 125 +- src/MySql/internal/ProxyCmdletDefinitions.ps1 | 153 +- src/MySql/readme.md | 8 +- src/MySql/test/Az.MySql-TestResults.xml | 363 +- ...xibleServerConnectionString.Recording.json | 236 + ...qlFlexibleServerConnectionString.Tests.ps1 | 40 + ...rverLocationBasedCapability.Recording.json | 41 + ...bleServerLocationBasedCapability.Tests.ps1 | 21 + .../New-AzMySqlFlexibleServer.Recording.json | 10898 ++++++++++++++++ .../test/New-AzMySqlFlexibleServer.Tests.ps1 | 327 +- ...ew-AzMySqlFlexibleServerOld.Recording.json | 3495 +++++ ...emove-AzMySqlFlexibleServer.Recording.json | 162 +- .../Remove-AzMySqlFlexibleServer.Tests.ps1 | 8 +- src/MySql/test/env.json | 20 +- src/MySql/test/localEnv.json | 22 +- src/MySql/test/utils.ps1 | 6 + src/MySql/utils/adjectives.txt | 166 + src/MySql/utils/nouns.txt | 138 + 71 files changed, 20121 insertions(+), 1648 deletions(-) create mode 100644 src/MySql/custom/Get-AzMySqlFlexibleServerConnectionString.ps1 create mode 100644 src/MySql/custom/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 create mode 100644 src/MySql/examples/Get-AzMySqlFlexibleServerConnectionString.md create mode 100644 src/MySql/examples/Get-AzMySqlFlexibleServerLocationBasedCapability.md create mode 100644 src/MySql/exports/Get-AzMySqlFlexibleServerConnectionString.ps1 create mode 100644 src/MySql/exports/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 create mode 100644 src/MySql/help/Get-AzMySqlFlexibleServerConnectionString.md create mode 100644 src/MySql/help/Get-AzMySqlFlexibleServerLocationBasedCapability.md create mode 100644 src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Recording.json create mode 100644 src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Tests.ps1 create mode 100644 src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Recording.json create mode 100644 src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Tests.ps1 create mode 100644 src/MySql/test/New-AzMySqlFlexibleServerOld.Recording.json create mode 100644 src/MySql/utils/adjectives.txt create mode 100644 src/MySql/utils/nouns.txt diff --git a/src/MySql/Az.MySql.psd1 b/src/MySql/Az.MySql.psd1 index f4a08e4ea6a9..4eaa2b02b2aa 100644 --- a/src/MySql/Az.MySql.psd1 +++ b/src/MySql/Az.MySql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/3/2020 +# Generated on: 12/22/2020 # @{ @@ -12,7 +12,7 @@ RootModule = './Az.MySql.psm1' # Version number of this module. -ModuleVersion = '0.3.1' +ModuleVersion = '0.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -45,7 +45,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# CLRVersion = '' +# ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' @@ -63,7 +63,7 @@ RequiredAssemblies = './bin/Az.MySql.private.dll' # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'Az.MySql.format.ps1xml' +FormatsToProcess = './Az.MySql.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() @@ -72,8 +72,10 @@ FormatsToProcess = 'Az.MySql.format.ps1xml' FunctionsToExport = 'Get-AzMySqlConfiguration', 'Get-AzMySqlConnectionString', 'Get-AzMySqlFirewallRule', 'Get-AzMySqlFlexibleServer', 'Get-AzMySqlFlexibleServerConfiguration', + 'Get-AzMySqlFlexibleServerConnectionString', 'Get-AzMySqlFlexibleServerDatabase', 'Get-AzMySqlFlexibleServerFirewallRule', + 'Get-AzMySqlFlexibleServerLocationBasedCapability', 'Get-AzMySqlFlexibleServerReplica', 'Get-AzMySqlReplica', 'Get-AzMySqlServer', 'Get-AzMySqlVirtualNetworkRule', 'New-AzMySqlFirewallRule', 'New-AzMySqlFlexibleServer', @@ -130,7 +132,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed secure string issue' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/MySql/build-module.ps1 b/src/MySql/build-module.ps1 index 2c5033c7ff80..be1239ce26d1 100644 --- a/src/MySql/build-module.ps1 +++ b/src/MySql/build-module.ps1 @@ -122,7 +122,7 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder if($NoDocs) { Write-Host -ForegroundColor Green 'Creating exports...' - Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder } else { Write-Host -ForegroundColor Green 'Creating exports and docs...' $moduleDescription = 'Microsoft Azure PowerShell: MySql cmdlets' diff --git a/src/MySql/custom/Get-AzMySqlConnectionString.ps1 b/src/MySql/custom/Get-AzMySqlConnectionString.ps1 index d10be97099a0..7be347e497f9 100644 --- a/src/MySql/custom/Get-AzMySqlConnectionString.ps1 +++ b/src/MySql/custom/Get-AzMySqlConnectionString.ps1 @@ -34,7 +34,7 @@ function Get-AzMySqlConnectionString { [System.String] ${SubscriptionId}, - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to create replica from.')] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'Name of the server')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] ${InputObject}, diff --git a/src/MySql/custom/Get-AzMySqlFlexibleServerConnectionString.ps1 b/src/MySql/custom/Get-AzMySqlFlexibleServerConnectionString.ps1 new file mode 100644 index 000000000000..a05f9d15a6d3 --- /dev/null +++ b/src/MySql/custom/Get-AzMySqlFlexibleServerConnectionString.ps1 @@ -0,0 +1,144 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the connection string according to client connection provider. +.Description +Get the connection string according to client connection provider. +#> + +function Get-AzMySqlFlexibleServerConnectionString { + [OutputType([System.String])] + [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Get the connection string according to client connection provider.')] + param( + [Parameter(ParameterSetName='Get', Mandatory, HelpMessage = 'The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(Mandatory, HelpMessage = 'Client connection provider.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Validateset('ADO.NET', 'JDBC', 'Node.js', 'PHP', 'Python', 'Ruby', 'WebApp')] + [System.String] + ${Client}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'Name of the server')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + ${InputObject}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + function GetConnectionStringSslPart { + param( + [Parameter()] + [string] + ${Client}, + [Parameter()] + [string] + ${SslEnforcement} + ) + $SslEnforcementTemplateMap = @{ + 'ADO.NET' = 'SslMode=MySqlSslMode.Required;SslCa="{ca-cert filename}"' + 'JDBC' = '?useSSL=true' + 'Node.js' = ', ssl:{ca:fs.readFileSync({ca-cert filename})}' + 'PHP' = 'mysqli_ssl_set($con, NULL, NULL, {ca-cert filename}, NULL, NULL);' + 'Python' = ', ssl_ca={ca-cert filename}, ssl_verify_cert=true' + 'Ruby' = ', sslca:{ca-cert filename}, sslverify:false, sslcipher:"AES256-SHA"' + 'WebApp' = '' + } + if ($SslEnforcement -eq 'Enabled') { + return $SslEnforcementTemplateMap[$Client] + } + return '' + } + + $clientConnection = $PSBoundParameters['Client'] + $null = $PSBoundParameters.Remove('Client') + $mySqlServer = Az.MySql\Get-AzMySqlFlexibleServer @PSBoundParameters + $DBHost = $mySqlServer.FullyQualifiedDomainName + $DBPort = 3306 + $adminName = $mySqlServer.AdministratorLogin + $SslConnectionString = GetConnectionStringSslPart -Client $clientConnection -SslEnforcement $mySqlServer.SslEnforcement + $ConnectionStringMap = @{ + 'ADO.NET' = "Server=${DBHost}; Port=${DBPort}; Database={your_database}; UserID=${adminName}; Password={your_password}; $SslConnectionString" + 'JDBC' = "String url =`"jdbc:mysql://${DBHost}:${DBPort}/{your_database}$SslConnectionString`"; myDbConn = DriverManager.getConnection(url, `"${adminName}`", {your_password});" + 'Node.js' = "var conn = mysql.createConnection({host: `"${DBHost}`", user: `"${adminName}`", password: {your_password}, database: {your_database}, port: ${DBPort}$SslConnectionString});" + 'PHP' = "`$con=mysqli_init();$SslConnectionString mysqli_real_connect(`$con, `"${DBHost}`", `"${adminName}`", {your_password}, {your_database}, ${DBPort});" + 'Python' = "cnx = mysql.connector.connect(user=`"${adminName}`", password={your_password}, host=`"${DBHost}`", port=${DBPort}, database={your_database}$SslConnectionString)" + 'Ruby' = "client = Mysql2::Client.new(username: `"${adminName}`", password: {your_password}, database: {your_database}, host: `"${DBHost}`", port: ${DBPort}$SslConnectionString)" + } + return $ConnectionStringMap[$Client] + } +} + diff --git a/src/MySql/custom/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 b/src/MySql/custom/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 new file mode 100644 index 000000000000..fe5009fa089c --- /dev/null +++ b/src/MySql/custom/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 @@ -0,0 +1,119 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the available SKU information for the location +.Description +Get the available SKU information for the location +#> + +function Get-AzMySqlFlexibleServerLocationBasedCapability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + try { + $PSBoundParameters.LocationName = $PSBoundParameters['Location'] + $null = $PSBoundParameters.Remove('Location') + + $Result = Az.MySql.internal\Get-AzMySqlFlexibleServerLocationBasedCapability @PSBoundParameters + Write-Host "Please refer to https://aka.ms/mysql-pricing for pricing details" + $SkusTiers = $Result[0].SupportedFlexibleServerEdition + $TableResult = @() + + ForEach ($Skus in $SkusTiers) { + $TierName = $Skus.Name + Try { + $Keys = $Skus.SupportedServerVersion[0].SupportedVcore + + ForEach ($Key in $Keys) { + $NewEntry = New-Object -TypeName PSCustomObject -Property @{SKU=$Key.Name; Tier=$TierName; vCore=$Key.Vcore; Memory=$Key.SupportedMemoryPerVcoreMb} + $TableResult += $NewEntry + } + } + Catch { + Throw "No SKU info for this location" + } + } + + return $TableResult + + + } catch { + throw + } +} +} \ No newline at end of file diff --git a/src/MySql/custom/New-AzMySqlFlexibleServer.ps1 b/src/MySql/custom/New-AzMySqlFlexibleServer.ps1 index f25d490deb15..b621e2fe64ce 100644 --- a/src/MySql/custom/New-AzMySqlFlexibleServer.ps1 +++ b/src/MySql/custom/New-AzMySqlFlexibleServer.ps1 @@ -19,188 +19,589 @@ Creates a new MySQL flexible server .Description Creates a new MySQL flexible server #> -function New-AzMySqlFlexibleServer { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] - [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new server.')] - param( - [Parameter(Mandatory, HelpMessage = 'The name of the server.')] - [Alias('ServerName')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - ${Name}, - - [Parameter(Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - ${ResourceGroupName}, - - [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - ${SubscriptionId}, - - [Parameter(HelpMessage = 'The location the resource resides in.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - ${Location}, - - [Parameter(Mandatory, HelpMessage = 'Administrator username for the server. Once set, it cannot be changed.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - ${AdministratorUserName}, - - [Parameter(Mandatory, HelpMessage = 'The password of the administrator. Minimum 8 characters and maximum 128 characters. Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Security.SecureString] - [ValidateNotNullOrEmpty()] - ${AdministratorLoginPassword}, - - [Parameter(HelpMessage = 'The name of the sku, typically, tier + family + cores, e.g. Standard_B1ms, Standard_D2ds_v4.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - ${Sku}, - - [Parameter(HelpMessage = 'Compute tier of the server. Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - ${SkuTier}, - - [Parameter(HelpMessage = "Backup retention days for the server. Day count is between 7 and 35.")] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - ${BackupRetentionDay}, - - [Parameter(HelpMessage = 'Max storage allowed for a server.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - ${StorageInMb}, - - [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] - [System.Collections.Hashtable] - ${Tag}, - - [Parameter(HelpMessage = 'Server version.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] - ${Version}, - - [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] - [System.Management.Automation.PSObject] - ${DefaultProfile}, - - [Parameter(HelpMessage = 'Run the command as a job.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${AsJob}, - - [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline. - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline. - ${HttpPipelinePrepend}, - - [Parameter(HelpMessage = 'Run the command asynchronously.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use. - ${Proxy}, - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call. - ${ProxyCredential}, +$DEFAULT_DB_NAME = 'flexibleserverdb' +$DELEGATION_SERVICE_NAME = "Microsoft.DBforMySQL/flexibleServers" +$DEFAULT_VNET_PREFIX = '10.0.0.0/16' +$DEFAULT_SUBNET_PREFIX = '10.0.0.0/24' +$AZURE_ARMNAME = '^[^<>%&:\\?/]{1,260}$' - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy. - ${ProxyUseDefaultCredentials} - ) +function New-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new server.')] +param( + [Parameter(HelpMessage = 'The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(HelpMessage = 'The location the resource resides in.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${Location}, + + [Parameter(HelpMessage = 'Administrator username for the server. Once set, it cannot be changed.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${AdministratorUserName}, + + [Parameter(HelpMessage = 'The password of the administrator. Minimum 8 characters and maximum 128 characters. Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Security.SecureString] + [ValidateNotNullOrEmpty()] + ${AdministratorLoginPassword}, + + [Parameter(HelpMessage = 'The name of the sku, typically, tier + family + cores, e.g. Standard_B1ms, Standard_D2ds_v4.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${Sku}, + + [Parameter(HelpMessage = 'Compute tier of the server. Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${SkuTier}, + + [Parameter(HelpMessage = "Backup retention days for the server. Day count is between 7 and 35.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + ${BackupRetentionDay}, + + [Parameter(HelpMessage = 'Max storage allowed for a server.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + ${StorageInMb}, + + [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + ${Tag}, + + [Parameter(HelpMessage = 'Server version.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + ${Version}, + + [Parameter(HelpMessage = 'The subnet IP address prefix to use when creating a new vnet in CIDR format. Default value is 10.0.0.0/24.')] + [System.String] + ${SubnetPrefix}, + + [Parameter(HelpMessage = 'The Name or Id of an existing Subnet or name of a new one to create. Please note that the subnet will be delegated to Microsoft.DBforMySQL/flexibleServers. After delegation, this subnet cannot be used for any other type of Azure resources.')] + [System.String] + ${Subnet}, + + [Parameter(HelpMessage = 'The IP address prefix to use when creating a new vnet in CIDR format. Default value is 10.0.0.0/16.')] + [System.String] + ${VnetPrefix}, + + [Parameter(HelpMessage = 'The Name or Id of an existing virtual network or name of a new one to create. The name must be between 2 to 64 characters. The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.')] + [System.String] + ${Vnet}, + + [Parameter(HelpMessage = " + Determines the public access. Enter single or range of IP addresses to be + included in the allowed list of IPs. IP address ranges must be dash- + separated and not contain any spaces. Specifying 0.0.0.0 allows public + access from any resources deployed within Azure to access your server. + Specifying no IP address sets the server in public access mode but does + not create a firewall rule.")] + [System.String] + ${PublicAccess}, + + [Parameter(HelpMessage = 'Enable or disable high availability feature. Default value is Disabled. Default: Disabled.')] + ${HighAvailability}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +process { + try { + If (!$PSBoundParameters.ContainsKey('Location')) { + $PSBoundParameters.Location = 'westus2' + } - process { - try { - if ($PSBoundParameters.ContainsKey('Name')) { - $PSBoundParameters.ServerName = $PSBoundParameters['Name'] - $null = $PSBoundParameters.Remove('Name') + If (!$PSBoundParameters.ContainsKey('AdministratorLoginPassword')) { + $Password = Get-GeneratePassword + $PSBoundParameters.AdministratorLoginPassword = $Password | ConvertTo-SecureString -AsPlainText -Force + } + $PSBoundParameters.AdministratorLoginPassword = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] + + Import-Module -Name Az.Resources + If(!$PSBoundParameters.ContainsKey('ResourceGroupName')) { + $PSBoundParameters.ResourceGroupName = Get-RandomNumbers -Prefix 'group' -Length 10 + $Msg = "Creating Resource Group {0}..." -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + if($PSCmdlet.ShouldProcess($PSBoundParameters.ResourceGroupName)) { + $null = New-AzResourceGroup -Name $PSBoundParameters.ResourceGroupName -Location $PSBoundParameters.Location -Force } - - if ($PSBoundParameters.ContainsKey('Sku')) { - $PSBoundParameters.SkuName = $PSBoundParameters['Sku'] - $null = $PSBoundParameters.Remove('Sku') + } + Else { + $Msg = 'Checking the existence of the resource group {0} ...' -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + Try { + $null = Get-AzResourceGroup -Name $PSBoundParameters.ResourceGroupName -ErrorAction Stop + $Msg = 'Resource group {0} exists ? : True' -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg } - else { - $PSBoundParameters.SkuName = 'Standard_B1ms' + Catch { + $Msg = 'Resource group {0} exists ? : False' -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + $Msg = "Creating Resource Group {0}..." -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + if($PSCmdlet.ShouldProcess($PSBoundParameters.ResourceGroupName)) { + $null = New-AzResourceGroup -Name $PSBoundParameters.ResourceGroupName -Location $PSBoundParameters.Location -Force + } + } + } + + If (!$PSBoundParameters.ContainsKey('Name')) { + $PSBoundParameters.Name = Get-RandomNumbers -Prefix 'server' -Length 10 + } + + If ($PSBoundParameters.ContainsKey('Sku')) { + $PSBoundParameters.SkuName = $PSBoundParameters['Sku'] + $null = $PSBoundParameters.Remove('Sku') + } + Else { + $PSBoundParameters.SkuName = 'Standard_B1ms' + } + + If ($PSBoundParameters.ContainsKey('BackupRetentionDay')) { + $PSBoundParameters.StorageProfileBackupRetentionDay = $PSBoundParameters['BackupRetentionDay'] + $null = $PSBoundParameters.Remove('BackupRetentionDay') + } + else { + $PSBoundParameters.StorageProfileBackupRetentionDay = 7 + } + + If ($PSBoundParameters.ContainsKey('StorageInMb')) { + $PSBoundParameters.StorageProfileStorageMb = $PSBoundParameters['StorageInMb'] + $null = $PSBoundParameters.Remove('StorageInMb') + } + else { + $PSBoundParameters.StorageProfileStorageMb = 10240 + } + + If (!$PSBoundParameters.ContainsKey('Version')) { + $PSBoundParameters.Version = '5.7' + } + + If (!$PSBoundParameters.ContainsKey('SkuTier')) { + $PSBoundParameters.SkuTier = 'Burstable' + } - if ($PSBoundParameters.ContainsKey('BackupRetentionDay')) { - $PSBoundParameters.StorageProfileBackupRetentionDay = $PSBoundParameters['BackupRetentionDay'] - $null = $PSBoundParameters.Remove('BackupRetentionDay') + If ($PSBoundParameters.ContainsKey('AdministratorUserName')) { + $PSBoundParameters.AdministratorLogin = $PSBoundParameters['AdministratorUserName'] + $null = $PSBoundParameters.Remove('AdministratorUserName') + } + Else { + $PSBoundParameters.AdministratorLogin = Get-RandomName + } + + # Handling Vnet & Subnet + $NetworkKeys = 'PublicAccess', 'Subnet', 'Vnet', 'SubnetPrefix', 'VnetPrefix' + $NetworkParameters = @{} + ForEach($Key in $NetworkKeys){ + If ($PSBoundParameters.ContainsKey($Key)){ + $NetworkParameters[$Key] = $PSBoundParameters[$Key] + $null = $PSBoundParameters.Remove($Key) } - else { - $PSBoundParameters.StorageProfileBackupRetentionDay = 7 + } + $RequiredKeys = 'SubscriptionId', 'ResourceGroupName', 'Name', 'Location' + ForEach($Key in $RequiredKeys){ $NetworkParameters[$Key] = $PSBoundParameters[$Key] } + + If(!$NetworkParameters.ContainsKey('PublicAccess')){ + $VnetSubnetParameters = CreateNetworkResource $NetworkParameters + $SubnetId = GetSubnetId $VnetSubnetParameters.ResourceGroupName $VnetSubnetParameters.VnetName $VnetSubnetParameters.SubnetName + $PSBoundParameters.DelegatedSubnetArgumentSubnetArmResourceId = $SubnetId + If ([string]::IsNullOrEmpty($PSBoundParameters.DelegatedSubnetArgumentSubnetArmResourceId)) { + $null = $PSBoundParameters.Remove('DelegatedSubnetArgumentSubnetArmResourceId') } + } + + $Msg = 'Creating MySQL server {0} in group {1}...' -f $PSBoundParameters.Name, $PSBoundParameters.resourceGroupName + Write-Host $Msg + $Msg = 'Your server {0} is using sku {1} (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details' -f $PSBoundParameters.Name, $PSBoundParameters.SkuName + Write-Host $Msg + $Server = Az.MySql.internal\New-AzMySqlFlexibleServer @PSBoundParameters + + # # Create Database + $DatabaseParameter = [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database]::new() + $DatabaseParameter.Charset = "utf8" + $DatabaseParameter.Collation = "utf8_general_ci" + $Msg = 'Creating database {0}...' -f $DEFAULT_DB_NAME + Write-Host $Msg + $null = New-AzMySqlFlexibleServerDatabase -Name $DEFAULT_DB_NAME -ResourceGroupName $PSBoundParameters.ResourceGroupName -ServerName $PSBoundParameters.Name -Parameter $DatabaseParameter + + # Create Firewallrules + $FirewallRuleName = CreateFirewallRule $NetworkParameters + + $Msg = " +`"databaseName`": `"$DEFAULT_DB_NAME`", +`"id`": `"/subscriptions/$($PSBoundParameters.SubscriptionId)/resourceGroups/$($PSBoundParameters.ResourceGroupName)/providers/Microsoft.DBForMySql/flexibleServers/$($PSBoundParameters.Name)`", +`"location`": `"$($PSBoundParameters.Location)`", +`"password`": `"$($PSBoundParameters.AdministratorLoginPassword)`", +`"resourceGroup`": `"$($PSBoundParameters.ResourceGroupName)`", +`"skuname`": `"$($PSBoundParameters.SkuName)`", +`"username`": `"$($PSBoundParameters.AdministratorLogin)`", +`"version`": `"$($PSBoundParameters.Version)`" +" + + If ($PSBoundParameters.ContainsKey('DelegatedSubnetArgumentSubnetArmResourceId')) { + $Msg += "`"subnetId`": `"$($PSBoundParameters.DelegatedSubnetArgumentSubnetArmResourceId)`"" + } + ElseIf (![string]::IsNullOrEmpty($FirewallRuleName)) { + $Msg += "`"firewallName`": `"$FirewallRuleName`"" + } + Write-Host $Msg + + return $Server + + } catch { + throw + } +} +} +function CreateNetworkResource($NetworkParameters) { + [OutputType([hashtable])] + $WarningPreference = 'silentlycontinue' + Import-Module -Name Az.Network + + # 1. Error Handling + # Raise error when user passes values for both parameters + if ($NetworkParameters.Containskey('Subnet') -And $NetworkParameters.ContainsKey('PublicAccess')) { + Throw "Incorrect usage : A combination of the parameters -Subnet and -PublicAccess is invalid. Use either one of them." + } - if ($PSBoundParameters.ContainsKey('StorageInMb')) { - $PSBoundParameters.StorageProfileStorageMb = $PSBoundParameters['StorageInMb'] - $null = $PSBoundParameters.Remove('StorageInMb') + # When address space parameters are passed, the only valid combination is : --vnet, --subnet, --vnet-address-prefix, --subnet-address-prefix + if ($NetworkParameters.ContainsKey('Vnet') -Or $NetworkParameters.ContainsKey('Subnet')) { + if (($NetworkParameters.ContainsKey('VnetPrefix') -And !$NetworkParameters.ContainsKey('SubnetPrefix')) -Or + (!$NetworkParameters.ContainsKey('VnetPrefix') -And $NetworkParameters.ContainsKey('SubnetPrefix')) -Or + ($NetworkParameters.ContainsKey('VnetPrefix') -And $NetworkParameters.ContainsKey('SubnetPrefix') -And (!$NetworkParameters.ContainsKey('Vnet') -Or !$NetworkParameters.ContainsKey('Subnet')))){ + Throw "Incorrect usage : -Vnet, -Subnet, -VnetPrefix, -SubnetPrefix must be supplied together." + } + } + + #Handle Vnet, Subnet scenario + If ($NetworkParameters.ContainsKey('Vnet') -Or $NetworkParameters.ContainsKey('Subnet')) { + # Only the Subnet ID provided.. + If (!$NetworkParameters.ContainsKey('Vnet') -And $NetworkParameters.ContainsKey('Subnet')) { + If (IsValidSubnetId $NetworkParameters.Subnet) { + Write-Host "You have supplied a subnet Id. Verifying its existence..." + $ParsedResult = ParseResourceId $NetworkParameters.Subnet + $NetworkParameters.VnetName = $ParsedResult.VnetName + $NetworkParameters.SubnetName = $ParsedResult.SubnetName + $NetworkParameters.ResourceGroupName = $ParsedResult.ResourceGroupName + $SubnetFlag = $true + Try { # Valid Subnet ID is provided + $Subnet = Get-AzVirtualNetworkSubnetConfig -ResourceId $NetworkParameters.Subnet -ErrorAction Stop + } + Catch { # Invalid subnet ID is provided, creating a new one. + $SubnetFlag = $false + Write-Host "The subnet doesn't exist. Creating the subnet" + $Subnet = CreateVnetSubnet $NetworkParameters + } + + If ($SubnetFlag){ + $Delegations = Get-AzDelegation -Subnet $Subnet + If ($null -ne $Delegations){ # Valid but incorrect delegation + $Delegations | ForEach-Object {If ($PSItem.ServiceName -ne $DELEGATION_SERVICE_NAME) { + $Msg = "Can not use subnet with existing delegations other than {0}" -f $DELEGATION_SERVICE_NAME + Throw $Msg + }} + } + Else { # Valid but no delegation + $Vnet = Get-AzVirtualNetwork -ResourceGroupName $NetworkParameters.ResourceGroupName -Name $NetworkParameters.VnetName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $NetworkParameters.SubnetName -VirtualNetwork $Vnet + $Subnet = Add-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Vnet | Set-AzVirtualNetwork + } + } } - else { - $PSBoundParameters.StorageProfileStorageMb = 10240 + Else { + Throw "The Subnet ID is not a valid form of resource id." } - - if (!$PSBoundParameters.ContainsKey('Version')) { - $PSBoundParameters.Version = '5.7' + } + ElseIf ($NetworkParameters.ContainsKey('Vnet') -And !$NetworkParameters.ContainsKey('Subnet')) { + If (IsValidVnetId $NetworkParameters.Vnet){ + Write-Host "You have supplied a vnet Id. Verifying its existence..." + IsValidRgLocation $NetworkParameters.Vnet $NetworkParameters + $ParsedResult = ParseResourceId $NetworkParameters.Vnet + $NetworkParameters.VnetName = $ParsedResult.VnetName + $NetworkParameters.SubnetName = 'Subnet' + $NetworkParameters.Name + $Subnet = CreateVnetSubnet $NetworkParameters } - - if (!$PSBoundParameters.ContainsKey('SkuTier')) { - $PSBoundParameters.SkuTier = 'Burstable' + ElseIf ($NetworkParameters.Vnet -Match $AZURE_ARMNAME) { + Write-Host "You have supplied a vnet Name. Verifying its existence..." + $NetworkParameters.VnetName = $NetworkParameters.Vnet + $NetworkParameters.SubnetName = 'Subnet' + $NetworkParameters.Name + $Subnet = CreateVnetSubnet $NetworkParameters + IsValidRgLocation $Subnet.Id $NetworkParameters } - - if (!$PSBoundParameters.ContainsKey('Location')) { - $PSBoundParameters.Location = 'westus2' + Else { + Throw "Incorrectly formed Vnet id or Vnet name" } - - if ($PSBoundParameters.ContainsKey('AdministratorUserName')) { - $PSBoundParameters.AdministratorLogin = $PSBoundParameters['AdministratorUserName'] - $null = $PSBoundParameters.Remove('AdministratorUserName') + } + Else { # Both Vnet and Subnet provided + IF ($NetworkParameters.Vnet -Match $AZURE_ARMNAME -And $NetworkParameters.Subnet -Match $AZURE_ARMNAME) { + $NetworkParameters.VnetName = $NetworkParameters.Vnet + $NetworkParameters.SubnetName = $NetworkParameters.Subnet + $Subnet = CreateVnetSubnet $NetworkParameters } + Else { + If ($NetworkParameters.ContainsKey('SubnetPrefix') -And $NetworkParameters.ContainsKey('VnetPrefix')) { + $Msg = "If you pass an address prefix, please consider passing a name (instead of Id) for a subnet or vnet." + } + Else { $Msg = "If you pass both --vnet and --subnet, consider passing names instead of ids." } + Throw $Msg + } + } + } + # Handling create command without arguments + ElseIf (!$NetworkParameters.ContainsKey('PublicAccess') -And !$NetworkParameters.ContainsKey('Subnet') -And !$NetworkParameters.ContainsKey('Vnet')) { + $NetworkParameters.VnetName = 'VNET' + $NetworkParameters.Name + $NetworkParameters.SubnetName = 'Subnet' + $NetworkParameters.Name + $NetworkParameters.VnetPrefix = $DEFAULT_VNET_PREFIX + $NetworkParameters.SubnetPrefix = $DEFAULT_SUBNET_PREFIX + + $Subnet = CreateVnetSubnet $NetworkParameters + } + return $NetworkParameters +} + +function GetSubnetId($ResourceGroupName, $VnetName, $SubnetName){ + If (!($ResourceGroupName -is [String])){ $ResourceGroupName = $ResourceGroupName[0]} + $Vnet = Get-AzVirtualNetwork -Name $VnetName -ResourceGroupName $ResourceGroupName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + Return $Subnet.Id +} + +function CreateVnetSubnet($Parameters) { + If (!$Parameters.ContainsKey('SubnetPrefix')){$Parameters.SubnetPrefix = $DEFAULT_SUBNET_PREFIX} + If (!$Parameters.ContainsKey('VnetPrefix')){$Parameters.VnetPrefix = $DEFAULT_VNET_PREFIX} + + Try { + Get-AzVirtualNetwork -Name $Parameters.VnetName -ResourceGroupName $Parameters.ResourceGroupName -ErrorAction Stop + $Msg = "The provided vnet does exist." + Write-Host $Msg + } + Catch { + $Msg = "Creating new vnet {0} in resource group {1}" -f $Parameters.VnetName, $Parameters.ResourceGroupName + Write-Host $Msg + if($PSCmdlet.ShouldProcess($Parameters.VnetName)) { + New-AzVirtualNetwork -Name $Parameters.VnetName -ResourceGroupName $Parameters.ResourceGroupName -Location $Parameters.Location -AddressPrefix $Parameters.VnetPrefix -Force + } + } + + $Subnet = CreateAndDelegateSubnet $Parameters + + Return $Subnet +} + +function CreateAndDelegateSubnet($Parameters) { + $SubnetFlag = $true + $Vnet = Get-AzVirtualNetwork -Name $Parameters.VnetName -ResourceGroupName $Parameters.ResourceGroupName -ErrorAction Stop + Try { + $Subnet = Get-AzVirtualNetworkSubnetConfig -VirtualNetwork $Vnet -Name $Parameters.SubnetName -ErrorAction Stop + $Msg = "The provided subnet does exist." + Write-Host $Msg + } + Catch { + $SubnetFlag = $false + $Msg = 'Creating new subnet {0} in resource group {1} and delegating it to {2}' -f $Parameters.SubnetName, $Parameters.ResourceGroupName, $DELEGATION_SERVICE_NAME + Write-Host $Msg + } + + If (!$SubnetFlag) { + $Delegation = New-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME + Add-AzVirtualNetworkSubnetConfig -Name $Parameters.SubnetName -VirtualNetwork $Vnet -AddressPrefix $Parameters.SubnetPrefix -Delegation $Delegation | Set-AzVirtualNetwork + } + Else { # check if existing subnet is delegated + $Delegations = Get-AzDelegation -Subnet $Subnet + If ($null -ne $Delegations){ + $Delegations | ForEach-Object {If ($PSItem.ServiceName -ne $DELEGATION_SERVICE_NAME) { + $Msg = "Can not use subnet with existing delegations other than {0}" -f $DELEGATION_SERVICE_NAME + Throw $Msg + }} + } + Else { # Valid but no delegation + $Subnet = Add-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Vnet | Set-AzVirtualNetwork + } + } - $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode]::Default - $PSBoundParameters.AdministratorLoginPassword = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] + return $Subnet +} - Az.MySql.internal\New-AzMySqlFlexibleServer @PSBoundParameters - } catch { - throw +function CreateFirewallRule($Parameters) { + # # Adding firewall rule + If ($Parameters.ContainsKey('PublicAccess') -And $Parameters.PublicAccess.ToLower() -ne 'none') { + $Date = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" + If ($Parameters.PublicAccess.ToLower() -eq 'all'){ + $StartIp = '0.0.0.0' + $EndIp = '255.255.255.255' + $RuleName = "AllowAll_" + $Date + $FirewallRule = New-AzMySqlFlexibleServerFirewallRule -Name $RuleName -ResourceGroupName $Parameters.ResourceGroupName -ServerName $Parameters.Name -EndIPAddress $EndIp -StartIPAddress $StartIp + } + Else { + $Parsed = $Parameters.PublicAccess -split "-" + If ($Parsed.length -eq 1) { + $StartIp = $Parsed[0] + $EndIp = $Parsed[0] + } + ElseIf ($Parsed.length -eq 2) { + $StartIp = $Parsed[0] + $EndIp = $Parsed[1] + } + Else { Throw "incorrect usage: --public-access. Acceptable values are \'all\', \'none\',\'\' and \'-\' where startIP and destinationIP ranges from 0.0.0.0 to 255.255.255.255" } + + If ($StartIp -eq '0.0.0.0' -And $EndIp -eq '0.0.0.0') { + $RuleName = "AllowAllAzureServicesAndResourcesWithinAzureIps_" + $Date + $Msg = 'Configuring server firewall rule to accept connections from all Azure resources...' + } + ElseIf ($StartIP -eq $EndIP) { + $Msg = 'Configuring server firewall rule to accept connections from ' + $StartIP + } + Else { + $Msg = 'Configuring server firewall rule to accept connections from {0} to {1}' -f $StartIP, $EndIp + $RuleName = "FirewallIPAddress_" + $Date + } + Write-Host $Msg + $FirewallRule = New-AzMySqlFlexibleServerFirewallRule -Name $RuleName -ResourceGroupName $Parameters.ResourceGroupName -ServerName $Parameters.Name -EndIPAddress $EndIp -StartIPAddress $StartIp + } + Return $FirewallRule.Name + } + ElseIf ($Parameters.ContainsKey('PublicAccess') -And $Parameters.PublicAccess.ToLower() -ne 'none') { + Write-Host "No firewall rule was set" + } +} +function IsValidVnetId($Rid){ + $VnetFormat = "\/subscriptions\/[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}\/resourceGroups\/[-\w\._\(\)]+\/providers\/Microsoft.Network\/virtualNetworks\/[^<>%&:\\?/]{1,260}$" + If ( $Rid -match $VnetFormat ) { + return $True + } + return $False +} +function IsValidSubnetId($Rid){ + $SubnetFormat = "\/subscriptions\/[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}\/resourceGroups/[-\w\._\(\)]+\/providers\/Microsoft.Network\/virtualNetworks\/[^<>%&:\\?/]{1,260}\/subnets\/[^<>%&:\\?/]{1,260}$" + IF ( $Rid -match $SubnetFormat ) { + return $True + } + return $False +} +function ParseResourceId($Rid){ + $Splits = $Rid -split "/" + $ParsedResults = @{} + If ($Splits.length -gt 1){ + $ParsedResults["SubscriptionId"] = $Splits[2] + $ParsedResults["ResourceGroupName"] = $Splits[4] + $ParsedResults["VnetName"] = $Splits[8] + If ($Splits.length -eq 11) { + $ParsedResults["SubnetName"] = $Splits[10] } } + return $ParsedResults } +function IsValidRgLocation($ResourceId, $Parameters){ + $ParsedResults = ParseResourceId $ResourceId + $Group = Get-AzResourceGroup -Name $ParsedResults["ResourceGroupName"] + $ParsedResults["Location"] = $Group.Location + If ($Parameters.SubscriptionId -eq $ParsedResults.SubscriptionId -And $Parameters.Location -eq $ParsedResults.Location) { + Return $True + } + Throw "Incorrect Usage : The location and subscription of the server, Vnet and Subnet should be same." +} +function Get-RandomNumbers($Prefix, $Length) { + $Generated = "" + for($i = 0; $i -lt $Length; $i++){ $Generated += Get-Random -Maximum 10 } + return $Prefix + $Generated +} + +function Get-RandomName() { + $Noun = Get-Content -Path (Join-Path $PSScriptRoot "..\utils\nouns.txt") | Get-Random + $Adjective = Get-Content -Path (Join-Path $PSScriptRoot "..\utils\adjectives.txt") | Get-Random + $Number = Get-Random -Maximum 10 + $RandomName = $Adjective + (Get-Culture).TextInfo.ToTitleCase($Noun) + $Number + return $RandomName + +} + +function Get-GeneratePassword() { + $Password = '' + $Chars = 'abcdefghiklmnoprstuvwxyzABCDEFGHKLMNOPRSTUVWXYZ1234567890' + $SpecialChars = '!$%&/()=?}][{@#*+' + for ($i = 0; $i -lt 10; $i++ ) { $Password += $Chars[(Get-Random -Minimum 0 -Maximum $Chars.Length)] } + for ($i = 0; $i -lt 6; $i++ ) { $Password += $SpecialChars[(Get-Random -Minimum 0 -Maximum $SpecialChars.Length)] } + $Password = ($Password -split '' | Sort-Object {Get-Random}) -join '' + return $Password +} diff --git a/src/MySql/custom/New-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/custom/New-AzMySqlFlexibleServerFirewallRule.ps1 index 2ebfba5f8681..67286a45cbae 100644 --- a/src/MySql/custom/New-AzMySqlFlexibleServerFirewallRule.ps1 +++ b/src/MySql/custom/New-AzMySqlFlexibleServerFirewallRule.ps1 @@ -19,6 +19,7 @@ Creates a new firewall rule for MySQL flexible server .Description Creates a new firewall rule for MySQL flexible server #> + function New-AzMySqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] diff --git a/src/MySql/custom/New-AzMySqlFlexibleServerReplica.ps1 b/src/MySql/custom/New-AzMySqlFlexibleServerReplica.ps1 index 731b910d1b57..c68a9d215d34 100644 --- a/src/MySql/custom/New-AzMySqlFlexibleServerReplica.ps1 +++ b/src/MySql/custom/New-AzMySqlFlexibleServerReplica.ps1 @@ -21,109 +21,109 @@ Creates a replica server for a MySQL flexible server #> function New-AzMySqlFlexibleServerReplica { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] - [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new replica from an existing database.')] - param( - [Parameter(Mandatory, HelpMessage = 'The name of the server.')] - [Alias('ReplicaServerName', 'Name')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - ${Replica}, - - [Parameter(Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - ${ResourceGroupName}, - - [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - ${SubscriptionId}, - - [Parameter(Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to create replica from.')] - [Alias('InputObject')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] - ${Master}, - - [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] - [System.Management.Automation.PSObject] - ${DefaultProfile}, - - [Parameter(HelpMessage = 'Run the command as a job.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${AsJob}, - - [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline. - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline. - ${HttpPipelinePrepend}, - - [Parameter(HelpMessage = 'Run the command asynchronously.')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use. - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call. - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy. - ${ProxyUseDefaultCredentials} - ) - - process { - try { - $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode]::Replica - - $server = $PSBoundParameters['Master'] - $PSBoundParameters.SourceServerId = $server.Id - $PSBoundParameters.Location = $server.Location - $null = $PSBoundParameters.Remove('Master') - - if ($PSBoundParameters.ContainsKey('Replica')) - { - $PSBoundParameters['ServerName'] = $PSBoundParameters['Replica'] - $null = $PSBoundParameters.Remove('Replica') - } - - Az.MySql.internal\New-AzMySqlFlexibleServer @PSBoundParameters - } catch { - throw +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new replica from an existing database.')] +param( + [Parameter(Mandatory, HelpMessage = 'The name of the server.')] + [Alias('ReplicaServerName', 'Name')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${Replica}, + + [Parameter(Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to create replica from.')] + [Alias('InputObject')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + ${Master}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +process { + try { + $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode]::Replica + + $server = $PSBoundParameters['Master'] + $PSBoundParameters.SourceServerId = $server.Id + $PSBoundParameters.Location = $server.Location + $null = $PSBoundParameters.Remove('Master') + + if ($PSBoundParameters.ContainsKey('Replica')) + { + $PSBoundParameters['ServerName'] = $PSBoundParameters['Replica'] + $null = $PSBoundParameters.Remove('Replica') } + + Az.MySql.internal\New-AzMySqlFlexibleServer @PSBoundParameters + } catch { + throw } } +} diff --git a/src/MySql/custom/Update-AzMySqlFlexibleServer.ps1 b/src/MySql/custom/Update-AzMySqlFlexibleServer.ps1 index ee1d9961c2ad..c59a4264336a 100644 --- a/src/MySql/custom/Update-AzMySqlFlexibleServer.ps1 +++ b/src/MySql/custom/Update-AzMySqlFlexibleServer.ps1 @@ -161,6 +161,10 @@ function Update-AzMySqlFlexibleServer { process { try { + if ($PSBoundParameters.ContainsKey('AdministratorLoginPassword')) { + $PSBoundParameters.AdministratorLoginPassword = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] + } + if ($PSBoundParameters.ContainsKey('StorageInMb')) { $PSBoundParameters.StorageProfileStorageMb = $PSBoundParameters['StorageInMb'] $null = $PSBoundParameters.Remove('StorageInMb') diff --git a/src/MySql/custom/readme.md b/src/MySql/custom/readme.md index f8336dda153d..3a9f91659ff3 100644 --- a/src/MySql/custom/readme.md +++ b/src/MySql/custom/readme.md @@ -31,11 +31,11 @@ These provide functionality to our HTTP pipeline and other useful features. In s ### Attributes For processing the cmdlets, we've created some additional attributes: -- `Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.DescriptionAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.MySql.DescriptionAttribute` - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. -- `Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.DoNotExportAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.MySql`. -- `Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.InternalExportAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExportAttribute` - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.MySql`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. -- `Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.ProfileAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.MySql.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/MySql/examples/Get-AzMySqlFlexibleServerConnectionString.md b/src/MySql/examples/Get-AzMySqlFlexibleServerConnectionString.md new file mode 100644 index 000000000000..06d3d41411ff --- /dev/null +++ b/src/MySql/examples/Get-AzMySqlFlexibleServerConnectionString.md @@ -0,0 +1,16 @@ +### Example 1: Get connection string by name +```powershell +PS C:\> Get-AzMySqlFlexibleServerConnectionString -Client Python -ResourceGroupName PowershellMySqlTest -Name mysql-test + +cnx = mysql.connector.connect(user=mysql_user, password="{your_password}", host="mysql-test.mysql.database.azure.com", port=3306, database="{your_database}", ssl_ca="{ca-cert filename}", ssl_disabled=False) +``` +This cmdlet shows connection string of a client by server name. + +### Example 2: Get MySql server connection string by identity +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlFlexibleServerConnectionString -Client PHP + +$con=mysqli_init(); mysqli_real_connect($con, "mysql-test.mysql.database.azure.com", "mysql_test", {your_password}, {your_database}, 3306); +``` + +This cmdlet gets MySql server connection string by identity. diff --git a/src/MySql/examples/Get-AzMySqlFlexibleServerLocationBasedCapability.md b/src/MySql/examples/Get-AzMySqlFlexibleServerLocationBasedCapability.md new file mode 100644 index 000000000000..9bfa66347ba5 --- /dev/null +++ b/src/MySql/examples/Get-AzMySqlFlexibleServerLocationBasedCapability.md @@ -0,0 +1,27 @@ +### Example 1: Get location capabilities by location name +```powershell +PS C:\> Get-AzMySqlFlexibleServerLocationBasedCapability -Location westus2 +"Please refer to https://aka.ms/mysql-pricing for pricing details" + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1s Burstable 1024 1 +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2ds_v4 GeneralPurpose 4096 2 +Standard_D4ds_v4 GeneralPurpose 4096 4 +Standard_D8ds_v4 GeneralPurpose 4096 8 +Standard_D16ds_v4 GeneralPurpose 4096 16 +Standard_D32ds_v4 GeneralPurpose 4096 32 +Standard_D48ds_v4 GeneralPurpose 4096 48 +Standard_D64ds_v4 GeneralPurpose 4096 64 +Standard_E2ds_v4 MemoryOptimized 8192 2 +Standard_E4ds_v4 MemoryOptimized 8192 4 +Standard_E8ds_v4 MemoryOptimized 8192 8 +Standard_E16ds_v4 MemoryOptimized 8192 16 +Standard_E32ds_v4 MemoryOptimized 8192 32 +Standard_E48ds_v4 MemoryOptimized 8192 48 +Standard_E64ds_v4 MemoryOptimized 8192 64 + +``` +This cmdlet shows basic sku information of the provided location. \ No newline at end of file diff --git a/src/MySql/examples/New-AzMySqlFlexibleServer.md b/src/MySql/examples/New-AzMySqlFlexibleServer.md index 64e45818b4d8..5498dd490ea8 100644 --- a/src/MySql/examples/New-AzMySqlFlexibleServer.md +++ b/src/MySql/examples/New-AzMySqlFlexibleServer.md @@ -1,22 +1,144 @@ -### Example 1: Create a new MySql flexible server +### Example 1: Create a new MySql flexible server with arguments ```powershell PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellMySqlTest ... +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group MySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details + + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "MySqlTest", +"skuname": "Standard_B1ms", +"username": "mysqltest", +"version": "5.7" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable ``` ### Example 2: Create a new MySql flexible server with default setting ```powershell -PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --AdministratorUserName mysqltest -AdministratorLoginPassword $password +PS C:\> New-AzMySqlFlexibleServer -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/group00000000/providers/Microsoft.DBForMySql/flexibleServers/server00000000", +"location": "westus2", +"password": "***************", +"resourceGroup": "group00000000", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" ``` +This cmdlet creates MySql flexible server with default parameter values and provision the server inside a new virtual network and have a subnet delegated to the server. The default values of location is West US 2, Sku is Standard_B1ms, Sku tier is Burstable, and storage size is 10GiB. + +### Example 3: Create a new MySql flexible server with virtual network +```powershell +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +Resource group PowershellMySqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellMySqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellMySqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/vnetname/subnets/Subnetserver00000000" + +``` +This cmdlet creates MySql flexible server with vnet id or vnet name provided by a user. If the virtual network doesn't exist, the cmdlet creates one. + +### Example 4: Create a new MySql flexible server with virtual network and subnet name +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Vnet mysql-vnet -Subnet mysql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 -Create MySql server with default values. The default values of location is West US 2, Sku is Standard_B1ms, Sku tier is Burstable, and storage size is 10GiB. \ No newline at end of file +Resource group PowershellMySqlTest exists ? : True +Creating new vnet mysql-vnet in resource group PowershellMySqlTest +Creating new subnet mysql-subnet in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/mysql-vnet/subnets/mysql-subnet" + +``` +This cmdlet creates MySql flexible server with vnet name, subnet name, vnet prefix, and subnet prefix. If the virtual network and subnet don't exist, the cmdlet creates one. + +### Example 7: Create a new MySql flexible server with public access to all IPs +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess All + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "AllowAll_2020_00_00-00_00-00-00" +``` +This cmdlet creates MySql flexible server open to all IP addresses. + +### Example 8: Create a new MySql flexible server with firewall +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "FirewallIPAddress__2020_00_00-00_00-00-00" + +``` +This cmdlet creates MySql flexible server open to specified IP addresses. diff --git a/src/MySql/exports/Get-AzMySqlConnectionString.ps1 b/src/MySql/exports/Get-AzMySqlConnectionString.ps1 index 5c460a398cda..68627b3dfb35 100644 --- a/src/MySql/exports/Get-AzMySqlConnectionString.ps1 +++ b/src/MySql/exports/Get-AzMySqlConnectionString.ps1 @@ -36,7 +36,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : The source server object to create replica from. +INPUTOBJECT : Name of the server Location : The geo-location where the resource lives SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [Tag ]: Resource tags. @@ -98,7 +98,7 @@ param( [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] - # The source server object to create replica from. + # Name of the server # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, diff --git a/src/MySql/exports/Get-AzMySqlFlexibleServerConnectionString.ps1 b/src/MySql/exports/Get-AzMySqlFlexibleServerConnectionString.ps1 new file mode 100644 index 000000000000..9e386a688883 --- /dev/null +++ b/src/MySql/exports/Get-AzMySqlFlexibleServerConnectionString.ps1 @@ -0,0 +1,177 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the connection string according to client connection provider. +.Description +Get the connection string according to client connection provider. +.Example +PS C:\> Get-AzMySqlFlexibleServerConnectionString -Client Python -ResourceGroupName PowershellMySqlTest -Name mysql-test + +cnx = mysql.connector.connect(user=mysql_user, password="{your_password}", host="mysql-test.mysql.database.azure.com", port=3306, database="{your_database}", ssl_ca="{ca-cert filename}", ssl_disabled=False) +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlFlexibleServerConnectionString -Client PHP + +$con=mysqli_init(); mysqli_real_connect($con, "mysql-test.mysql.database.azure.com", "mysql_test", {your_password}, {your_database}, 3306); + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.String +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Name of the server + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverconnectionstring +#> +function Get-AzMySqlFlexibleServerConnectionString { +[OutputType([System.String])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # Client connection provider. + ${Client}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Name of the server + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.custom\Get-AzMySqlFlexibleServerConnectionString'; + GetViaIdentity = 'Az.MySql.custom\Get-AzMySqlFlexibleServerConnectionString'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 b/src/MySql/exports/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 new file mode 100644 index 000000000000..7a4e1a05b3ef --- /dev/null +++ b/src/MySql/exports/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 @@ -0,0 +1,153 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the available SKU information for the location +.Description +Get the available SKU information for the location +.Example +PS C:\> Get-AzMySqlFlexibleServerLocationBasedCapability -Location westus2 +"Please refer to https://aka.ms/mysql-pricing for pricing details" + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1s Burstable 1024 1 +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2ds_v4 GeneralPurpose 4096 2 +Standard_D4ds_v4 GeneralPurpose 4096 4 +Standard_D8ds_v4 GeneralPurpose 4096 8 +Standard_D16ds_v4 GeneralPurpose 4096 16 +Standard_D32ds_v4 GeneralPurpose 4096 32 +Standard_D48ds_v4 GeneralPurpose 4096 48 +Standard_D64ds_v4 GeneralPurpose 4096 64 +Standard_E2ds_v4 MemoryOptimized 8192 2 +Standard_E4ds_v4 MemoryOptimized 8192 4 +Standard_E8ds_v4 MemoryOptimized 8192 8 +Standard_E16ds_v4 MemoryOptimized 8192 16 +Standard_E32ds_v4 MemoryOptimized 8192 32 +Standard_E48ds_v4 MemoryOptimized 8192 48 +Standard_E64ds_v4 MemoryOptimized 8192 64 + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverlocationbasedcapability +#> +function Get-AzMySqlFlexibleServerLocationBasedCapability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.MySql.custom\Get-AzMySqlFlexibleServerLocationBasedCapability'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/New-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/New-AzMySqlFlexibleServer.ps1 index 1a17c29c3d75..9ed736dec911 100644 --- a/src/MySql/exports/New-AzMySqlFlexibleServer.ps1 +++ b/src/MySql/exports/New-AzMySqlFlexibleServer.ps1 @@ -15,23 +15,130 @@ <# .Synopsis -Creates a new MySQL flexible server +Creates a new server. .Description Creates a new server. .Example PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellMySqlTest ... +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group MySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details + + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "MySqlTest", +"skuname": "Standard_B1ms", +"username": "mysqltest", +"version": "5.7" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable .Example -PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --AdministratorUserName mysqltest -AdministratorLoginPassword $password +PS C:\> New-AzMySqlFlexibleServer + +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/group00000000/providers/Microsoft.DBForMySql/flexibleServers/server00000000", +"location": "westus2", +"password": "***************", +"resourceGroup": "group00000000", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +.Example +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +Resource group PowershellMySqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellMySqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellMySqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/vnetname/subnets/Subnetserver00000000" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Vnet mysql-vnet -Subnet mysql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 + +Resource group PowershellMySqlTest exists ? : True +Creating new vnet mysql-vnet in resource group PowershellMySqlTest +Creating new subnet mysql-subnet in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/mysql-vnet/subnets/mysql-subnet" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess All + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "AllowAll_2020_00_00-00_00-00-00" +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "FirewallIPAddress__2020_00_00-00_00-00-00" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable .Outputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated @@ -42,14 +149,14 @@ function New-AzMySqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter()] [Alias('ServerName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${Name}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. @@ -62,14 +169,20 @@ param( # The subscription ID that identifies an Azure subscription. ${SubscriptionId}, - [Parameter(Mandatory)] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The location the resource resides in. + ${Location}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] # Administrator username for the server. # Once set, it cannot be changed. ${AdministratorUserName}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.Security.SecureString] # The password of the administrator. @@ -77,12 +190,6 @@ param( # Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. ${AdministratorLoginPassword}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The location the resource resides in. - ${Location}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] @@ -125,6 +232,58 @@ param( # Server version. ${Version}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The subnet IP address prefix to use when creating a new vnet in CIDR format. + # Default value is 10.0.0.0/24. + ${SubnetPrefix}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The Name or Id of an existing Subnet or name of a new one to create. + # Please note that the subnet will be delegated to Microsoft.DBforMySQL/flexibleServers. + # After delegation, this subnet cannot be used for any other type of Azure resources. + ${Subnet}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The IP address prefix to use when creating a new vnet in CIDR format. + # Default value is 10.0.0.0/16. + ${VnetPrefix}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The Name or Id of an existing virtual network or name of a new one to create. + # The name must be between 2 to 64 characters. + # The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens. + ${Vnet}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Determines the public access. + # Enter single or range of IP addresses to be + # included in the allowed list of IPs. + # IP address ranges must be dash- + # separated and not contain any spaces. + # Specifying 0.0.0.0 allows public + # access from any resources deployed within Azure to access your server. + # Specifying no IP address sets the server in public access mode but does + # not create a firewall rule. + ${PublicAccess}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Object] + # Enable or disable high availability feature. + # Default value is Disabled. + # Default: Disabled. + ${HighAvailability}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -149,14 +308,12 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline. ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline. ${HttpPipelinePrepend}, [Parameter()] @@ -168,20 +325,17 @@ param( [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] - # The URI for the proxy server to use. ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call. ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy. ${ProxyUseDefaultCredentials} ) diff --git a/src/MySql/exports/ProxyCmdletDefinitions.ps1 b/src/MySql/exports/ProxyCmdletDefinitions.ps1 index f33e96c5f8c4..3b1fd37ef28e 100644 --- a/src/MySql/exports/ProxyCmdletDefinitions.ps1 +++ b/src/MySql/exports/ProxyCmdletDefinitions.ps1 @@ -4588,7 +4588,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : The source server object to create replica from. +INPUTOBJECT : Name of the server Location : The geo-location where the resource lives SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [Tag ]: Resource tags. @@ -4650,7 +4650,7 @@ param( [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] - # The source server object to create replica from. + # Name of the server # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -4751,6 +4751,336 @@ end { # limitations under the License. # ---------------------------------------------------------------------------------- +<# +.Synopsis +Get the connection string according to client connection provider. +.Description +Get the connection string according to client connection provider. +.Example +PS C:\> Get-AzMySqlFlexibleServerConnectionString -Client Python -ResourceGroupName PowershellMySqlTest -Name mysql-test + +cnx = mysql.connector.connect(user=mysql_user, password="{your_password}", host="mysql-test.mysql.database.azure.com", port=3306, database="{your_database}", ssl_ca="{ca-cert filename}", ssl_disabled=False) +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlFlexibleServerConnectionString -Client PHP + +$con=mysqli_init(); mysqli_real_connect($con, "mysql-test.mysql.database.azure.com", "mysql_test", {your_password}, {your_database}, 3306); + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.String +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Name of the server + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverconnectionstring +#> +function Get-AzMySqlFlexibleServerConnectionString { +[OutputType([System.String])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # Client connection provider. + ${Client}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Name of the server + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.custom\Get-AzMySqlFlexibleServerConnectionString'; + GetViaIdentity = 'Az.MySql.custom\Get-AzMySqlFlexibleServerConnectionString'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the available SKU information for the location +.Description +Get the available SKU information for the location +.Example +PS C:\> Get-AzMySqlFlexibleServerLocationBasedCapability -Location westus2 +"Please refer to https://aka.ms/mysql-pricing for pricing details" + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1s Burstable 1024 1 +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2ds_v4 GeneralPurpose 4096 2 +Standard_D4ds_v4 GeneralPurpose 4096 4 +Standard_D8ds_v4 GeneralPurpose 4096 8 +Standard_D16ds_v4 GeneralPurpose 4096 16 +Standard_D32ds_v4 GeneralPurpose 4096 32 +Standard_D48ds_v4 GeneralPurpose 4096 48 +Standard_D64ds_v4 GeneralPurpose 4096 64 +Standard_E2ds_v4 MemoryOptimized 8192 2 +Standard_E4ds_v4 MemoryOptimized 8192 4 +Standard_E8ds_v4 MemoryOptimized 8192 8 +Standard_E16ds_v4 MemoryOptimized 8192 16 +Standard_E32ds_v4 MemoryOptimized 8192 32 +Standard_E48ds_v4 MemoryOptimized 8192 48 +Standard_E64ds_v4 MemoryOptimized 8192 64 + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverlocationbasedcapability +#> +function Get-AzMySqlFlexibleServerLocationBasedCapability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.MySql.custom\Get-AzMySqlFlexibleServerLocationBasedCapability'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis Creates a new firewall rule or updates an existing firewall rule. @@ -4957,23 +5287,130 @@ end { <# .Synopsis -Creates a new MySQL flexible server +Creates a new server. .Description Creates a new server. .Example PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellMySqlTest ... +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group MySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details + + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "MySqlTest", +"skuname": "Standard_B1ms", +"username": "mysqltest", +"version": "5.7" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable .Example -PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --AdministratorUserName mysqltest -AdministratorLoginPassword $password +PS C:\> New-AzMySqlFlexibleServer + +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/group00000000/providers/Microsoft.DBForMySql/flexibleServers/server00000000", +"location": "westus2", +"password": "***************", +"resourceGroup": "group00000000", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +.Example +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +Resource group PowershellMySqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellMySqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellMySqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/vnetname/subnets/Subnetserver00000000" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Vnet mysql-vnet -Subnet mysql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 + +Resource group PowershellMySqlTest exists ? : True +Creating new vnet mysql-vnet in resource group PowershellMySqlTest +Creating new subnet mysql-subnet in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/mysql-vnet/subnets/mysql-subnet" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess All + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "AllowAll_2020_00_00-00_00-00-00" +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "FirewallIPAddress__2020_00_00-00_00-00-00" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable .Outputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated @@ -4984,14 +5421,14 @@ function New-AzMySqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter()] [Alias('ServerName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${Name}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. @@ -5004,14 +5441,20 @@ param( # The subscription ID that identifies an Azure subscription. ${SubscriptionId}, - [Parameter(Mandatory)] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The location the resource resides in. + ${Location}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] # Administrator username for the server. # Once set, it cannot be changed. ${AdministratorUserName}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.Security.SecureString] # The password of the administrator. @@ -5019,12 +5462,6 @@ param( # Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. ${AdministratorLoginPassword}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The location the resource resides in. - ${Location}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] @@ -5067,6 +5504,58 @@ param( # Server version. ${Version}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The subnet IP address prefix to use when creating a new vnet in CIDR format. + # Default value is 10.0.0.0/24. + ${SubnetPrefix}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The Name or Id of an existing Subnet or name of a new one to create. + # Please note that the subnet will be delegated to Microsoft.DBforMySQL/flexibleServers. + # After delegation, this subnet cannot be used for any other type of Azure resources. + ${Subnet}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The IP address prefix to use when creating a new vnet in CIDR format. + # Default value is 10.0.0.0/16. + ${VnetPrefix}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The Name or Id of an existing virtual network or name of a new one to create. + # The name must be between 2 to 64 characters. + # The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens. + ${Vnet}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Determines the public access. + # Enter single or range of IP addresses to be + # included in the allowed list of IPs. + # IP address ranges must be dash- + # separated and not contain any spaces. + # Specifying 0.0.0.0 allows public + # access from any resources deployed within Azure to access your server. + # Specifying no IP address sets the server in public access mode but does + # not create a firewall rule. + ${PublicAccess}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Object] + # Enable or disable high availability feature. + # Default value is Disabled. + # Default: Disabled. + ${HighAvailability}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -5091,14 +5580,12 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline. ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline. ${HttpPipelinePrepend}, [Parameter()] @@ -5110,20 +5597,17 @@ param( [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] - # The URI for the proxy server to use. ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call. ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy. ${ProxyUseDefaultCredentials} ) diff --git a/src/MySql/generate-info.json b/src/MySql/generate-info.json index 4355391d9d7b..e5c709ad0a09 100644 --- a/src/MySql/generate-info.json +++ b/src/MySql/generate-info.json @@ -1,8 +1,12 @@ { + "microsoft.azure_autorest.csharp": "2.3.82", "autorest_powershell": "3.0.403", - "swagger_commit": "171eb5562c1d2e86eb0658923c54860cb25c8379", - "autorest_modelerfour": "4.15.414", + "node": "v10.16.0", + "swagger_commit": "b2c4a2f64c0f1b2a5a7a22143bcb1f880cdc6a20", + "autorest_remodeler": "2.1.27", "autorest": "3.0.6187", + "microsoft.azure_autorest-core": "2.0.4417", "autorest_core": "3.0.6320", - "node": "v10.16.0" + "autorest_modelerfour": "4.15.414", + "microsoft.azure_autorest.modeler": "2.3.55" } diff --git a/src/MySql/generated/api/MySql.cs b/src/MySql/generated/api/MySql.cs index 28ee5062d9b8..d222ff323de9 100644 --- a/src/MySql/generated/api/MySql.cs +++ b/src/MySql/generated/api/MySql.cs @@ -34,8 +34,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -45,19 +45,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(configurationName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ConfigurationsCreateOrUpdate_Call(request,onOk,eventListener,sender); } @@ -92,8 +93,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var configurationName = _match.Groups["configurationName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -103,19 +104,20 @@ public partial class MySql + configurationName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ConfigurationsCreateOrUpdate_Call(request,onOk,eventListener,sender); } @@ -136,15 +138,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -170,33 +173,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -211,6 +216,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -306,8 +314,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -317,15 +325,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(configurationName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ConfigurationsGet_Call(request,onOk,eventListener,sender); } @@ -359,8 +368,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var configurationName = _match.Groups["configurationName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -370,15 +379,16 @@ public partial class MySql + configurationName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ConfigurationsGet_Call(request,onOk,eventListener,sender); } @@ -399,8 +409,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -472,8 +483,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -482,15 +493,16 @@ public partial class MySql + "/configurations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ConfigurationsListByServer_Call(request,onOk,eventListener,sender); } @@ -523,8 +535,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -533,15 +545,16 @@ public partial class MySql + "/configurations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ConfigurationsListByServer_Call(request,onOk,eventListener,sender); } @@ -562,8 +575,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -635,8 +649,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -646,19 +660,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesCreateOrUpdate_Call(request,onOk,eventListener,sender); } @@ -693,8 +708,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var databaseName = _match.Groups["databaseName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -704,19 +719,20 @@ public partial class MySql + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesCreateOrUpdate_Call(request,onOk,eventListener,sender); } @@ -737,15 +753,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -771,33 +788,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -812,6 +831,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -908,8 +930,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -919,15 +941,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesDelete_Call(request,onOk,onNoContent,eventListener,sender); } @@ -962,8 +985,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var databaseName = _match.Groups["databaseName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -973,15 +996,16 @@ public partial class MySql + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesDelete_Call(request,onOk,onNoContent,eventListener,sender); } @@ -1003,8 +1027,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -1012,7 +1037,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -1038,33 +1063,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -1079,6 +1106,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -1177,8 +1207,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1188,15 +1218,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesGet_Call(request,onOk,eventListener,sender); } @@ -1230,8 +1261,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var databaseName = _match.Groups["databaseName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1241,15 +1272,16 @@ public partial class MySql + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesGet_Call(request,onOk,eventListener,sender); } @@ -1270,8 +1302,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1343,8 +1376,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1353,15 +1386,16 @@ public partial class MySql + "/databases" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesListByServer_Call(request,onOk,eventListener,sender); } @@ -1394,8 +1428,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1404,15 +1438,16 @@ public partial class MySql + "/databases" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesListByServer_Call(request,onOk,eventListener,sender); } @@ -1433,8 +1468,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1506,8 +1542,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1517,19 +1553,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(firewallRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesCreateOrUpdate_Call(request,onOk,eventListener,sender); } @@ -1564,8 +1601,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var firewallRuleName = _match.Groups["firewallRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1575,19 +1612,20 @@ public partial class MySql + firewallRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesCreateOrUpdate_Call(request,onOk,eventListener,sender); } @@ -1608,15 +1646,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -1642,33 +1681,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -1683,6 +1724,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -1779,8 +1823,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1790,15 +1834,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(firewallRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesDelete_Call(request,onOk,onNoContent,eventListener,sender); } @@ -1833,8 +1878,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var firewallRuleName = _match.Groups["firewallRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1844,15 +1889,16 @@ public partial class MySql + firewallRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesDelete_Call(request,onOk,onNoContent,eventListener,sender); } @@ -1874,8 +1920,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -1883,7 +1930,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -1909,33 +1956,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -1950,6 +1999,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -2048,8 +2100,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2059,15 +2111,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(firewallRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesGet_Call(request,onOk,eventListener,sender); } @@ -2101,8 +2154,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var firewallRuleName = _match.Groups["firewallRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2112,15 +2165,16 @@ public partial class MySql + firewallRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesGet_Call(request,onOk,eventListener,sender); } @@ -2141,8 +2195,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2214,8 +2269,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2224,15 +2279,16 @@ public partial class MySql + "/firewallRules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesListByServer_Call(request,onOk,eventListener,sender); } @@ -2265,8 +2321,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2275,15 +2331,16 @@ public partial class MySql + "/firewallRules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FirewallRulesListByServer_Call(request,onOk,eventListener,sender); } @@ -2304,8 +2361,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2378,8 +2436,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2389,15 +2447,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(configurationName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerConfigurationsGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -2433,8 +2492,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var configurationName = _match.Groups["configurationName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2444,15 +2503,16 @@ public partial class MySql + configurationName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerConfigurationsGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -2475,8 +2535,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2552,8 +2613,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2562,15 +2623,16 @@ public partial class MySql + "/configurations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerConfigurationsListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -2605,8 +2667,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2615,15 +2677,16 @@ public partial class MySql + "/configurations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerConfigurationsListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -2648,8 +2711,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2725,8 +2789,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2736,19 +2800,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(configurationName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerConfigurationsUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -2785,8 +2850,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var configurationName = _match.Groups["configurationName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2796,19 +2861,20 @@ public partial class MySql + configurationName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerConfigurationsUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -2831,15 +2897,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -2865,33 +2932,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -2906,6 +2975,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -3006,8 +3078,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3017,19 +3089,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -3066,8 +3139,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var databaseName = _match.Groups["databaseName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3077,19 +3150,20 @@ public partial class MySql + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -3114,15 +3188,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -3148,33 +3223,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -3189,6 +3266,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -3289,8 +3369,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3300,15 +3380,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -3345,8 +3426,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var databaseName = _match.Groups["databaseName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3356,15 +3437,16 @@ public partial class MySql + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -3388,8 +3470,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -3397,7 +3480,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -3423,33 +3506,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -3464,6 +3549,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -3566,8 +3654,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3577,15 +3665,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -3621,8 +3710,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var databaseName = _match.Groups["databaseName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3632,15 +3721,16 @@ public partial class MySql + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -3663,8 +3753,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3740,8 +3831,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3750,15 +3841,16 @@ public partial class MySql + "/databases" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -3793,8 +3885,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3803,15 +3895,16 @@ public partial class MySql + "/databases" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerDatabasesListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -3834,8 +3927,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3911,8 +4005,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3922,19 +4016,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(firewallRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -3971,8 +4066,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var firewallRuleName = _match.Groups["firewallRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3982,19 +4077,20 @@ public partial class MySql + firewallRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -4019,15 +4115,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -4053,33 +4150,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -4094,6 +4193,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -4194,8 +4296,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -4205,15 +4307,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(firewallRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -4250,8 +4353,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var firewallRuleName = _match.Groups["firewallRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -4261,15 +4364,16 @@ public partial class MySql + firewallRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -4293,8 +4397,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -4302,7 +4407,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -4328,33 +4433,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -4369,6 +4476,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -4471,8 +4581,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -4482,15 +4592,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(firewallRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -4526,8 +4637,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var firewallRuleName = _match.Groups["firewallRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -4537,15 +4648,16 @@ public partial class MySql + firewallRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -4568,8 +4680,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4645,8 +4758,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -4655,15 +4768,16 @@ public partial class MySql + "/firewallRules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -4698,8 +4812,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -4708,15 +4822,16 @@ public partial class MySql + "/firewallRules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerFirewallRulesListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -4741,8 +4856,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4818,8 +4934,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -4829,19 +4945,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(keyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -4878,8 +4995,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var keyName = _match.Groups["keyName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -4889,19 +5006,20 @@ public partial class MySql + keyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -4924,15 +5042,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -4958,33 +5077,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -4999,6 +5120,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -5099,8 +5223,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -5110,15 +5234,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(keyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -5155,8 +5280,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var keyName = _match.Groups["keyName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -5166,15 +5291,16 @@ public partial class MySql + keyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -5198,8 +5324,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -5207,7 +5334,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -5233,33 +5360,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -5274,6 +5403,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -5376,8 +5508,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -5387,15 +5519,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(keyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -5431,8 +5564,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var keyName = _match.Groups["keyName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -5442,15 +5575,16 @@ public partial class MySql + keyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -5473,8 +5607,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -5550,8 +5685,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -5560,15 +5695,16 @@ public partial class MySql + "/keys" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -5603,8 +5739,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -5613,15 +5749,16 @@ public partial class MySql + "/keys" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerKeysListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -5644,8 +5781,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -5718,23 +5856,24 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DBForMySql/locations/" + global::System.Uri.EscapeDataString(locationName) + "/capabilities" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerLocationBasedCapabilitiesList_Call(request,onOk,onDefault,eventListener,sender); } @@ -5768,23 +5907,24 @@ public partial class MySql var subscriptionId = _match.Groups["subscriptionId"].Value; var locationName = _match.Groups["locationName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.DBForMySql/locations/" + locationName + "/capabilities" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerLocationBasedCapabilitiesList_Call(request,onOk,onDefault,eventListener,sender); } @@ -5809,8 +5949,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -5878,25 +6019,26 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DBForMySql/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerNameAvailabilityTest_Call(request,onOk,onDefault,eventListener,sender); } @@ -5930,25 +6072,26 @@ public partial class MySql // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.DBForMySql/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerNameAvailabilityTest_Call(request,onOk,onDefault,eventListener,sender); } @@ -5971,8 +6114,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6042,8 +6186,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -6052,15 +6196,16 @@ public partial class MySql + "/replicas" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerReplicasListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -6095,8 +6240,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -6105,15 +6250,16 @@ public partial class MySql + "/replicas" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerReplicasListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -6136,8 +6282,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6211,27 +6358,28 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DBForMySql/locations/" + global::System.Uri.EscapeDataString(locationName) + "/checkVirtualNetworkSubnetUsage" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerVirtualNetworkSubnetUsageGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -6266,27 +6414,28 @@ public partial class MySql var subscriptionId = _match.Groups["subscriptionId"].Value; var locationName = _match.Groups["locationName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.DBForMySql/locations/" + locationName + "/checkVirtualNetworkSubnetUsage" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServerVirtualNetworkSubnetUsageGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -6311,8 +6460,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6387,8 +6537,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -6396,19 +6546,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersCreate_Call(request,onOk,onDefault,eventListener,sender); } @@ -6446,8 +6597,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -6455,19 +6606,20 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersCreate_Call(request,onOk,onDefault,eventListener,sender); } @@ -6490,15 +6642,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -6524,33 +6677,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -6565,6 +6720,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -6662,8 +6820,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -6671,15 +6829,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -6715,8 +6874,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -6724,15 +6883,16 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -6756,8 +6916,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -6765,7 +6926,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -6791,33 +6952,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -6832,6 +6995,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -6931,8 +7097,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -6940,15 +7106,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -6983,8 +7150,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -6992,15 +7159,16 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -7023,8 +7191,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -7096,21 +7265,22 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DBForMySql/flexibleServers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersList_Call(request,onOk,onDefault,eventListener,sender); } @@ -7134,23 +7304,24 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DBForMySql/flexibleServers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } @@ -7184,23 +7355,24 @@ public partial class MySql var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DBForMySql/flexibleServers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } @@ -7223,8 +7395,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -7304,21 +7477,22 @@ public partial class MySql // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.DBForMySql/flexibleServers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersList_Call(request,onOk,onDefault,eventListener,sender); } @@ -7341,8 +7515,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -7409,8 +7584,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -7419,15 +7594,16 @@ public partial class MySql + "/restart" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersRestart_Call(request,onOk,onDefault,eventListener,sender); } @@ -7462,8 +7638,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -7472,15 +7648,16 @@ public partial class MySql + "/restart" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersRestart_Call(request,onOk,onDefault,eventListener,sender); } @@ -7503,8 +7680,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -7512,7 +7690,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -7538,33 +7716,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -7579,6 +7759,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -7672,8 +7855,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -7682,15 +7865,16 @@ public partial class MySql + "/start" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersStart_Call(request,onOk,onDefault,eventListener,sender); } @@ -7725,8 +7909,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -7735,15 +7919,16 @@ public partial class MySql + "/start" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersStart_Call(request,onOk,onDefault,eventListener,sender); } @@ -7766,8 +7951,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -7775,7 +7961,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -7801,33 +7987,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -7842,6 +8030,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -7935,8 +8126,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -7945,15 +8136,16 @@ public partial class MySql + "/stop" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersStop_Call(request,onOk,onDefault,eventListener,sender); } @@ -7988,8 +8180,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -7998,15 +8190,16 @@ public partial class MySql + "/stop" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersStop_Call(request,onOk,onDefault,eventListener,sender); } @@ -8029,8 +8222,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -8038,7 +8232,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -8064,33 +8258,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -8105,6 +8301,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -8201,8 +8400,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -8210,19 +8409,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -8260,8 +8460,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -8269,19 +8469,20 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.FlexibleServersUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -8304,15 +8505,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -8338,33 +8540,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -8379,6 +8583,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -8472,23 +8679,24 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DBForMySQL/locations/" + global::System.Uri.EscapeDataString(locationName) + "/performanceTiers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.LocationBasedPerformanceTierList_Call(request,onOk,eventListener,sender); } @@ -8520,23 +8728,24 @@ public partial class MySql var subscriptionId = _match.Groups["subscriptionId"].Value; var locationName = _match.Groups["locationName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.DBForMySQL/locations/" + locationName + "/performanceTiers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.LocationBasedPerformanceTierList_Call(request,onOk,eventListener,sender); } @@ -8557,8 +8766,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -8623,8 +8833,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -8633,15 +8843,16 @@ public partial class MySql + "/logFiles" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.LogFilesListByServer_Call(request,onOk,eventListener,sender); } @@ -8674,8 +8885,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -8684,15 +8895,16 @@ public partial class MySql + "/logFiles" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.LogFilesListByServer_Call(request,onOk,eventListener,sender); } @@ -8713,8 +8925,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -8783,25 +8996,26 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DBForMySQL/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.NameAvailabilityTest_Call(request,onOk,eventListener,sender); } @@ -8833,25 +9047,26 @@ public partial class MySql // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.DBForMySQL/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.NameAvailabilityTest_Call(request,onOk,eventListener,sender); } @@ -8872,8 +9087,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -8936,19 +9152,20 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.DBForMySQL/operations" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.DBForMySQL/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.OperationsList_Call(request,onOk,eventListener,sender); } @@ -8970,19 +9187,20 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.DBForMySql/operations" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.DBForMySql/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.OperationsList1_Call(request,onOk,onDefault,eventListener,sender); } @@ -9014,19 +9232,20 @@ public partial class MySql // replace URI parameters with values from identity // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.DBForMySql/operations" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.DBForMySql/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.OperationsList1_Call(request,onOk,onDefault,eventListener,sender); } @@ -9049,8 +9268,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -9120,19 +9340,20 @@ public partial class MySql // replace URI parameters with values from identity // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.DBForMySQL/operations" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.DBForMySQL/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.OperationsList_Call(request,onOk,eventListener,sender); } @@ -9153,8 +9374,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -9215,8 +9437,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -9225,15 +9447,16 @@ public partial class MySql + "/replicas" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ReplicasListByServer_Call(request,onOk,eventListener,sender); } @@ -9266,8 +9489,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -9276,15 +9499,16 @@ public partial class MySql + "/replicas" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ReplicasListByServer_Call(request,onOk,eventListener,sender); } @@ -9305,8 +9529,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -9382,8 +9607,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -9392,19 +9617,20 @@ public partial class MySql + "/Administrators/activeDirectory" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -9443,8 +9669,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -9453,19 +9679,20 @@ public partial class MySql + "/Administrators/activeDirectory" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -9488,15 +9715,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -9522,33 +9750,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -9563,6 +9793,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -9660,8 +9893,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -9670,15 +9903,16 @@ public partial class MySql + "/Administrators/activeDirectory" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -9714,8 +9948,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -9724,15 +9958,16 @@ public partial class MySql + "/Administrators/activeDirectory" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -9756,8 +9991,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -9765,7 +10001,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -9791,33 +10027,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -9832,6 +10070,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -9931,8 +10172,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -9941,15 +10182,16 @@ public partial class MySql + "/Administrators/activeDirectory" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -9984,8 +10226,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -9994,15 +10236,16 @@ public partial class MySql + "/Administrators/activeDirectory" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -10025,8 +10268,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -10100,8 +10344,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -10110,15 +10354,16 @@ public partial class MySql + "/administrators" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsList_Call(request,onOk,onDefault,eventListener,sender); } @@ -10153,8 +10398,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -10163,15 +10408,16 @@ public partial class MySql + "/administrators" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerAdministratorsList_Call(request,onOk,onDefault,eventListener,sender); } @@ -10194,8 +10440,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -10271,8 +10518,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -10282,19 +10529,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(securityAlertPolicyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerSecurityAlertPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -10331,8 +10579,8 @@ public partial class MySql var securityAlertPolicyName = _match.Groups["securityAlertPolicyName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -10342,19 +10590,20 @@ public partial class MySql + securityAlertPolicyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerSecurityAlertPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -10379,15 +10628,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -10413,33 +10663,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -10454,6 +10706,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -10551,8 +10806,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -10562,15 +10817,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(securityAlertPolicyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerSecurityAlertPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -10606,8 +10862,8 @@ public partial class MySql var securityAlertPolicyName = _match.Groups["securityAlertPolicyName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -10617,15 +10873,16 @@ public partial class MySql + securityAlertPolicyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServerSecurityAlertPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -10648,8 +10905,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -10724,8 +10982,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -10733,19 +10991,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersCreate_Call(request,onOk,eventListener,sender); } @@ -10781,8 +11040,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -10790,19 +11049,20 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersCreate_Call(request,onOk,eventListener,sender); } @@ -10823,15 +11083,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -10857,33 +11118,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -10898,6 +11161,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -10991,8 +11257,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -11000,15 +11266,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersDelete_Call(request,onOk,onNoContent,eventListener,sender); } @@ -11042,8 +11309,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -11051,15 +11318,16 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersDelete_Call(request,onOk,onNoContent,eventListener,sender); } @@ -11081,8 +11349,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -11090,7 +11359,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -11116,33 +11385,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -11157,6 +11428,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -11252,8 +11526,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -11261,15 +11535,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersGet_Call(request,onOk,eventListener,sender); } @@ -11302,8 +11577,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -11311,15 +11586,16 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersGet_Call(request,onOk,eventListener,sender); } @@ -11340,8 +11616,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11409,21 +11686,22 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersList_Call(request,onOk,eventListener,sender); } @@ -11445,23 +11723,24 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersListByResourceGroup_Call(request,onOk,eventListener,sender); } @@ -11493,23 +11772,24 @@ public partial class MySql var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersListByResourceGroup_Call(request,onOk,eventListener,sender); } @@ -11530,8 +11810,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11607,21 +11888,22 @@ public partial class MySql // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersList_Call(request,onOk,eventListener,sender); } @@ -11642,8 +11924,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11708,8 +11991,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -11718,15 +12001,16 @@ public partial class MySql + "/restart" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersRestart_Call(request,onOk,onDefault,eventListener,sender); } @@ -11761,8 +12045,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -11771,15 +12055,16 @@ public partial class MySql + "/restart" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersRestart_Call(request,onOk,onDefault,eventListener,sender); } @@ -11802,8 +12087,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -11811,7 +12097,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -11837,33 +12123,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -11878,6 +12166,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -11972,8 +12263,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -11981,19 +12272,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersUpdate_Call(request,onOk,eventListener,sender); } @@ -12029,8 +12321,8 @@ public partial class MySql var resourceGroupName = _match.Groups["resourceGroupName"].Value; var serverName = _match.Groups["serverName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -12038,19 +12330,20 @@ public partial class MySql + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.ServersUpdate_Call(request,onOk,eventListener,sender); } @@ -12071,15 +12364,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -12105,33 +12399,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -12146,6 +12442,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -12242,8 +12541,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -12253,19 +12552,20 @@ public partial class MySql + global::System.Uri.EscapeDataString(virtualNetworkRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -12302,8 +12602,8 @@ public partial class MySql var subscriptionId = _match.Groups["subscriptionId"].Value; var virtualNetworkRuleName = _match.Groups["virtualNetworkRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -12313,19 +12613,20 @@ public partial class MySql + virtualNetworkRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -12348,15 +12649,16 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -12382,33 +12684,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -12423,6 +12727,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -12523,8 +12830,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -12534,15 +12841,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(virtualNetworkRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -12579,8 +12887,8 @@ public partial class MySql var virtualNetworkRuleName = _match.Groups["virtualNetworkRuleName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -12590,15 +12898,16 @@ public partial class MySql + virtualNetworkRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -12622,8 +12931,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -12631,7 +12941,7 @@ public partial class MySql var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -12657,33 +12967,35 @@ public partial class MySql // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -12698,6 +13010,9 @@ public partial class MySql // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -12800,8 +13115,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -12811,15 +13126,16 @@ public partial class MySql + global::System.Uri.EscapeDataString(virtualNetworkRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -12855,8 +13171,8 @@ public partial class MySql var subscriptionId = _match.Groups["subscriptionId"].Value; var virtualNetworkRuleName = _match.Groups["virtualNetworkRuleName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -12866,15 +13182,16 @@ public partial class MySql + virtualNetworkRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -12897,8 +13214,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -12974,8 +13292,8 @@ public partial class MySql using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -12984,15 +13302,16 @@ public partial class MySql + "/virtualNetworkRules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -13027,8 +13346,8 @@ public partial class MySql var serverName = _match.Groups["serverName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -13037,15 +13356,16 @@ public partial class MySql + "/virtualNetworkRules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.VirtualNetworkRulesListByServer_Call(request,onOk,onDefault,eventListener,sender); } @@ -13068,8 +13388,9 @@ public partial class MySql global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; diff --git a/src/MySql/generated/api/Support/CreateMode.cs b/src/MySql/generated/api/Support/CreateMode.cs index 6f4f46fbef6b..282f67334fe0 100644 --- a/src/MySql/generated/api/Support/CreateMode.cs +++ b/src/MySql/generated/api/Support/CreateMode.cs @@ -25,7 +25,7 @@ public partial struct CreateMode : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new CreateMode(System.Convert.ToString(value)); + return new CreateMode(global::System.Convert.ToString(value)); } /// Creates an instance of the diff --git a/src/MySql/generated/api/Support/GeoRedundantBackup.cs b/src/MySql/generated/api/Support/GeoRedundantBackup.cs index 17cd4db957d7..81310dfb680a 100644 --- a/src/MySql/generated/api/Support/GeoRedundantBackup.cs +++ b/src/MySql/generated/api/Support/GeoRedundantBackup.cs @@ -21,7 +21,7 @@ public partial struct GeoRedundantBackup : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new GeoRedundantBackup(System.Convert.ToString(value)); + return new GeoRedundantBackup(global::System.Convert.ToString(value)); } /// Compares values of enum type GeoRedundantBackup diff --git a/src/MySql/generated/api/Support/HaEnabledEnum.cs b/src/MySql/generated/api/Support/HaEnabledEnum.cs index f070c288720c..4bb0690b555f 100644 --- a/src/MySql/generated/api/Support/HaEnabledEnum.cs +++ b/src/MySql/generated/api/Support/HaEnabledEnum.cs @@ -23,7 +23,7 @@ public partial struct HaEnabledEnum : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new HaEnabledEnum(System.Convert.ToString(value)); + return new HaEnabledEnum(global::System.Convert.ToString(value)); } /// Compares values of enum type HaEnabledEnum diff --git a/src/MySql/generated/api/Support/IdentityType.cs b/src/MySql/generated/api/Support/IdentityType.cs index 0ea3bcd97987..bedd9a084ce2 100644 --- a/src/MySql/generated/api/Support/IdentityType.cs +++ b/src/MySql/generated/api/Support/IdentityType.cs @@ -22,7 +22,7 @@ public partial struct IdentityType : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new IdentityType(System.Convert.ToString(value)); + return new IdentityType(global::System.Convert.ToString(value)); } /// Compares values of enum type IdentityType diff --git a/src/MySql/generated/api/Support/InfrastructureEncryption.cs b/src/MySql/generated/api/Support/InfrastructureEncryption.cs index e57fd103dea0..fe75ecfaee80 100644 --- a/src/MySql/generated/api/Support/InfrastructureEncryption.cs +++ b/src/MySql/generated/api/Support/InfrastructureEncryption.cs @@ -26,7 +26,7 @@ public partial struct InfrastructureEncryption : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new InfrastructureEncryption(System.Convert.ToString(value)); + return new InfrastructureEncryption(global::System.Convert.ToString(value)); } /// Compares values of enum type InfrastructureEncryption diff --git a/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.cs b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.cs index 00f260498889..08d6f658de8b 100644 --- a/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.cs +++ b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.cs @@ -26,7 +26,7 @@ public partial struct InfrastructureEncryptionEnum : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new InfrastructureEncryptionEnum(System.Convert.ToString(value)); + return new InfrastructureEncryptionEnum(global::System.Convert.ToString(value)); } /// Compares values of enum type InfrastructureEncryptionEnum diff --git a/src/MySql/generated/api/Support/IsConfigPendingRestart.cs b/src/MySql/generated/api/Support/IsConfigPendingRestart.cs index dfd3c081f048..14604914eb39 100644 --- a/src/MySql/generated/api/Support/IsConfigPendingRestart.cs +++ b/src/MySql/generated/api/Support/IsConfigPendingRestart.cs @@ -21,7 +21,7 @@ public partial struct IsConfigPendingRestart : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new IsConfigPendingRestart(System.Convert.ToString(value)); + return new IsConfigPendingRestart(global::System.Convert.ToString(value)); } /// Compares values of enum type IsConfigPendingRestart diff --git a/src/MySql/generated/api/Support/IsDynamicConfig.cs b/src/MySql/generated/api/Support/IsDynamicConfig.cs index ae5357891782..a874bf04368b 100644 --- a/src/MySql/generated/api/Support/IsDynamicConfig.cs +++ b/src/MySql/generated/api/Support/IsDynamicConfig.cs @@ -21,7 +21,7 @@ public partial struct IsDynamicConfig : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new IsDynamicConfig(System.Convert.ToString(value)); + return new IsDynamicConfig(global::System.Convert.ToString(value)); } /// Compares values of enum type IsDynamicConfig diff --git a/src/MySql/generated/api/Support/IsReadOnly.cs b/src/MySql/generated/api/Support/IsReadOnly.cs index 8df4d73400c5..eb44bcd03e8d 100644 --- a/src/MySql/generated/api/Support/IsReadOnly.cs +++ b/src/MySql/generated/api/Support/IsReadOnly.cs @@ -21,7 +21,7 @@ public partial struct IsReadOnly : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new IsReadOnly(System.Convert.ToString(value)); + return new IsReadOnly(global::System.Convert.ToString(value)); } /// Compares values of enum type IsReadOnly diff --git a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs index e7290a8797b6..d47a039f57e4 100644 --- a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs +++ b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs @@ -25,7 +25,7 @@ public partial struct MinimalTlsVersionEnum : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new MinimalTlsVersionEnum(System.Convert.ToString(value)); + return new MinimalTlsVersionEnum(global::System.Convert.ToString(value)); } /// Compares values of enum type MinimalTlsVersionEnum diff --git a/src/MySql/generated/api/Support/OperationOrigin.cs b/src/MySql/generated/api/Support/OperationOrigin.cs index 18342df618a3..8affca3232f7 100644 --- a/src/MySql/generated/api/Support/OperationOrigin.cs +++ b/src/MySql/generated/api/Support/OperationOrigin.cs @@ -23,7 +23,7 @@ public partial struct OperationOrigin : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new OperationOrigin(System.Convert.ToString(value)); + return new OperationOrigin(global::System.Convert.ToString(value)); } /// Compares values of enum type OperationOrigin diff --git a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs index f7fda299b8f6..148871408a6d 100644 --- a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs +++ b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs @@ -29,7 +29,7 @@ public partial struct PrivateEndpointProvisioningState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new PrivateEndpointProvisioningState(System.Convert.ToString(value)); + return new PrivateEndpointProvisioningState(global::System.Convert.ToString(value)); } /// Compares values of enum type PrivateEndpointProvisioningState diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs index ed86fd8c48b3..0a591f213c6b 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -24,7 +24,7 @@ public partial struct PrivateLinkServiceConnectionStateActionsRequire : /// />. internal static object CreateFrom(object value) { - return new PrivateLinkServiceConnectionStateActionsRequire(System.Convert.ToString(value)); + return new PrivateLinkServiceConnectionStateActionsRequire(global::System.Convert.ToString(value)); } /// Compares values of enum type PrivateLinkServiceConnectionStateActionsRequire diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs index 3d73827b52c0..b5737254cb40 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs @@ -27,7 +27,7 @@ public partial struct PrivateLinkServiceConnectionStateStatus : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new PrivateLinkServiceConnectionStateStatus(System.Convert.ToString(value)); + return new PrivateLinkServiceConnectionStateStatus(global::System.Convert.ToString(value)); } /// Compares values of enum type PrivateLinkServiceConnectionStateStatus diff --git a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs index 28783da0b3b5..ba53b430a83c 100644 --- a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs +++ b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs @@ -24,7 +24,7 @@ public partial struct PublicNetworkAccessEnum : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new PublicNetworkAccessEnum(System.Convert.ToString(value)); + return new PublicNetworkAccessEnum(global::System.Convert.ToString(value)); } /// Compares values of enum type PublicNetworkAccessEnum diff --git a/src/MySql/generated/api/Support/ResourceIdentityType.cs b/src/MySql/generated/api/Support/ResourceIdentityType.cs index f28720cfde74..995b88bbfa58 100644 --- a/src/MySql/generated/api/Support/ResourceIdentityType.cs +++ b/src/MySql/generated/api/Support/ResourceIdentityType.cs @@ -19,7 +19,7 @@ public partial struct ResourceIdentityType : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ResourceIdentityType(System.Convert.ToString(value)); + return new ResourceIdentityType(global::System.Convert.ToString(value)); } /// Compares values of enum type ResourceIdentityType diff --git a/src/MySql/generated/api/Support/SecurityAlertPolicyName.cs b/src/MySql/generated/api/Support/SecurityAlertPolicyName.cs index f11de907aabb..1373ae1af6d4 100644 --- a/src/MySql/generated/api/Support/SecurityAlertPolicyName.cs +++ b/src/MySql/generated/api/Support/SecurityAlertPolicyName.cs @@ -18,7 +18,7 @@ public partial struct SecurityAlertPolicyName : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new SecurityAlertPolicyName(System.Convert.ToString(value)); + return new SecurityAlertPolicyName(global::System.Convert.ToString(value)); } /// Compares values of enum type SecurityAlertPolicyName diff --git a/src/MySql/generated/api/Support/ServerHaState.cs b/src/MySql/generated/api/Support/ServerHaState.cs index 5b3f6879cbe1..a6b31cdf43c9 100644 --- a/src/MySql/generated/api/Support/ServerHaState.cs +++ b/src/MySql/generated/api/Support/ServerHaState.cs @@ -29,7 +29,7 @@ public partial struct ServerHaState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ServerHaState(System.Convert.ToString(value)); + return new ServerHaState(global::System.Convert.ToString(value)); } /// Compares values of enum type ServerHaState diff --git a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs index ddbd78bd9c3e..cdf0479ea8d7 100644 --- a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs +++ b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs @@ -23,7 +23,7 @@ public partial struct ServerSecurityAlertPolicyState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ServerSecurityAlertPolicyState(System.Convert.ToString(value)); + return new ServerSecurityAlertPolicyState(global::System.Convert.ToString(value)); } /// Compares values of enum type ServerSecurityAlertPolicyState diff --git a/src/MySql/generated/api/Support/ServerState.cs b/src/MySql/generated/api/Support/ServerState.cs index 047069050448..1ccd127393a0 100644 --- a/src/MySql/generated/api/Support/ServerState.cs +++ b/src/MySql/generated/api/Support/ServerState.cs @@ -33,7 +33,7 @@ public partial struct ServerState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ServerState(System.Convert.ToString(value)); + return new ServerState(global::System.Convert.ToString(value)); } /// Compares values of enum type ServerState diff --git a/src/MySql/generated/api/Support/ServerVersion.cs b/src/MySql/generated/api/Support/ServerVersion.cs index fac335f363ae..378284935331 100644 --- a/src/MySql/generated/api/Support/ServerVersion.cs +++ b/src/MySql/generated/api/Support/ServerVersion.cs @@ -23,7 +23,7 @@ public partial struct ServerVersion : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ServerVersion(System.Convert.ToString(value)); + return new ServerVersion(global::System.Convert.ToString(value)); } /// Compares values of enum type ServerVersion diff --git a/src/MySql/generated/api/Support/SkuTier.cs b/src/MySql/generated/api/Support/SkuTier.cs index 336856258736..7224b99e7e0c 100644 --- a/src/MySql/generated/api/Support/SkuTier.cs +++ b/src/MySql/generated/api/Support/SkuTier.cs @@ -25,7 +25,7 @@ public partial struct SkuTier : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new SkuTier(System.Convert.ToString(value)); + return new SkuTier(global::System.Convert.ToString(value)); } /// Compares values of enum type SkuTier diff --git a/src/MySql/generated/api/Support/SslEnforcementEnum.cs b/src/MySql/generated/api/Support/SslEnforcementEnum.cs index e552d6d2f48d..072db67c1bda 100644 --- a/src/MySql/generated/api/Support/SslEnforcementEnum.cs +++ b/src/MySql/generated/api/Support/SslEnforcementEnum.cs @@ -21,7 +21,7 @@ public partial struct SslEnforcementEnum : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new SslEnforcementEnum(System.Convert.ToString(value)); + return new SslEnforcementEnum(global::System.Convert.ToString(value)); } /// Compares values of enum type SslEnforcementEnum diff --git a/src/MySql/generated/api/Support/StorageAutogrow.cs b/src/MySql/generated/api/Support/StorageAutogrow.cs index 94aff9b19d0c..db05e290d180 100644 --- a/src/MySql/generated/api/Support/StorageAutogrow.cs +++ b/src/MySql/generated/api/Support/StorageAutogrow.cs @@ -21,7 +21,7 @@ public partial struct StorageAutogrow : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new StorageAutogrow(System.Convert.ToString(value)); + return new StorageAutogrow(global::System.Convert.ToString(value)); } /// Compares values of enum type StorageAutogrow diff --git a/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs b/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs index 2ac4d75c0f4e..e2133f2b9a7e 100644 --- a/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs +++ b/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs @@ -27,7 +27,7 @@ public partial struct VirtualNetworkRuleState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new VirtualNetworkRuleState(System.Convert.ToString(value)); + return new VirtualNetworkRuleState(global::System.Convert.ToString(value)); } /// Compares values of enum type VirtualNetworkRuleState diff --git a/src/MySql/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/MySql/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index b13865c6783a..65337fe466dc 100644 --- a/src/MySql/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/MySql/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -42,7 +42,7 @@ public class ExportProxyCmdlet : PSCmdlet [ValidateNotNullOrEmpty] public string DocsFolder { get; set; } - [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [Parameter(Mandatory = true)] [ValidateNotNullOrEmpty] public string ExamplesFolder { get; set; } diff --git a/src/MySql/generated/runtime/UndeclaredResponseException.cs b/src/MySql/generated/runtime/UndeclaredResponseException.cs index 495e38e8b6c7..b23196e8a477 100644 --- a/src/MySql/generated/runtime/UndeclaredResponseException.cs +++ b/src/MySql/generated/runtime/UndeclaredResponseException.cs @@ -42,8 +42,13 @@ public RestException(System.Net.Http.HttpResponseMessage response) // try to parse the body as JSON, and see if a code and message are in there. var json = Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(ResponseBody) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject; + // error message could be in properties.statusMessage + { message = If(json?.Property("properties"), out var p) + && If(p?.PropertyT("statusMessage"), out var sm) + ? (string)sm : (string)Message; } + // see if there is an error block in the body - json = json.Property("error") ?? json; + json = json?.Property("error") ?? json; { Code = If(json?.PropertyT("code"), out var c) ? (string)c : (string)StatusCode.ToString(); } { message = If(json?.PropertyT("message"), out var m) ? (string)m : (string)Message; } diff --git a/src/MySql/help/Az.MySql.md b/src/MySql/help/Az.MySql.md index dd32ccb6dd13..673e0fb0962b 100644 --- a/src/MySql/help/Az.MySql.md +++ b/src/MySql/help/Az.MySql.md @@ -26,12 +26,18 @@ Gets information about a server. ### [Get-AzMySqlFlexibleServerConfiguration](Get-AzMySqlFlexibleServerConfiguration.md) Gets information about a configuration of server. +### [Get-AzMySqlFlexibleServerConnectionString](Get-AzMySqlFlexibleServerConnectionString.md) +Get the connection string according to client connection provider. + ### [Get-AzMySqlFlexibleServerDatabase](Get-AzMySqlFlexibleServerDatabase.md) Gets information about a database. ### [Get-AzMySqlFlexibleServerFirewallRule](Get-AzMySqlFlexibleServerFirewallRule.md) Gets information about a server firewall rule. +### [Get-AzMySqlFlexibleServerLocationBasedCapability](Get-AzMySqlFlexibleServerLocationBasedCapability.md) +Get the available SKU information for the location + ### [Get-AzMySqlFlexibleServerReplica](Get-AzMySqlFlexibleServerReplica.md) List all the replicas for a given server. diff --git a/src/MySql/help/Get-AzMySqlConnectionString.md b/src/MySql/help/Get-AzMySqlConnectionString.md index d586aefc49ad..ee1ecaf4ce97 100644 --- a/src/MySql/help/Get-AzMySqlConnectionString.md +++ b/src/MySql/help/Get-AzMySqlConnectionString.md @@ -80,7 +80,7 @@ Accept wildcard characters: False ``` ### -InputObject -The source server object to create replica from. +Name of the server To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml @@ -160,7 +160,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : The source server object to create replica from. +INPUTOBJECT : Name of the server - `Location `: The geo-location where the resource lives - `SkuName `: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - `[Tag ]`: Resource tags. diff --git a/src/MySql/help/Get-AzMySqlFlexibleServerConnectionString.md b/src/MySql/help/Get-AzMySqlFlexibleServerConnectionString.md new file mode 100644 index 000000000000..e5af446e5e16 --- /dev/null +++ b/src/MySql/help/Get-AzMySqlFlexibleServerConnectionString.md @@ -0,0 +1,177 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverconnectionstring +schema: 2.0.0 +--- + +# Get-AzMySqlFlexibleServerConnectionString + +## SYNOPSIS +Get the connection string according to client connection provider. + +## SYNTAX + +### Get (Default) +``` +Get-AzMySqlFlexibleServerConnectionString -Client -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzMySqlFlexibleServerConnectionString -Client -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get the connection string according to client connection provider. + +## EXAMPLES + +### Example 1: Get connection string by name +```powershell +PS C:\> Get-AzMySqlFlexibleServerConnectionString -Client Python -ResourceGroupName PowershellMySqlTest -Name mysql-test + +cnx = mysql.connector.connect(user=mysql_user, password="{your_password}", host="mysql-test.mysql.database.azure.com", port=3306, database="{your_database}", ssl_ca="{ca-cert filename}", ssl_disabled=False) +``` + +This cmdlet shows connection string of a client by server name. + +### Example 2: Get MySql server connection string by identity +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlFlexibleServerConnectionString -Client PHP + +$con=mysqli_init(); mysqli_real_connect($con, "mysql-test.mysql.database.azure.com", "mysql_test", {your_password}, {your_database}, 3306); +``` + +This cmdlet gets MySql server connection string by identity. + +## PARAMETERS + +### -Client +Client connection provider. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Name of the server +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### System.String + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Name of the server + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Get-AzMySqlFlexibleServerLocationBasedCapability.md b/src/MySql/help/Get-AzMySqlFlexibleServerLocationBasedCapability.md new file mode 100644 index 000000000000..9ef6410dd0a9 --- /dev/null +++ b/src/MySql/help/Get-AzMySqlFlexibleServerLocationBasedCapability.md @@ -0,0 +1,115 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverlocationbasedcapability +schema: 2.0.0 +--- + +# Get-AzMySqlFlexibleServerLocationBasedCapability + +## SYNOPSIS +Get the available SKU information for the location + +## SYNTAX + +``` +Get-AzMySqlFlexibleServerLocationBasedCapability -Location [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get the available SKU information for the location + +## EXAMPLES + +### Example 1: Get location capabilities by location name +```powershell +PS C:\> Get-AzMySqlFlexibleServerLocationBasedCapability -Location westus2 +"Please refer to https://aka.ms/mysql-pricing for pricing details" + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1s Burstable 1024 1 +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2ds_v4 GeneralPurpose 4096 2 +Standard_D4ds_v4 GeneralPurpose 4096 4 +Standard_D8ds_v4 GeneralPurpose 4096 8 +Standard_D16ds_v4 GeneralPurpose 4096 16 +Standard_D32ds_v4 GeneralPurpose 4096 32 +Standard_D48ds_v4 GeneralPurpose 4096 48 +Standard_D64ds_v4 GeneralPurpose 4096 64 +Standard_E2ds_v4 MemoryOptimized 8192 2 +Standard_E4ds_v4 MemoryOptimized 8192 4 +Standard_E8ds_v4 MemoryOptimized 8192 8 +Standard_E16ds_v4 MemoryOptimized 8192 16 +Standard_E32ds_v4 MemoryOptimized 8192 32 +Standard_E48ds_v4 MemoryOptimized 8192 48 +Standard_E64ds_v4 MemoryOptimized 8192 64 + +``` + +This cmdlet shows basic sku information of the provided location. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The name of the location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/MySql/help/New-AzMySqlFlexibleServer.md b/src/MySql/help/New-AzMySqlFlexibleServer.md index ca3bb777bccb..946bc30e9ed3 100644 --- a/src/MySql/help/New-AzMySqlFlexibleServer.md +++ b/src/MySql/help/New-AzMySqlFlexibleServer.md @@ -8,16 +8,17 @@ schema: 2.0.0 # New-AzMySqlFlexibleServer ## SYNOPSIS -Creates a new MySQL flexible server +Creates a new server. ## SYNTAX ``` -New-AzMySqlFlexibleServer -Name -ResourceGroupName - -AdministratorLoginPassword -AdministratorUserName [-SubscriptionId ] - [-BackupRetentionDay ] [-Location ] [-Sku ] [-SkuTier ] [-StorageInMb ] - [-Tag ] [-Version ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] +New-AzMySqlFlexibleServer [-Name ] [-ResourceGroupName ] [-SubscriptionId ] + [-AdministratorLoginPassword ] [-AdministratorUserName ] [-BackupRetentionDay ] + [-HighAvailability ] [-Location ] [-PublicAccess ] [-Sku ] + [-SkuTier ] [-StorageInMb ] [-Subnet ] [-SubnetPrefix ] [-Tag ] + [-Version ] [-Vnet ] [-VnetPrefix ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -25,31 +26,160 @@ Creates a new server. ## EXAMPLES -### Example 1: Create a new MySql flexible server +### Example 1: Create a new MySql flexible server with arguments ```powershell PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellMySqlTest ... +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group MySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details + + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "MySqlTest", +"skuname": "Standard_B1ms", +"username": "mysqltest", +"version": "5.7" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable ``` ### Example 2: Create a new MySql flexible server with default setting ```powershell -PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --AdministratorUserName mysqltest -AdministratorLoginPassword $password - -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable +PS C:\> New-AzMySqlFlexibleServer + +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/group00000000/providers/Microsoft.DBForMySql/flexibleServers/server00000000", +"location": "westus2", +"password": "***************", +"resourceGroup": "group00000000", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" ``` -Create MySql server with default values. +This cmdlet creates MySql flexible server with default parameter values and provision the server inside a new virtual network and have a subnet delegated to the server. The default values of location is West US 2, Sku is Standard_B1ms, Sku tier is Burstable, and storage size is 10GiB. +### Example 3: Create a new MySql flexible server with virtual network +```powershell +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +Resource group PowershellMySqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellMySqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellMySqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/vnetname/subnets/Subnetserver00000000" + +``` + +This cmdlet creates MySql flexible server with vnet id or vnet name provided by a user. +If the virtual network doesn't exist, the cmdlet creates one. + +### Example 4: Create a new MySql flexible server with virtual network and subnet name +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Vnet mysql-vnet -Subnet mysql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 + +Resource group PowershellMySqlTest exists ? : True +Creating new vnet mysql-vnet in resource group PowershellMySqlTest +Creating new subnet mysql-subnet in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/mysql-vnet/subnets/mysql-subnet" + +``` + +This cmdlet creates MySql flexible server with vnet name, subnet name, vnet prefix, and subnet prefix. +If the virtual network and subnet don't exist, the cmdlet creates one. + +### Example 7: Create a new MySql flexible server with public access to all IPs +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess All + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "AllowAll_2020_00_00-00_00-00-00" +``` + +This cmdlet creates MySql flexible server open to all IP addresses. + +### Example 8: Create a new MySql flexible server with firewall +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "FirewallIPAddress__2020_00_00-00_00-00-00" + +``` + +This cmdlet creates MySql flexible server open to specified IP addresses. + ## PARAMETERS ### -AdministratorLoginPassword @@ -62,7 +192,7 @@ Type: System.Security.SecureString Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -78,7 +208,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -131,6 +261,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -HighAvailability +Enable or disable high availability feature. +Default value is Disabled. +Default: Disabled. + +```yaml +Type: System.Object +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location The location the resource resides in. @@ -154,7 +301,7 @@ Type: System.String Parameter Sets: (All) Aliases: ServerName -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -176,6 +323,29 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PublicAccess +Determines the public access. +Enter single or range of IP addresses to be + included in the allowed list of IPs. +IP address ranges must be dash- + separated and not contain any spaces. +Specifying 0.0.0.0 allows public + access from any resources deployed within Azure to access your server. + Specifying no IP address sets the server in public access mode but does + not create a firewall rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. @@ -184,7 +354,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -239,6 +409,39 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Subnet +The Name or Id of an existing Subnet or name of a new one to create. +Please note that the subnet will be delegated to Microsoft.DBforMySQL/flexibleServers. +After delegation, this subnet cannot be used for any other type of Azure resources. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubnetPrefix +The subnet IP address prefix to use when creating a new vnet in CIDR format. +Default value is 10.0.0.0/24. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The subscription ID that identifies an Azure subscription. @@ -284,6 +487,39 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Vnet +The Name or Id of an existing virtual network or name of a new one to create. +The name must be between 2 to 64 characters. +The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VnetPrefix +The IP address prefix to use when creating a new vnet in CIDR format. +Default value is 10.0.0.0/16. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/MySql/internal/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 b/src/MySql/internal/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 index 44cfcb276f76..4c123cf80ae4 100644 --- a/src/MySql/internal/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 +++ b/src/MySql/internal/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 @@ -19,13 +19,29 @@ Get capabilities at specified location in a given subscription. .Description Get capabilities at specified location in a given subscription. .Example -PS C:\> {{ Add code here }} +PS C:\> Get-AzMySqlFlexibleServerLocationBasedCapability -Location westus2 +"Please refer to https://aka.ms/mysql-pricing for pricing details" + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1s Burstable 1024 1 +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2ds_v4 GeneralPurpose 4096 2 +Standard_D4ds_v4 GeneralPurpose 4096 4 +Standard_D8ds_v4 GeneralPurpose 4096 8 +Standard_D16ds_v4 GeneralPurpose 4096 16 +Standard_D32ds_v4 GeneralPurpose 4096 32 +Standard_D48ds_v4 GeneralPurpose 4096 48 +Standard_D64ds_v4 GeneralPurpose 4096 64 +Standard_E2ds_v4 MemoryOptimized 8192 2 +Standard_E4ds_v4 MemoryOptimized 8192 4 +Standard_E8ds_v4 MemoryOptimized 8192 8 +Standard_E16ds_v4 MemoryOptimized 8192 16 +Standard_E32ds_v4 MemoryOptimized 8192 32 +Standard_E48ds_v4 MemoryOptimized 8192 48 +Standard_E64ds_v4 MemoryOptimized 8192 64 -{{ Add output here }} -.Example -PS C:\> {{ Add code here }} - -{{ Add output here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties diff --git a/src/MySql/internal/New-AzMySqlFlexibleServer.ps1 b/src/MySql/internal/New-AzMySqlFlexibleServer.ps1 index db588bdf1544..3458baa04467 100644 --- a/src/MySql/internal/New-AzMySqlFlexibleServer.ps1 +++ b/src/MySql/internal/New-AzMySqlFlexibleServer.ps1 @@ -22,18 +22,125 @@ Creates a new server or updates an existing server. The update action will overwrite the existing server. .Example PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellMySqlTest ... +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group MySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details + + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "MySqlTest", +"skuname": "Standard_B1ms", +"username": "mysqltest", +"version": "5.7" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable .Example -PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --AdministratorUserName mysqltest -AdministratorLoginPassword $password +PS C:\> New-AzMySqlFlexibleServer + +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/group00000000/providers/Microsoft.DBForMySql/flexibleServers/server00000000", +"location": "westus2", +"password": "***************", +"resourceGroup": "group00000000", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +.Example +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +Resource group PowershellMySqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellMySqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellMySqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/vnetname/subnets/Subnetserver00000000" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Vnet mysql-vnet -Subnet mysql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 + +Resource group PowershellMySqlTest exists ? : True +Creating new vnet mysql-vnet in resource group PowershellMySqlTest +Creating new subnet mysql-subnet in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/mysql-vnet/subnets/mysql-subnet" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess All + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "AllowAll_2020_00_00-00_00-00-00" +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "FirewallIPAddress__2020_00_00-00_00-00-00" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated diff --git a/src/MySql/internal/ProxyCmdletDefinitions.ps1 b/src/MySql/internal/ProxyCmdletDefinitions.ps1 index 62a6a0e29a60..dae4f476d15c 100644 --- a/src/MySql/internal/ProxyCmdletDefinitions.ps1 +++ b/src/MySql/internal/ProxyCmdletDefinitions.ps1 @@ -382,13 +382,29 @@ Get capabilities at specified location in a given subscription. .Description Get capabilities at specified location in a given subscription. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} -.Example -PS C:\> {{ Add code here }} +PS C:\> Get-AzMySqlFlexibleServerLocationBasedCapability -Location westus2 +"Please refer to https://aka.ms/mysql-pricing for pricing details" + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1s Burstable 1024 1 +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2ds_v4 GeneralPurpose 4096 2 +Standard_D4ds_v4 GeneralPurpose 4096 4 +Standard_D8ds_v4 GeneralPurpose 4096 8 +Standard_D16ds_v4 GeneralPurpose 4096 16 +Standard_D32ds_v4 GeneralPurpose 4096 32 +Standard_D48ds_v4 GeneralPurpose 4096 48 +Standard_D64ds_v4 GeneralPurpose 4096 64 +Standard_E2ds_v4 MemoryOptimized 8192 2 +Standard_E4ds_v4 MemoryOptimized 8192 4 +Standard_E8ds_v4 MemoryOptimized 8192 8 +Standard_E16ds_v4 MemoryOptimized 8192 16 +Standard_E32ds_v4 MemoryOptimized 8192 32 +Standard_E48ds_v4 MemoryOptimized 8192 48 +Standard_E64ds_v4 MemoryOptimized 8192 64 -{{ Add output here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties @@ -2809,18 +2825,125 @@ Creates a new server or updates an existing server. The update action will overwrite the existing server. .Example PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellMySqlTest ... +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group MySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details + + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "MySqlTest", +"skuname": "Standard_B1ms", +"username": "mysqltest", +"version": "5.7" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable .Example -PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --AdministratorUserName mysqltest -AdministratorLoginPassword $password +PS C:\> New-AzMySqlFlexibleServer + +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/group00000000/providers/Microsoft.DBForMySql/flexibleServers/server00000000", +"location": "westus2", +"password": "***************", +"resourceGroup": "group00000000", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +.Example +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Vnet $Vnet + +Resource group PowershellMySqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellMySqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellMySqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/vnetname/subnets/Subnetserver00000000" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Vnet mysql-vnet -Subnet mysql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 + +Resource group PowershellMySqlTest exists ? : True +Creating new vnet mysql-vnet in resource group PowershellMySqlTest +Creating new subnet mysql-subnet in resource group PowershellMySqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"subnetId": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetwork/mysql-vnet/subnets/mysql-subnet" + +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess All + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "AllowAll_2020_00_00-00_00-00-00" +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellMySqlTest exists ? : True +Creating MySQL server mysql-test in group PowershellMySqlTest... +Your server mysql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/mysql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +"databaseName": "flexibleserverdb", +"id": "/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test", +"location": "westus2", +"password": "***************", +"resourceGroup": "PowershellMySqlTest", +"skuname": "Standard_B1ms", +"username": "seemlyHyena2", +"version": "5.7" +"firewallName": "FirewallIPAddress__2020_00_00-00_00-00-00" -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier ----- -------- ------------------ ------- ----------------------- ------------ ------------- -mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated diff --git a/src/MySql/readme.md b/src/MySql/readme.md index 0ef581d6ec22..14932a00350c 100644 --- a/src/MySql/readme.md +++ b/src/MySql/readme.md @@ -89,7 +89,7 @@ directive: hide: true - where: verb: Set - subject: ^Configuration$|^FirewallRule$|^VirtualNetworkRule$|^flexibleServerDatabase|^flexibleServerFirewallRule$ + subject: ^Configuration$|^FirewallRule$|^VirtualNetworkRule$|^flexibleServerDatabase$|^flexibleServerFirewallRule$ set: verb: Update - where: @@ -203,6 +203,12 @@ directive: set: parameter-name: Name alias: ConfigurationName + - where: + subject: ^CapabilityProperty$ + parameter-name: LocationName + set: + parameter-name: Location + alias: LocationName - where: parameter-name: StorageProfileBackupRetentionDay subject: Server diff --git a/src/MySql/test/Az.MySql-TestResults.xml b/src/MySql/test/Az.MySql-TestResults.xml index 92794ed677db..b078c7070c36 100644 --- a/src/MySql/test/Az.MySql-TestResults.xml +++ b/src/MySql/test/Az.MySql-TestResults.xml @@ -1,400 +1,435 @@  - - + + - + - + - + - - - + + + - + - + - - + + - + - + - - - + + + - + - + - - - - + + + + - + - + - - - + + + - + - + - - - + - + - + - - - + + + - + - + - + + + - + - + - + - + - + - - - - + - + - + - - - + - + - + - - - + + + + - + - + - + + + - + - + - + + + - + - + - - - + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + + + - + - + - + - + - + - + - + - + - - + - + - + - - + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - + + - + - + - - + + - + - + - - + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - - - + + - + - + - - + + - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Recording.json b/src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Recording.json new file mode 100644 index 000000000000..b8fb03eb21db --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Recording.json @@ -0,0 +1,236 @@ +{ + "Get-AzMySqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c75b0008-9695-4b92-b8de-3f53651f27f0" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82ca106e-1c62-4c12-8754-f6c7a86549fe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "1579df2f-2813-4d93-b932-7d72edbfd533" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:1579df2f-2813-4d93-b932-7d72edbfd533" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c75b0008-9695-4b92-b8de-3f53651f27f0" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82ca106e-1c62-4c12-8754-f6c7a86549fe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "1579df2f-2813-4d93-b932-7d72edbfd533" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:1579df2f-2813-4d93-b932-7d72edbfd533" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c75b0008-9695-4b92-b8de-3f53651f27f0" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82ca106e-1c62-4c12-8754-f6c7a86549fe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "1579df2f-2813-4d93-b932-7d72edbfd533" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:1579df2f-2813-4d93-b932-7d72edbfd533" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c75b0008-9695-4b92-b8de-3f53651f27f0" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82ca106e-1c62-4c12-8754-f6c7a86549fe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "1579df2f-2813-4d93-b932-7d72edbfd533" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:1579df2f-2813-4d93-b932-7d72edbfd533" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c75b0008-9695-4b92-b8de-3f53651f27f0" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82ca106e-1c62-4c12-8754-f6c7a86549fe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "1579df2f-2813-4d93-b932-7d72edbfd533" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:1579df2f-2813-4d93-b932-7d72edbfd533" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c75b0008-9695-4b92-b8de-3f53651f27f0" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82ca106e-1c62-4c12-8754-f6c7a86549fe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "1579df2f-2813-4d93-b932-7d72edbfd533" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:1579df2f-2813-4d93-b932-7d72edbfd533" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + } + } \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Tests.ps1 b/src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Tests.ps1 new file mode 100644 index 000000000000..fed288ee8cf6 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerConnectionString.Tests.ps1 @@ -0,0 +1,40 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMySqlFlexibleServerConnectionString.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzMySqlFlexibleServerConnectionString' { + It 'Get' { + $connectionString = Get-AzMySqlFlexibleServerConnectionString -Client ADO.NET -Name $env.serverName -ResourceGroupName $env.resourceGroup + $ADOExpect = 'Server=' + $env.serverName + '.mysql.database.azure.com; Port=3306; Database={your_database}; UserID=mysql_test; Password={your_password}; ' + $connectionString | Should -Be $ADOExpect + + $PHPConnectionString = Get-AzMySqlFlexibleServerConnectionString -Client PHP -Name $env.serverName -ResourceGroupName $env.resourceGroup + $PHPExpect = '$con=mysqli_init(); mysqli_real_connect($con, "' + $env.serverName + '.mysql.database.azure.com", "mysql_test", {your_password}, {your_database}, 3306);' + $PHPConnectionString | Should -Be $PHPExpect + + $JDBCConnectionString = Get-AzMySqlFlexibleServerConnectionString -Client JDBC -Name $env.serverName -ResourceGroupName $env.resourceGroup + $JDBCExpect = 'String url ="jdbc:mysql://'+ $env.serverName + '.mysql.database.azure.com:3306/{your_database}"; myDbConn = DriverManager.getConnection(url, "mysql_test", {your_password});' + $JDBCConnectionString | Should -Be $JDBCExpect + + $NodeConnectionString = Get-AzMySqlFlexibleServerConnectionString -Client Node.js -Name $env.serverName -ResourceGroupName $env.resourceGroup + $NodeExpect = 'var conn = mysql.createConnection({host: "' + $env.serverName + '.mysql.database.azure.com", user: "mysql_test", password: {your_password}, database: {your_database}, port: 3306});' + $NodeConnectionString | Should -Be $NodeExpect + + $PythonConnectionString = Get-AzMySqlFlexibleServerConnectionString -Client Python -Name $env.serverName -ResourceGroupName $env.resourceGroup + $PythonExpect = 'cnx = mysql.connector.connect(user="mysql_test", password={your_password}, host="' + $env.serverName +'.mysql.database.azure.com", port=3306, database={your_database})' + $PythonConnectionString | Should -Be $PythonExpect + + $RubyConnectionString = Get-AzMySqlFlexibleServerConnectionString -Client Ruby -Name $env.serverName -ResourceGroupName $env.resourceGroup + $RubyExpect = 'client = Mysql2::Client.new(username: "mysql_test", password: {your_password}, database: {your_database}, host: "' + $env.serverName + '.mysql.database.azure.com", port: 3306)' + $RubyConnectionString | Should -Be $RubyExpect + } +} diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Recording.json b/src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Recording.json new file mode 100644 index 000000000000..fd0b8858900f --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Recording.json @@ -0,0 +1,41 @@ +{ + "Get-AzMySqlFlexibleServerLocationBasedCapability+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySql/locations/westus2/capabilities?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySql/locations/westus2/capabilities?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "4e423199-4bab-46d3-b296-e076733b710f" ], + "CommandName": [ "Az.MySql.internal\\Get-AzMySqlFlexibleServerLocationBasedCapability" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerLocationBasedCapability_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0f69fe65-9a15-48f9-964a-1c8846676587" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "b1aff467-d77f-41e9-b4ff-5049e18d3804" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T080303Z:b1aff467-d77f-41e9-b4ff-5049e18d3804" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 08:03:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "12872" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"zone\":\"none\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_B1s\",\"vCores\":1,\"supportedIOPS\":320,\"supportedMemoryPerVcoreMB\":1024,\"status\":\"Available\"},{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_D2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_E2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"}],\"status\":\"Default\"},{\"zone\":\"1\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_B1s\",\"vCores\":1,\"supportedIOPS\":320,\"supportedMemoryPerVcoreMB\":1024,\"status\":\"Available\"},{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_D2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_E2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"}],\"status\":\"Available\"},{\"zone\":\"2\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_B1s\",\"vCores\":1,\"supportedIOPS\":320,\"supportedMemoryPerVcoreMB\":1024,\"status\":\"Available\"},{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_D2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_E2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"}],\"status\":\"Available\"},{\"zone\":\"3\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_B1s\",\"vCores\":1,\"supportedIOPS\":320,\"supportedMemoryPerVcoreMB\":1024,\"status\":\"Available\"},{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_D2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"PremiumFileShare\",\"minStorageSize\":{\"name\":\"5120\",\"storageSizeMB\":5120},\"maxStorageSize\":{\"name\":\"16777216\",\"storageSizeMB\":16777216},\"minBackupRetentionDays\":7,\"maxBackupRetentionDays\":35,\"supportedStorageMB\":[],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"5.7\",\"supportedVcores\":[{\"name\":\"Standard_E2ds_v4\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4ds_v4\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8ds_v4\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16ds_v4\",\"vCores\":16,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32ds_v4\",\"vCores\":32,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48ds_v4\",\"vCores\":48,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64ds_v4\",\"vCores\":64,\"supportedIOPS\":20000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Available\"}],\"status\":\"Available\"}]}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Tests.ps1 b/src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Tests.ps1 new file mode 100644 index 000000000000..3734b6a6e89c --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerLocationBasedCapability.Tests.ps1 @@ -0,0 +1,21 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMySqlFlexibleServerLocationBasedCapability.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzMySqlFlexibleServerLocationBasedCapability' { + It 'Get' { + { + $Result = Get-AzMySqlFlexibleServerLocationBasedCapability -Location westus2 + $Result.Length | Should -BeGreaterThan 0 + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/New-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/New-AzMySqlFlexibleServer.Recording.json index 23c4bfc405c6..7ca357285dc3 100644 --- a/src/MySql/test/New-AzMySqlFlexibleServer.Recording.json +++ b/src/MySql/test/New-AzMySqlFlexibleServer.Recording.json @@ -394,5 +394,10903 @@ }, "Content": "{\"sku\":{\"name\":\"Standard_D2ds_v4\",\"tier\":\"GeneralPurpose\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":102400,\"storageIops\":0,\"backupRetentionDays\":12,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T20:49:33.3741322+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"gleefulRaisins2\",\r\n \"administratorLoginPassword\": \"[H))p3{XBo]=PCov\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "342" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f7230bc7-09a8-49a3-9f8f-a17c09f959bd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "ac418e30-6512-4114-8400-a578174484a0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171212Z:ac418e30-6512-4114-8400-a578174484a0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:12:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T17:12:12.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "58ae551e-5c19-4de4-9259-8fcd430f8bcb" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "78362efc-e4cb-4b15-bccc-1b90ed20f25d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "932336f5-6da2-4ea0-b1e1-2460b6983fb8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171312Z:932336f5-6da2-4ea0-b1e1-2460b6983fb8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:13:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"00e985ee-47ea-4e62-ad62-21a6f6b4f83e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:12:12.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "58ae551e-5c19-4de4-9259-8fcd430f8bcb" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d4845b34-c588-43f1-9276-6e13f349c33d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "a6524401-bd43-4cd5-9bb5-83e730a3e997" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171412Z:a6524401-bd43-4cd5-9bb5-83e730a3e997" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:14:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"00e985ee-47ea-4e62-ad62-21a6f6b4f83e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:12:12.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "58ae551e-5c19-4de4-9259-8fcd430f8bcb" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2ad413ae-096c-4f5f-8813-b07b763d96ac" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "42bbcf6e-5038-4acf-a861-8a81b161d886" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171512Z:42bbcf6e-5038-4acf-a861-8a81b161d886" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:15:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"00e985ee-47ea-4e62-ad62-21a6f6b4f83e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:12:12.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "58ae551e-5c19-4de4-9259-8fcd430f8bcb" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "76015626-671d-4841-afaf-32f8295e7cfd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "71a03196-d1de-4299-b45e-8d39602947e0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171613Z:71a03196-d1de-4299-b45e-8d39602947e0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:16:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"00e985ee-47ea-4e62-ad62-21a6f6b4f83e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:12:12.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "58ae551e-5c19-4de4-9259-8fcd430f8bcb" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f0b28eb8-5918-4eb5-8569-f634a2367dc6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "a1e7a431-0929-41ef-a7b2-134d17861bd0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171713Z:a1e7a431-0929-41ef-a7b2-134d17861bd0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:17:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"00e985ee-47ea-4e62-ad62-21a6f6b4f83e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:12:12.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/00e985ee-47ea-4e62-ad62-21a6f6b4f83e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "58ae551e-5c19-4de4-9259-8fcd430f8bcb" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6c27abd5-f1e2-4f45-89bb-367a6329a93c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "b156a680-3f85-460b-b448-cf816bad230e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171813Z:b156a680-3f85-460b-b448-cf816bad230e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:18:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"00e985ee-47ea-4e62-ad62-21a6f6b4f83e\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:12:12.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "58ae551e-5c19-4de4-9259-8fcd430f8bcb" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9d90b9cb-c807-4d94-a2bb-f7513f1ca673" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "c37a5452-04a0-46d1-a1b2-7012daf748fd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171813Z:c37a5452-04a0-46d1-a1b2-7012daf748fd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:18:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "956" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"gleefulRaisins2\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T17:18:13.4574098+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "df13186a-ebc9-4644-9ac3-0482b75df96c" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5815b00d-cd8b-474c-a889-0e810ff1b339" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "a7f1a895-b0fe-485b-bdcf-09434f082426" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171930Z:a7f1a895-b0fe-485b-bdcf-09434f082426" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:19:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.0\"},\"name\":\"AllowAllAzureServicesAndResourcesWithinAzureIps_2020-12-10_09-18-31\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "c5569dc9-6c19-464e-b626-0ef5ad3ea47c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "070132ea-7519-449e-9644-ffee22952a5b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171931Z:070132ea-7519-449e-9644-ffee22952a5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:19:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T17:19:31.047Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "c5569dc9-6c19-464e-b626-0ef5ad3ea47c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ec6fe801-5292-42ba-8a16-d7ac1395363d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "d59e191c-7a95-4cc7-ad5d-5b23eaf20861" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171946Z:d59e191c-7a95-4cc7-ad5d-5b23eaf20861" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:19:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:19:31.047Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "c5569dc9-6c19-464e-b626-0ef5ad3ea47c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "eb71afab-ab72-482d-a831-7251e9560acd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "a97fe72a-e958-4882-9952-21944a48d114" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172001Z:a97fe72a-e958-4882-9952-21944a48d114" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:20:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:19:31.047Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "c5569dc9-6c19-464e-b626-0ef5ad3ea47c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0dbd51b5-549e-4c3d-b8fa-49f241e5c2e3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "0d863849-3f95-4c7e-ad7b-cfdf5cd966d5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172016Z:0d863849-3f95-4c7e-ad7b-cfdf5cd966d5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:20:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:19:31.047Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/ebafb486-8cdb-4e99-b5a1-4ac0950e6bb8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "c5569dc9-6c19-464e-b626-0ef5ad3ea47c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "39979f90-88c4-4d23-a820-999ab29c70e6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "1bf184ca-214e-40c8-b1d4-b8745d06974c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172016Z:1bf184ca-214e-40c8-b1d4-b8745d06974c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:20:15 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"wornoutFalcon0\",\r\n \"administratorLoginPassword\": \"$)AZ/G4}dwk5h*T$\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "341" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "01429c23-071c-4e69-bee8-306e5f55cf67" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "39aaa9e3-2b7e-43a3-8cbd-4a1d31b1a3d9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172749Z:39aaa9e3-2b7e-43a3-8cbd-4a1d31b1a3d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:27:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T17:27:48.943Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "b22afeac-e571-485c-ad8c-b5ba0069fb30" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bedff193-148d-4ffe-b91e-159acefa1747" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "443ef07d-37ce-4275-8a0c-7862ad9ef61c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172849Z:443ef07d-37ce-4275-8a0c-7862ad9ef61c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:28:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"349feb74-6c8e-47d5-ba1e-930b7b171fab\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:27:48.943Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "b22afeac-e571-485c-ad8c-b5ba0069fb30" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f016e6cf-04d3-4fc2-b341-917d45aa402f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "b3cc014b-5175-4f5a-a990-9d9c29a31c5e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172949Z:b3cc014b-5175-4f5a-a990-9d9c29a31c5e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:29:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"349feb74-6c8e-47d5-ba1e-930b7b171fab\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:27:48.943Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "b22afeac-e571-485c-ad8c-b5ba0069fb30" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a0cff669-92c4-47f8-8e0e-2508cb07cafe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "2597a31b-f0ad-4428-89b0-b6bef470ea6b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173049Z:2597a31b-f0ad-4428-89b0-b6bef470ea6b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:30:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"349feb74-6c8e-47d5-ba1e-930b7b171fab\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:27:48.943Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "b22afeac-e571-485c-ad8c-b5ba0069fb30" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5636be4f-4592-4aa4-b5c1-e9f7a2637d31" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "0315aca2-e61a-4f71-af55-79505aa44e5a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173149Z:0315aca2-e61a-4f71-af55-79505aa44e5a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:31:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"349feb74-6c8e-47d5-ba1e-930b7b171fab\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:27:48.943Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "b22afeac-e571-485c-ad8c-b5ba0069fb30" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a3392300-c995-45fe-b6c8-d93ce4f10006" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "4886c2ab-3277-48d5-a728-7f5dcc747f22" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173249Z:4886c2ab-3277-48d5-a728-7f5dcc747f22" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:32:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"349feb74-6c8e-47d5-ba1e-930b7b171fab\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:27:48.943Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/349feb74-6c8e-47d5-ba1e-930b7b171fab?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "b22afeac-e571-485c-ad8c-b5ba0069fb30" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0e58ec5d-5640-4e19-be73-cbf768c8dd64" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "99af97a6-0712-4a33-9d20-9984bfca9040" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173349Z:99af97a6-0712-4a33-9d20-9984bfca9040" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:33:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"349feb74-6c8e-47d5-ba1e-930b7b171fab\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:27:48.943Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "b22afeac-e571-485c-ad8c-b5ba0069fb30" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "846d0602-24df-4d31-8dce-ef136a87aa26" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "8d3b1f82-028b-42a9-a1a9-2e5950653bd7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173350Z:8d3b1f82-028b-42a9-a1a9-2e5950653bd7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:33:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "955" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"wornoutFalcon0\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-3.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T17:33:49.9577256+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-3\",\"name\":\"mysql-test-100-3\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3/firewallRules?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3/firewallRules?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "2d71d74e-a1a6-4472-9197-f27814a7a611" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "528e8925-0ef8-4199-9ee6-f57f142f4d21" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "341de177-9c25-483a-b342-994ff922aac1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173510Z:341de177-9c25-483a-b342-994ff922aac1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:35:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "195" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"10.10.10.10\",\"endIpAddress\":\"10.10.10.12\"},\"name\":\"FirewallIPAddress_2020-12-10_09-34-07\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "d650221c-d138-4440-a0a4-e1a470f8f2d6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "19f5d348-0a16-44d7-99a8-fde3bc437112" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "00dd1070-8c4a-4f1c-91ec-870757996044" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173510Z:00dd1070-8c4a-4f1c-91ec-870757996044" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:35:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T17:35:10.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "d650221c-d138-4440-a0a4-e1a470f8f2d6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5bae3943-c77e-4703-9ad1-9db0bac68c04" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "04f5a56e-ee1e-4b4a-98ed-10ad3de28571" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173525Z:04f5a56e-ee1e-4b4a-98ed-10ad3de28571" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:35:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"19f5d348-0a16-44d7-99a8-fde3bc437112\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:35:10.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "d650221c-d138-4440-a0a4-e1a470f8f2d6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5ca96d92-9e3a-42f3-a13a-d626379a2678" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "9fb9dfaa-d3ca-45ce-a059-77e41fd7228c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173540Z:9fb9dfaa-d3ca-45ce-a059-77e41fd7228c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:35:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"19f5d348-0a16-44d7-99a8-fde3bc437112\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:35:10.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "d650221c-d138-4440-a0a4-e1a470f8f2d6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8c13ce69-6629-4de5-973e-b9bb1c66ae43" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "c9655114-aa68-42b7-940c-b2e2b4083622" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173555Z:c9655114-aa68-42b7-940c-b2e2b4083622" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:35:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"19f5d348-0a16-44d7-99a8-fde3bc437112\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:35:10.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/19f5d348-0a16-44d7-99a8-fde3bc437112?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "d650221c-d138-4440-a0a4-e1a470f8f2d6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a5b59d31-c022-4367-8282-58c4b4084f0f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "8f84136a-2716-4790-bfc7-2ecc483018b1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173555Z:8f84136a-2716-4790-bfc7-2ecc483018b1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:35:55 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"vibrantFerret1\",\r\n \"administratorLoginPassword\": \"T[aH8)xv%b@AS][y\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "341" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "57c68028-fab0-41d2-b352-b77f394de349" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "d5d958a8-08fa-4a8d-be5f-1a46456686d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174327Z:d5d958a8-08fa-4a8d-be5f-1a46456686d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:43:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T17:43:27.277Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "8275ca9d-e260-4cf3-ad7c-46098b8c97e8" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1b42e159-1401-4f4c-9b18-405b8dd6d879" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "6f85db73-7d8c-4931-b33b-27d514bf8532" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174427Z:6f85db73-7d8c-4931-b33b-27d514bf8532" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:44:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2927c68b-93ef-4c14-84b1-a57f6dfdc2f3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:43:27.277Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "8275ca9d-e260-4cf3-ad7c-46098b8c97e8" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "35a018e2-93c1-4efb-ba3b-09681695674e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "f260f978-1b5d-4e21-9b28-31a6bcc4325b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174527Z:f260f978-1b5d-4e21-9b28-31a6bcc4325b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:45:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2927c68b-93ef-4c14-84b1-a57f6dfdc2f3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:43:27.277Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "8275ca9d-e260-4cf3-ad7c-46098b8c97e8" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3555c24a-cc7c-41e6-a341-25d8fb8b261c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "5e2bbc9a-be0c-4022-a0b8-91893e7019a0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174627Z:5e2bbc9a-be0c-4022-a0b8-91893e7019a0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:46:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2927c68b-93ef-4c14-84b1-a57f6dfdc2f3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:43:27.277Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "8275ca9d-e260-4cf3-ad7c-46098b8c97e8" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b78f1837-d6f8-454c-b305-6635a4f6ff2d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "6de781f8-c147-46da-8ef5-15ee78b5d37f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174727Z:6de781f8-c147-46da-8ef5-15ee78b5d37f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:47:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2927c68b-93ef-4c14-84b1-a57f6dfdc2f3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:43:27.277Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "8275ca9d-e260-4cf3-ad7c-46098b8c97e8" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3e3591d8-f2ff-4875-93f7-33a7bee7e8c9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "0ac8976d-4b26-459e-ae80-80f04b589bb4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174828Z:0ac8976d-4b26-459e-ae80-80f04b589bb4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:48:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2927c68b-93ef-4c14-84b1-a57f6dfdc2f3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:43:27.277Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2927c68b-93ef-4c14-84b1-a57f6dfdc2f3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "8275ca9d-e260-4cf3-ad7c-46098b8c97e8" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "eb631a86-3694-4291-8b53-7a1eb35c8b93" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "ab343afe-eedf-4766-bc15-41f1ac386d28" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174928Z:ab343afe-eedf-4766-bc15-41f1ac386d28" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:49:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2927c68b-93ef-4c14-84b1-a57f6dfdc2f3\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:43:27.277Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "8275ca9d-e260-4cf3-ad7c-46098b8c97e8" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9b81a421-5543-42c7-9553-47dd6501fa5a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "aca96948-1b99-48f0-8630-c2a9d9f83821" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174928Z:aca96948-1b99-48f0-8630-c2a9d9f83821" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:49:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "955" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"vibrantFerret1\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T17:49:28.2061324+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "e4fc6016-a631-469c-a712-b033a222407a" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6eb31b5d-9b27-452f-b1b8-7311b55c6cb3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "fe23b8f2-668b-4b95-9f12-620a39ab5c03" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175045Z:fe23b8f2-668b-4b95-9f12-620a39ab5c03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:50:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "186" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"name\":\"AllowAll_2020-12-10_09-49-45\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "6ec97bdb-648c-42cc-a0f8-029271d4a75a" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "907bb1bf-f211-4291-8824-873fac1c9048" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "ca9d9205-4ee5-4bc0-8180-9ee90c125082" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175045Z:ca9d9205-4ee5-4bc0-8180-9ee90c125082" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:50:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T17:50:45.137Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "6ec97bdb-648c-42cc-a0f8-029271d4a75a" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a4f7cf3d-cb91-497e-a04d-da7400b03fe0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "d6ac85b6-3163-495c-97b3-da04b37a6d4a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175100Z:d6ac85b6-3163-495c-97b3-da04b37a6d4a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:50:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"907bb1bf-f211-4291-8824-873fac1c9048\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:50:45.137Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "6ec97bdb-648c-42cc-a0f8-029271d4a75a" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f2a7dc71-c177-49a3-8e09-bf812aaabfb7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "597b5461-d16a-43e6-b44b-8def9e1ad444" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175115Z:597b5461-d16a-43e6-b44b-8def9e1ad444" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:51:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"907bb1bf-f211-4291-8824-873fac1c9048\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:50:45.137Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "6ec97bdb-648c-42cc-a0f8-029271d4a75a" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d1d8f072-4830-4e1e-8b53-387f6e08ea7d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "8e16ea9a-b066-419d-9c02-743d28bc8352" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175130Z:8e16ea9a-b066-419d-9c02-743d28bc8352" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:51:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"907bb1bf-f211-4291-8824-873fac1c9048\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:50:45.137Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/907bb1bf-f211-4291-8824-873fac1c9048?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "6ec97bdb-648c-42cc-a0f8-029271d4a75a" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b92732a3-2cf6-4ad3-82a5-ff08b8e8aab6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "1f4e91b1-91a1-4fef-98bd-7f431ea7e9db" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175130Z:1f4e91b1-91a1-4fef-98bd-7f431ea7e9db" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:51:30 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.DBForMySql/flexibleServers/server2733559001?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.DBForMySql/flexibleServers/server2733559001?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.Network/virtualNetworks/VNETserver2733559001/subnets/Subnetserver2733559001\"\r\n },\r\n \"administratorLogin\": \"violentRaccoon9\",\r\n \"administratorLoginPassword\": \"*Gb\\u0026(RvVgCnz$7@?\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "601" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d8e24b86-8c91-465a-a830-abc3c9deb4e3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "68bf5216-11ac-426c-b92f-733f4b9a5492" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175917Z:68bf5216-11ac-426c-b92f-733f4b9a5492" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:59:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "eb6baea2-3e83-4813-acf3-4cbf9e885a76" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "1aae66ea-37f3-45bd-b5f2-0d3c3b4c4c36" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180017Z:1aae66ea-37f3-45bd-b5f2-0d3c3b4c4c36" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:00:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ee47b31c-16ab-4df8-9e21-b25afb124e53" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "9909e0ab-1e16-4a7d-81cb-d82a031fe9f7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180118Z:9909e0ab-1e16-4a7d-81cb-d82a031fe9f7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:01:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b018f4ac-aa00-4513-bfa2-ee2c1a2f68b5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "efc54304-baa2-4fd4-887f-5f80eef7a017" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180218Z:efc54304-baa2-4fd4-887f-5f80eef7a017" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:02:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c744fee7-6e6f-449d-89f5-10e2f2eaed84" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "b06d9180-0c11-461c-98b4-32f9210559c8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180318Z:b06d9180-0c11-461c-98b4-32f9210559c8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:03:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "60d4fb98-10a4-4c1b-a223-00f4170fc8fd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "7bb7df98-6643-4798-a9b1-21a8aca88d05" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180418Z:7bb7df98-6643-4798-a9b1-21a8aca88d05" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:04:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1781b8df-796f-47ba-9784-770b8cf1e076" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "6fb8c4ef-3db2-4273-b199-f2bffb163217" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180518Z:6fb8c4ef-3db2-4273-b199-f2bffb163217" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:05:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3161d709-e490-4d58-999b-98cdf2763e94" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "98e194ff-9ba9-4c84-b94f-c1b56b45283a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180618Z:98e194ff-9ba9-4c84-b94f-c1b56b45283a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:06:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e6ab11b3-ce2b-4fdf-bfe6-f114bad5782e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "70c14cb7-a96c-4057-a81c-cc8c6ff531de" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180718Z:70c14cb7-a96c-4057-a81c-cc8c6ff531de" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:07:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "79488340-7b3c-4dc0-a8d3-d66dd85630f3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "7f32990e-1027-4aa9-b470-6b443fdc5c60" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180818Z:7f32990e-1027-4aa9-b470-6b443fdc5c60" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:08:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/0f33f80a-1d8b-4d33-a823-3b3437a2e9c7?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6f728dfd-3d78-4558-9764-52505b31942b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "6b9328ce-1b35-414f-93a8-ab479a7c2107" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180918Z:6b9328ce-1b35-414f-93a8-ab479a7c2107" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:09:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0f33f80a-1d8b-4d33-a823-3b3437a2e9c7\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:59:17.683Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.DBForMySql/flexibleServers/server2733559001?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.DBForMySql/flexibleServers/server2733559001?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "617c05e0-63b0-47dd-99ba-f4fe17d6c3ff" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7e3aa815-af21-4dc5-90ac-05af82161021" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "ca67d055-f1f6-4ebf-af72-044590decec0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180918Z:ca67d055-f1f6-4ebf-af72-044590decec0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:09:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1195" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"violentRaccoon9\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"server2733559001.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T18:09:18.8093995+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.Network/virtualNetworks/VNETserver2733559001/subnets/Subnetserver2733559001\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.DBforMySQL/flexibleServers/server2733559001\",\"name\":\"server2733559001\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.DBForMySql/flexibleServers/server2733559001?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4698477837/providers/Microsoft.DBForMySql/flexibleServers/server2733559001?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "0482b3f9-68f4-4d92-befc-110bbd214bd3" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "47144d36-1476-4c26-a654-c5312c3d8ff9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "34a4a39a-c8bd-49aa-bf5f-2c84d97bb9c8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180938Z:34a4a39a-c8bd-49aa-bf5f-2c84d97bb9c8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:09:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T18:09:38.87Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "0482b3f9-68f4-4d92-befc-110bbd214bd3" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "96a28219-a185-4a70-984a-f0e31e3f216b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "5b2fc461-6761-4bcc-8591-9125164701c8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180954Z:5b2fc461-6761-4bcc-8591-9125164701c8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:09:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"47144d36-1476-4c26-a654-c5312c3d8ff9\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:09:38.87Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "0482b3f9-68f4-4d92-befc-110bbd214bd3" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "11b36343-a5d9-4c28-90a7-26b1e3c5a766" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "8592a80b-905d-4a57-82b0-8fd656c5e1a9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T181009Z:8592a80b-905d-4a57-82b0-8fd656c5e1a9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:10:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"47144d36-1476-4c26-a654-c5312c3d8ff9\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:09:38.87Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "0482b3f9-68f4-4d92-befc-110bbd214bd3" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0a115fad-f6e8-4663-be4c-f2c61320c148" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "fe609999-23d5-4dbb-9d12-33371e0e9b0b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T181024Z:fe609999-23d5-4dbb-9d12-33371e0e9b0b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:10:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"47144d36-1476-4c26-a654-c5312c3d8ff9\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:09:38.87Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/47144d36-1476-4c26-a654-c5312c3d8ff9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "0482b3f9-68f4-4d92-befc-110bbd214bd3" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fa753ff7-9696-48c8-83c5-9fbcb77c2f46" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "4a32a2b7-83cf-4525-804e-1571e9ba506e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T181024Z:4a32a2b7-83cf-4525-804e-1571e9ba506e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:10:23 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/Subnetmysql-test-100-2\"\r\n },\r\n \"administratorLogin\": \"starchyGerbil2\",\r\n \"administratorLoginPassword\": \"bt}?fKf(oV\\u0026%V#PK\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "589" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c0c8a657-bba5-4964-97b0-ab26acf7bff0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "8881177d-cb78-4a15-81c2-0515cab5786f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T181915Z:8881177d-cb78-4a15-81c2-0515cab5786f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:19:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "33511a91-588f-4485-8f5d-9153970794a4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "5e2328ea-b12f-4af5-846c-f3950c444c7d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182016Z:5e2328ea-b12f-4af5-846c-f3950c444c7d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:20:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "59316c6d-2b9a-4960-90e0-8b795b71366c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "817520eb-097f-42d3-ad7e-7fbc5a6d58f8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182116Z:817520eb-097f-42d3-ad7e-7fbc5a6d58f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:21:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "56301748-69a9-4571-bf2d-a12217ba4541" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "e7ae6083-dbae-4da1-81f3-ecae000d50e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182216Z:e7ae6083-dbae-4da1-81f3-ecae000d50e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:22:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f3252605-6064-4b0f-b3de-282af1e67dcf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "d48fde09-1eb6-4883-9c78-fa760444eca6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182316Z:d48fde09-1eb6-4883-9c78-fa760444eca6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:23:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "043d3b0a-c966-4b46-a2d0-df48a699b673" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "e4fdd01c-77c2-4cf2-9cd6-900f98012c36" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182416Z:e4fdd01c-77c2-4cf2-9cd6-900f98012c36" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:24:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c803023f-efbb-44cb-8fde-29bdeb922578" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "c337e485-0c21-414e-8d35-835fdfd5e51c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182516Z:c337e485-0c21-414e-8d35-835fdfd5e51c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:25:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5385c904-d3a7-4404-8820-452b1876e0a5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "c78cc347-046c-495d-9dd7-4515a87a5b05" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182616Z:c78cc347-046c-495d-9dd7-4515a87a5b05" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:26:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "69959a96-42b4-4f49-80ec-caf03a7dd148" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "1a0e4301-1027-499d-a91d-0e7ae96381ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182716Z:1a0e4301-1027-499d-a91d-0e7ae96381ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:27:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "101" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ad4aec72-1f88-4464-8df5-d36cbfa44184" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "36207b20-5cb4-4204-8528-42309f8341f1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182817Z:36207b20-5cb4-4204-8528-42309f8341f1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:28:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "102" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "55aec679-a642-466d-9918-9417897a3d5b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "edf8b018-0e75-47a6-af95-5ce0e4c16f63" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182917Z:edf8b018-0e75-47a6-af95-5ce0e4c16f63" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:29:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/55da5e84-6c55-47b9-be20-d8937251b51f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "49255215-d2b2-4d75-99fe-4972d5d4bb02" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "c07f5b65-3b52-497f-af58-eb59bede9aa9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183017Z:c07f5b65-3b52-497f-af58-eb59bede9aa9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:30:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"55da5e84-6c55-47b9-be20-d8937251b51f\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:19:15.79Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "2a127410-5544-4cec-9392-f2e8226f39ca" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c39d57f2-cb37-4899-9d62-1cee6d823331" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "0e245b61-bf20-455e-860f-e22cb6ef9973" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183017Z:0e245b61-bf20-455e-860f-e22cb6ef9973" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:30:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1177" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"starchyGerbil2\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T18:30:17.4498227+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/Subnetmysql-test-100-2\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "e56d78b6-c748-4f84-b9dd-e45aa222e584" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4b72993f-4e16-40a7-8a77-1264e6ebd106" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "79f67379-a0c7-4b9e-8477-e39dd396c621" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183037Z:79f67379-a0c7-4b9e-8477-e39dd396c621" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:30:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T18:30:37.263Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "e56d78b6-c748-4f84-b9dd-e45aa222e584" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7565a49c-f8e8-4348-9425-922c77e0a9f3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "96d94b0c-1ccf-44b8-b13e-a623e59c38ef" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183052Z:96d94b0c-1ccf-44b8-b13e-a623e59c38ef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:30:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4b72993f-4e16-40a7-8a77-1264e6ebd106\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:30:37.263Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "e56d78b6-c748-4f84-b9dd-e45aa222e584" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a5730607-0d3c-4523-bd59-86a8c4392bb0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "fc0e384a-1ce8-4cca-8700-f184164f526f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183107Z:fc0e384a-1ce8-4cca-8700-f184164f526f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:31:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4b72993f-4e16-40a7-8a77-1264e6ebd106\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:30:37.263Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "e56d78b6-c748-4f84-b9dd-e45aa222e584" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "862d32e6-bb7f-40a4-aa87-e119c003bc22" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "a0d66f2b-712b-43bd-ad4c-886a848c9f81" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183122Z:a0d66f2b-712b-43bd-ad4c-886a848c9f81" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:31:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4b72993f-4e16-40a7-8a77-1264e6ebd106\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:30:37.263Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/4b72993f-4e16-40a7-8a77-1264e6ebd106?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "e56d78b6-c748-4f84-b9dd-e45aa222e584" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "89f50840-1266-4f3b-9e7f-e5d0aa0e5b80" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "c1a3c8c1-6dc6-4755-8e3f-08ecd46734a7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183122Z:c1a3c8c1-6dc6-4755-8e3f-08ecd46734a7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:31:21 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetmysql-test-100-3\"\r\n },\r\n \"administratorLogin\": \"amusedStork9\",\r\n \"administratorLoginPassword\": \"*/KH%8/UgA@M@lbt\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "599" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3f06e5d3-da1e-4fe2-a520-e7cd1fb881b0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "79894c81-f033-4fa8-a251-58122aaad1ca" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183957Z:79894c81-f033-4fa8-a251-58122aaad1ca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:39:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1ce081c1-b02e-4194-9a86-18e24f983702" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "d1f3b363-f708-4c2a-924e-49edcb3677be" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184058Z:d1f3b363-f708-4c2a-924e-49edcb3677be" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:40:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5ee8f449-e0b4-49a8-8035-11257149011c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "cdc6d7c1-e411-4398-ae20-9d5c9bc2d973" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184158Z:cdc6d7c1-e411-4398-ae20-9d5c9bc2d973" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:41:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e819e741-ffc1-47c9-ae62-2db1dffa969d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "049287c9-17ea-47d9-9250-4fd47ddf1069" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184258Z:049287c9-17ea-47d9-9250-4fd47ddf1069" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:42:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "341eef54-c856-4391-8ad9-cfc915915adb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "f8045682-9eba-42ae-ae51-105d75fdd7cc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184358Z:f8045682-9eba-42ae-ae51-105d75fdd7cc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:43:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "120" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "53f78252-5160-430f-9179-982512c34a38" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "2a76c261-2e0c-4596-b4d3-ce675b01476b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184458Z:2a76c261-2e0c-4596-b4d3-ce675b01476b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:44:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "121" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "68fec9e4-817c-4f9f-aa45-60b1c6adc539" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "f56a9334-7ea3-4321-a6b1-fbfbd3aaa4fa" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184558Z:f56a9334-7ea3-4321-a6b1-fbfbd3aaa4fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:45:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c5eec08f-d8b6-40c3-bb70-4556e9f2ece5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "6b45467f-3d79-4cd6-a25d-e7d986fcb124" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184658Z:6b45467f-3d79-4cd6-a25d-e7d986fcb124" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:46:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d0f27209-182e-4e19-9f6b-e91eca29c488" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "b6c7a256-f7cb-4968-a348-9b18c4ec595f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184758Z:b6c7a256-f7cb-4968-a348-9b18c4ec595f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:47:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6e3d1130-eb36-476b-90d3-36a84d2f66b8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "cdb12ffb-a771-45cc-b1a1-b68dea43adb8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184859Z:cdb12ffb-a771-45cc-b1a1-b68dea43adb8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:48:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "784472a9-e879-4312-a19a-0646cfaed615" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "c19ba8a3-7068-467f-bece-270162b3743c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184959Z:c19ba8a3-7068-467f-bece-270162b3743c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:49:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "29a4ce5c-669c-42bf-9729-39941a5a03fa" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "fa38af4f-5ebe-4d5d-beb9-3e010e8156ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185059Z:fa38af4f-5ebe-4d5d-beb9-3e010e8156ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:50:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f2590f2b-9744-4dfb-8ebe-b7de4c3629cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b1a3144c-644b-4acf-b6e9-759d2ee0d9bf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "718b5de4-6b3f-4713-a31c-d23e129f0da6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185159Z:718b5de4-6b3f-4713-a31c-d23e129f0da6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:51:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2590f2b-9744-4dfb-8ebe-b7de4c3629cd\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:39:57.793Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "0b40d551-d84d-4e89-a59f-4276459f952c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "119a5ebd-7204-4b07-a99a-a50925692d3d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "ab572cc5-f827-4dd5-94dd-d5e7c87615a1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185159Z:ab572cc5-f827-4dd5-94dd-d5e7c87615a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:51:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1192" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"amusedStork9\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-3.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T18:51:59.4816441+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetmysql-test-100-3\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-3\",\"name\":\"mysql-test-100-3\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "132" ], + "x-ms-client-request-id": [ "81c22432-6528-41d3-af76-b099a0e30cc2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a5d24f6f-21b1-4544-80a4-4ff2782d6bb6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "d0f22a01-c181-4f3c-9550-3d3b20632e61" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185218Z:d0f22a01-c181-4f3c-9550-3d3b20632e61" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:52:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T18:52:18.81Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "133" ], + "x-ms-client-request-id": [ "81c22432-6528-41d3-af76-b099a0e30cc2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "886655a2-fdad-441a-b2e8-c27a0537349a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "86c61773-3a7e-4c7e-907c-bfb9bdadd844" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185233Z:86c61773-3a7e-4c7e-907c-bfb9bdadd844" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:52:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a5d24f6f-21b1-4544-80a4-4ff2782d6bb6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:52:18.81Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "134" ], + "x-ms-client-request-id": [ "81c22432-6528-41d3-af76-b099a0e30cc2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4cfc509d-c51b-4f5c-9d44-a137cdb0d2f9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "e5d09f17-d677-47ec-83da-36153b1596f3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185249Z:e5d09f17-d677-47ec-83da-36153b1596f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:52:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a5d24f6f-21b1-4544-80a4-4ff2782d6bb6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:52:18.81Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "135" ], + "x-ms-client-request-id": [ "81c22432-6528-41d3-af76-b099a0e30cc2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4422cc9a-24c9-440d-ba81-40613883706f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "cb4ddf23-77ac-4ed9-bb39-e74fe6f943bf" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185304Z:cb4ddf23-77ac-4ed9-bb39-e74fe6f943bf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:53:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a5d24f6f-21b1-4544-80a4-4ff2782d6bb6\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:52:18.81Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/a5d24f6f-21b1-4544-80a4-4ff2782d6bb6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "136" ], + "x-ms-client-request-id": [ "81c22432-6528-41d3-af76-b099a0e30cc2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "76270623-aaaa-4665-b964-f406c4962d50" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "4faadbdf-68f9-4032-8036-6f68c13bd932" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185304Z:4faadbdf-68f9-4032-8036-6f68c13bd932" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:53:03 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetmysql-test-100-2\"\r\n },\r\n \"administratorLogin\": \"aboardHyena4\",\r\n \"administratorLoginPassword\": \"a$zs2)@M[%61L9=a\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "599" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4769109f-235e-4d9e-bee7-2d19a1d50cbd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "27008a08-2dda-418d-805c-af40be80b6d3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190108Z:27008a08-2dda-418d-805c-af40be80b6d3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:01:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "141" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0c126dd9-b77d-44ad-b08d-c126b33cfb2f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "958126d9-df82-40fa-9454-57f323fd4810" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190208Z:958126d9-df82-40fa-9454-57f323fd4810" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:02:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "142" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c0ab120c-6344-4a50-bcb6-e28014ffef86" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "5b9797c4-96f4-4ece-aa04-42483a1d6680" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190309Z:5b9797c4-96f4-4ece-aa04-42483a1d6680" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:03:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "143" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7f304a69-9c96-46e5-ba38-1d86b7231d99" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "56047577-347a-43cc-8bbc-35af3ff45ea8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190409Z:56047577-347a-43cc-8bbc-35af3ff45ea8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:04:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "144" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "59a5d233-934a-498a-b522-4bbd6fd703b9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "ad26065f-c413-4c03-ae24-304e8d5e1268" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190509Z:ad26065f-c413-4c03-ae24-304e8d5e1268" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:05:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "145" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "85ee5ecd-8d58-4f03-ae6d-474caacb42cd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "5d156df1-a66d-4744-b3a9-7346a9a664c4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190609Z:5d156df1-a66d-4744-b3a9-7346a9a664c4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:06:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "146" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "99c65e31-96f5-48b6-86d6-3b8961dbffb1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "2157fb6e-42d5-4723-9dc7-f8b4ddd5f603" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190709Z:2157fb6e-42d5-4723-9dc7-f8b4ddd5f603" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:07:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "147" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "be7045ae-42d1-4a8d-9920-84d6cd5066f5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "7b1078bb-909c-4fcc-b47c-2b9c5f488212" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190809Z:7b1078bb-909c-4fcc-b47c-2b9c5f488212" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:08:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "148" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a6fd70fe-74b1-4eff-b5bf-1f28c163f98a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "ea111f0f-4eb1-4d8f-82bc-bdebcae952c1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190910Z:ea111f0f-4eb1-4d8f-82bc-bdebcae952c1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:09:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "149" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "92b2796c-197e-4caf-a7a1-4a078cbbcbda" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "94a9fc7b-12fc-4dd2-b2ca-b71ac5bfc59d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191010Z:94a9fc7b-12fc-4dd2-b2ca-b71ac5bfc59d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:10:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "150" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "277f9afc-a948-48cc-b323-9f6a167f1156" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "826c3084-c0dc-46f2-9c9b-dd8d09a9a875" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191110Z:826c3084-c0dc-46f2-9c9b-dd8d09a9a875" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:11:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/d7ea8409-3d50-439f-93a1-3ce13331b417?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "151" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3ed8005b-98c3-42cb-8f11-41721f161a7e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "6feca3a6-4c41-43f6-ad62-49ebb2e7370e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191210Z:6feca3a6-4c41-43f6-ad62-49ebb2e7370e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:12:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d7ea8409-3d50-439f-93a1-3ce13331b417\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:01:08.583Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "152" ], + "x-ms-client-request-id": [ "7674efc7-438a-448b-8de2-ea988cbd0226" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "080cfdf8-d3a1-4d4a-b555-4db176154765" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "d1c83a74-dc96-41c6-82d6-1ca3815d4d5a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191210Z:d1c83a74-dc96-41c6-82d6-1ca3815d4d5a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:12:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1192" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"aboardHyena4\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T19:12:10.6964326+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetmysql-test-100-2\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "156" ], + "x-ms-client-request-id": [ "9ee0de9a-5181-4619-8351-71d71edc6dfd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ea937383-30d8-40e8-a3e5-d29c81387333" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "95383108-daed-49fc-a66a-e54ca3f50f95" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191231Z:95383108-daed-49fc-a66a-e54ca3f50f95" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:12:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T19:12:31.633Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "157" ], + "x-ms-client-request-id": [ "9ee0de9a-5181-4619-8351-71d71edc6dfd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0dfe34a5-39fe-4aa7-92e8-6ea11c5bf4cb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "6e1924cf-5d1d-4269-8df2-d90e3214353f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191246Z:6e1924cf-5d1d-4269-8df2-d90e3214353f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:12:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ea937383-30d8-40e8-a3e5-d29c81387333\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:12:31.633Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "158" ], + "x-ms-client-request-id": [ "9ee0de9a-5181-4619-8351-71d71edc6dfd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4f938757-307e-42b8-aa47-970b07c90761" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "75fbc8cf-eb0c-4deb-bab9-b19acf381618" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191302Z:75fbc8cf-eb0c-4deb-bab9-b19acf381618" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:13:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ea937383-30d8-40e8-a3e5-d29c81387333\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:12:31.633Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "159" ], + "x-ms-client-request-id": [ "9ee0de9a-5181-4619-8351-71d71edc6dfd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e7af48af-cd52-473b-9cf8-27eeae7cc814" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "e5adb9b2-b2de-4c2c-b76c-9ab8edac396f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191317Z:e5adb9b2-b2de-4c2c-b76c-9ab8edac396f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:13:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ea937383-30d8-40e8-a3e5-d29c81387333\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:12:31.633Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/ea937383-30d8-40e8-a3e5-d29c81387333?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "160" ], + "x-ms-client-request-id": [ "9ee0de9a-5181-4619-8351-71d71edc6dfd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cba6b156-b79c-45a8-b07a-6802113da165" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "7d6d59d9-5dc2-4cdf-9a0d-7d420262bd16" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191317Z:7d6d59d9-5dc2-4cdf-9a0d-7d420262bd16" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:13:16 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/Subnetmysql-test-100-3\"\r\n },\r\n \"administratorLogin\": \"ajarBustard9\",\r\n \"administratorLoginPassword\": \"Z*=LuT+ysU$b(*8T\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "582" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cd5bd62b-ffbf-43b1-8d77-d21efe762179" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "aadc7a9b-c28b-4e3c-a69c-a917cabbbefd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192121Z:aadc7a9b-c28b-4e3c-a69c-a917cabbbefd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:21:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "164" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "819ec3c6-3830-4038-9adf-85b706503c8e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "35c61c08-ca0c-4693-8904-59814db5e99a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192222Z:35c61c08-ca0c-4693-8904-59814db5e99a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:22:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "165" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "36381f3e-21e6-4586-be64-b3be73e05921" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "94985b14-6f4f-49ec-ba71-23d910408674" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192322Z:94985b14-6f4f-49ec-ba71-23d910408674" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:23:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "166" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1433297e-73af-43b0-8a69-8192890240e3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "6f8737c5-949e-4b67-919c-1f29dad74d35" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192422Z:6f8737c5-949e-4b67-919c-1f29dad74d35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:24:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "167" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b5ae14aa-ed48-40fd-91d0-2353e1728e1b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "1936ec8a-1479-4dd0-a48e-f0706dea93a6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192522Z:1936ec8a-1479-4dd0-a48e-f0706dea93a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:25:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "168" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3485a38c-29ac-4fd2-b6c4-4454d3a703f7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "0c9a365f-2494-41a8-9dd8-7403ce6ea117" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192622Z:0c9a365f-2494-41a8-9dd8-7403ce6ea117" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:26:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "169" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d75574bd-7778-4d5d-a7bc-2e20578f021e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "0c5a1aa5-d417-46ad-bb45-758f6efdc31e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192722Z:0c5a1aa5-d417-46ad-bb45-758f6efdc31e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:27:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "170" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a111d486-9fff-43c3-9035-9e47c869debc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "4ebbc4bc-30ec-456a-9244-40b7aeb3bac2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192823Z:4ebbc4bc-30ec-456a-9244-40b7aeb3bac2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:28:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "171" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8fdc8197-a87c-4daa-9cee-3fe716963fa5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "41d41a08-61ef-482c-b0a4-18f5eb1fd717" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T192923Z:41d41a08-61ef-482c-b0a4-18f5eb1fd717" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:29:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "172" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4dd6382c-62e3-4e0a-877c-5d939d603267" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "8b3c6935-523e-482a-9513-da253862444b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T193023Z:8b3c6935-523e-482a-9513-da253862444b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:30:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "173" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e8a3fa19-aef7-4d39-9310-1e3699f2bd45" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "96f941a4-04c2-44e8-a5f4-d816a9db976e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T193123Z:96f941a4-04c2-44e8-a5f4-d816a9db976e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:31:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/a204228e-f626-4473-bc66-dd96bae5b939?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "174" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "77159bcd-abf1-429a-963f-105df7526148" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "8166d0c7-36c3-48b9-8b82-cf1578b21f9f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T193223Z:8166d0c7-36c3-48b9-8b82-cf1578b21f9f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:32:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a204228e-f626-4473-bc66-dd96bae5b939\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:21:21.743Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "175" ], + "x-ms-client-request-id": [ "0d6a5974-d95c-45f2-9c78-298af935bf2b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "175ad2e8-f8be-4e14-8aeb-bedafc0d92ca" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "991c1556-09d1-4bfb-9625-724bc28aa30c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T193223Z:991c1556-09d1-4bfb-9625-724bc28aa30c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:32:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1175" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"ajarBustard9\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-3.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T19:32:23.9299229+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/Subnetmysql-test-100-3\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-3\",\"name\":\"mysql-test-100-3\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "179" ], + "x-ms-client-request-id": [ "eeeecf14-ca8f-49dc-8155-3c32c8659ff1" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b514ea02-b49f-4b5a-90d6-bdf402b04aa6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "8ba36a10-cbba-45fa-b944-315a981ed0b3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T194814Z:8ba36a10-cbba-45fa-b944-315a981ed0b3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:48:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "82" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T19:48:14.9Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "180" ], + "x-ms-client-request-id": [ "eeeecf14-ca8f-49dc-8155-3c32c8659ff1" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3a76a5ca-4308-44f1-b5d8-e47a261b6474" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "2a862aba-39c9-40b0-b30d-b5683461585f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T194830Z:2a862aba-39c9-40b0-b30d-b5683461585f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:48:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b514ea02-b49f-4b5a-90d6-bdf402b04aa6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:48:14.9Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "181" ], + "x-ms-client-request-id": [ "eeeecf14-ca8f-49dc-8155-3c32c8659ff1" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "953a4d3d-28bd-4858-a4d9-1be5a07b38f1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "decb21b8-670f-41f6-bb7c-aefe026be756" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T194845Z:decb21b8-670f-41f6-bb7c-aefe026be756" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:48:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b514ea02-b49f-4b5a-90d6-bdf402b04aa6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:48:14.9Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "182" ], + "x-ms-client-request-id": [ "eeeecf14-ca8f-49dc-8155-3c32c8659ff1" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8c98081c-ac92-4986-8d97-58911af385e1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "5da90bb1-23e5-41f3-acf2-7798ba3a6c08" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T194900Z:5da90bb1-23e5-41f3-acf2-7798ba3a6c08" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:49:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "105" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b514ea02-b49f-4b5a-90d6-bdf402b04aa6\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:48:14.9Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/b514ea02-b49f-4b5a-90d6-bdf402b04aa6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "183" ], + "x-ms-client-request-id": [ "eeeecf14-ca8f-49dc-8155-3c32c8659ff1" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1e46945b-3cd5-44ad-b07d-27ab7c03e45b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "13181d47-b5fe-4dba-91ae-0735d1951bb8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T194900Z:13181d47-b5fe-4dba-91ae-0735d1951bb8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:49:00 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"\r\n },\r\n \"administratorLogin\": \"emptyPlover3\",\r\n \"administratorLoginPassword\": \"0t3]pDh}=H%Y*wh]\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "577" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ccfb2c4d-be33-46bc-b4f1-034ff8a35115" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "0fe76a0d-950e-4b73-9970-5df1a9eae0d3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T195706Z:0fe76a0d-950e-4b73-9970-5df1a9eae0d3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:57:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "187" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9f731e91-758f-44a4-80c6-89d6fadc8f74" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "0ca8f8bd-2374-4af7-9b7a-47eb00878eb8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T195808Z:0ca8f8bd-2374-4af7-9b7a-47eb00878eb8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:58:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "188" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cb0be259-77bb-41c5-bc4e-718a8712c990" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "78c4bb2c-eda4-4202-a19f-6e308b455572" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T195908Z:78c4bb2c-eda4-4202-a19f-6e308b455572" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:59:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "189" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f26c90da-b006-4947-b1b2-324fffcc42c5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "0434d775-6651-4b69-a2f0-461f820ef790" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200008Z:0434d775-6651-4b69-a2f0-461f820ef790" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:00:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "190" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bd9a8ca2-ba28-4db0-adbd-a7d0738211cd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "a88de6a1-1b67-48ba-a089-5255fce58ab7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200108Z:a88de6a1-1b67-48ba-a089-5255fce58ab7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:01:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "191" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6d51666d-67e8-48f9-bd5b-0e6a953100b7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "6e0241b3-e8b4-4482-9889-991e99ae6221" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200209Z:6e0241b3-e8b4-4482-9889-991e99ae6221" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:02:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "192" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6f77753a-ee05-4bae-b673-672ba01a9863" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "80b11d7b-1263-4ee2-b94a-aad2b411a332" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200309Z:80b11d7b-1263-4ee2-b94a-aad2b411a332" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:03:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "193" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1c6c7dfc-990e-48e6-862a-41d95cf76731" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "0cc3a04b-bfed-4260-a15c-c46dd498749a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200409Z:0cc3a04b-bfed-4260-a15c-c46dd498749a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:04:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "194" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e1b99192-13eb-4161-9b1d-b5a0628d0487" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "bfca92c8-97d8-433f-be5c-338359c06f12" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200509Z:bfca92c8-97d8-433f-be5c-338359c06f12" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:05:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "195" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9ce0ec6f-26a8-47a1-b45a-458f3ded8c14" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "13a58c76-03f8-4d49-a186-7d5bf0f22fc5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200609Z:13a58c76-03f8-4d49-a186-7d5bf0f22fc5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:06:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "196" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "347bf32d-7701-423a-9ebb-1c83b16417cf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "5f61f89b-5938-428f-8b62-f0dc9c12b2fa" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200709Z:5f61f89b-5938-428f-8b62-f0dc9c12b2fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:07:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "197" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "990bab66-0bd3-48aa-b91f-ce134f77edfb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "e41e204e-e772-4be0-9b6d-14651493798e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200810Z:e41e204e-e772-4be0-9b6d-14651493798e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:08:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "198" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e186f4f8-8f84-4080-9157-90bd5505c32b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "27f5e614-f976-400c-b356-7307bb9e0f7f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200910Z:27f5e614-f976-400c-b356-7307bb9e0f7f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:09:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c5e16c96-7352-482f-a057-e11ff5486cb3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "199" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e7c302a7-9ae8-48f6-ba7f-95f475ae6728" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "fc57eaf8-516b-4690-91fd-29f44d2c7e29" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201010Z:fc57eaf8-516b-4690-91fd-29f44d2c7e29" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:10:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c5e16c96-7352-482f-a057-e11ff5486cb3\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:57:06.507Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "200" ], + "x-ms-client-request-id": [ "0d29874c-04a4-41d0-8444-268f72adf46c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "286aa0cc-beed-4d90-92e7-d12348707a27" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "8a2b8b98-2d4e-4a3c-9e60-45a0e1715c1c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201010Z:8a2b8b98-2d4e-4a3c-9e60-45a0e1715c1c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:10:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1170" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"emptyPlover3\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T20:10:10.5088206+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "204" ], + "x-ms-client-request-id": [ "6f0f4544-52d5-4776-94ce-bb938d303c17" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c66bb5e5-51f9-47f9-8428-908c4007e099" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "81e583a0-0961-4350-b4a0-10542b5cb06c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201030Z:81e583a0-0961-4350-b4a0-10542b5cb06c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:10:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T20:10:30.65Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "205" ], + "x-ms-client-request-id": [ "6f0f4544-52d5-4776-94ce-bb938d303c17" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6fb121f6-e487-4cbc-bf6f-85cccd44be5e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "dda98934-6528-4ed8-8116-35c087f83ce6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201045Z:dda98934-6528-4ed8-8116-35c087f83ce6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:10:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c66bb5e5-51f9-47f9-8428-908c4007e099\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:10:30.65Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "206" ], + "x-ms-client-request-id": [ "6f0f4544-52d5-4776-94ce-bb938d303c17" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cdd7eafa-9b0b-42fe-b078-b3effb442cf0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "8b2a186d-e0b0-4a1b-9e30-40bdfa471c20" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201101Z:8b2a186d-e0b0-4a1b-9e30-40bdfa471c20" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:11:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c66bb5e5-51f9-47f9-8428-908c4007e099\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:10:30.65Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "207" ], + "x-ms-client-request-id": [ "6f0f4544-52d5-4776-94ce-bb938d303c17" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "dd80e9c2-cb7c-4b5a-a067-5dc5cea48ba3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "df3fa239-7c67-4d3a-85f2-8e45b77348b7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201116Z:df3fa239-7c67-4d3a-85f2-8e45b77348b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:11:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c66bb5e5-51f9-47f9-8428-908c4007e099\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:10:30.65Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/c66bb5e5-51f9-47f9-8428-908c4007e099?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "208" ], + "x-ms-client-request-id": [ "6f0f4544-52d5-4776-94ce-bb938d303c17" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "06723301-0b33-4c10-ad69-35a211a528ba" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "0f9a7599-7ab3-418f-b21d-85687ea2ba7a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201116Z:0f9a7599-7ab3-418f-b21d-85687ea2ba7a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:11:15 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest2/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"\r\n },\r\n \"administratorLogin\": \"pensiveLollies1\",\r\n \"administratorLoginPassword\": \"p0lVSe*[@{Aru#=8\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "581" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fddd6140-62b1-4434-be27-dc3c6152a412" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "22a3b556-c286-450f-9a10-51ae330f89e0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201921Z:22a3b556-c286-450f-9a10-51ae330f89e0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:19:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "212" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "53da40b8-1627-4d71-8e56-1ec6950a8a35" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "f9b07e49-4db2-4c67-88b3-55da35b82194" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202021Z:f9b07e49-4db2-4c67-88b3-55da35b82194" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:20:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "213" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f0d747db-7be5-4e2f-ac3d-0eac2d494c86" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "c97af43c-2f1b-452b-b84a-6352a4c0ceee" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202121Z:c97af43c-2f1b-452b-b84a-6352a4c0ceee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:21:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "214" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9514b77f-584d-4ef5-889b-b79c666549f1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "385d46a0-343b-4d78-a5ff-9fb81cff3dba" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202222Z:385d46a0-343b-4d78-a5ff-9fb81cff3dba" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:22:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "215" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "85ca1ed2-72aa-4f29-b506-4e6bf57fd9d0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "6c843d2a-57a4-4191-bf92-3f42de4e27c0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202322Z:6c843d2a-57a4-4191-bf92-3f42de4e27c0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:23:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "216" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c46870a1-d177-4b58-a759-2b2ab0df3635" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "ae042f46-0a2d-4079-9f04-9a844535d09f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202422Z:ae042f46-0a2d-4079-9f04-9a844535d09f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:24:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "217" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ba53ffd5-5c47-424d-ae56-0178cd2b0ff6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "db549827-1449-4d86-b077-d195a24592a2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202522Z:db549827-1449-4d86-b077-d195a24592a2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:25:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "218" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9f3282fa-d60e-4ab8-b7e8-157e2db463a9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "539d2295-8377-4a76-8734-05db0ced4115" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202622Z:539d2295-8377-4a76-8734-05db0ced4115" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:26:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "219" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "df34bd55-a321-45ee-bb90-735db1d1274c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "27aeef3d-fd46-47ef-a0ba-e097deb8456a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202722Z:27aeef3d-fd46-47ef-a0ba-e097deb8456a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:27:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "220" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9e95bab4-04ef-4d08-9080-eff18cdacb7a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "6cb9cad4-3149-4134-a2f1-100330cfecbc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202823Z:6cb9cad4-3149-4134-a2f1-100330cfecbc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:28:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c0dffba5-d7a6-47b8-8923-3e7b9981d951?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "221" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2904e5d3-03f1-4450-b62b-c0c4bf5a36bd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "7733dbcd-0bfa-4b3f-ba30-921cacc77bcc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202923Z:7733dbcd-0bfa-4b3f-ba30-921cacc77bcc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:29:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c0dffba5-d7a6-47b8-8923-3e7b9981d951\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:19:21.483Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "222" ], + "x-ms-client-request-id": [ "c5685318-8067-4860-90f3-849aa3718437" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "df9babd9-4d63-469a-89e4-afe996ab2bb1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "df492539-bad2-4f8e-b5d4-b8bd4f8998eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202923Z:df492539-bad2-4f8e-b5d4-b8bd4f8998eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:29:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1174" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"pensiveLollies1\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-3.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T20:29:23.5471033+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest2/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-3\",\"name\":\"mysql-test-100-3\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "226" ], + "x-ms-client-request-id": [ "13318860-166f-4eec-878e-b076df039151" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bbe8cadf-e645-4093-960b-7a35b31623fb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "2aabc9ef-9655-4c0c-8f55-3be6f2b1bb97" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T202947Z:2aabc9ef-9655-4c0c-8f55-3be6f2b1bb97" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:29:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T20:29:47.093Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "227" ], + "x-ms-client-request-id": [ "13318860-166f-4eec-878e-b076df039151" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ab4f7dec-f433-4732-98a5-554f0101a489" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "f5a4cd4e-5aa2-4c5e-a7ae-a86a87eb87ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T203002Z:f5a4cd4e-5aa2-4c5e-a7ae-a86a87eb87ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:30:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bbe8cadf-e645-4093-960b-7a35b31623fb\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:29:47.093Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "228" ], + "x-ms-client-request-id": [ "13318860-166f-4eec-878e-b076df039151" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "300e0450-641f-4df4-a3f6-52ffaf198358" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "cea4c9bf-327d-4a65-ad20-478f6135183a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T203017Z:cea4c9bf-327d-4a65-ad20-478f6135183a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:30:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bbe8cadf-e645-4093-960b-7a35b31623fb\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:29:47.093Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "229" ], + "x-ms-client-request-id": [ "13318860-166f-4eec-878e-b076df039151" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "440e6363-22ec-4b85-a103-2c9b0939cb21" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "061c802f-4fef-499b-b8b3-dba78514ee63" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T203032Z:061c802f-4fef-499b-b8b3-dba78514ee63" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:30:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bbe8cadf-e645-4093-960b-7a35b31623fb\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:29:47.093Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/bbe8cadf-e645-4093-960b-7a35b31623fb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "230" ], + "x-ms-client-request-id": [ "13318860-166f-4eec-878e-b076df039151" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0fee5a60-0405-420f-9ac9-8c3a7fe66164" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "b49f070e-f2de-4401-bff4-3d9d70ab1e27" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T203032Z:b49f070e-f2de-4401-bff4-3d9d70ab1e27" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:30:32 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"\r\n },\r\n \"administratorLogin\": \"adoringSnipe1\",\r\n \"administratorLoginPassword\": \"vw@7!#\\u0026O4@61aL5*\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "583" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5e3b6150-c0f9-4106-8150-ca3d808e7aab" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "f3fe139a-dd69-46bb-914e-9245405611eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T203843Z:f3fe139a-dd69-46bb-914e-9245405611eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:38:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "233" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ad4a4a54-3d00-4c23-8593-d9cb6066ea2f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "e17ab9f5-8ebc-4294-a8d6-52ffc0d1c927" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T203943Z:e17ab9f5-8ebc-4294-a8d6-52ffc0d1c927" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:39:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "234" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b0c61acc-6a33-4a48-b260-cc1612684758" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "421ea175-07b9-486b-98ff-ba1ba9d93d0d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204043Z:421ea175-07b9-486b-98ff-ba1ba9d93d0d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:40:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "235" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c0e0d2d8-6524-4aa5-84eb-3896c0c36ba1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "12151f65-f4d6-42ae-b12e-c7130ab43cf0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204143Z:12151f65-f4d6-42ae-b12e-c7130ab43cf0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:41:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "236" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9013d6b8-ffd0-475d-8f52-a391f346061e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "4bbb1e50-5810-4c71-8dd0-c0fb48287f32" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204244Z:4bbb1e50-5810-4c71-8dd0-c0fb48287f32" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:42:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "237" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "25458e90-bd16-4b07-97f9-cc28f5a69c84" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "f5587174-afd1-4f86-9c30-18785951315d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204344Z:f5587174-afd1-4f86-9c30-18785951315d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:43:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "238" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4b100d17-6025-4513-bdba-22640fd146a8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "e132e1be-b0a1-4859-ab71-08fb1bf3702d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204444Z:e132e1be-b0a1-4859-ab71-08fb1bf3702d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:44:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "239" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5202fb56-93c2-491f-bd1c-a3cdb3c301b9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "4c1f77b7-184c-4e82-8137-f12da3c0bdba" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204544Z:4c1f77b7-184c-4e82-8137-f12da3c0bdba" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:45:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "240" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "05a2883c-cc24-4784-b30e-160ca4d07aad" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "ac6a794d-3c46-4d92-a728-15ba27cb723a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204644Z:ac6a794d-3c46-4d92-a728-15ba27cb723a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:46:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "241" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "05063f64-69bb-457d-bf7b-d163af3a880f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "848e74a6-1b89-40f3-8792-26b6572a168b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204745Z:848e74a6-1b89-40f3-8792-26b6572a168b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:47:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "242" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4c73e83f-853c-4cdc-b6e5-903de01cdc10" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "7bb30b01-aa78-422f-a9e5-c9f78db3b15b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204845Z:7bb30b01-aa78-422f-a9e5-c9f78db3b15b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:48:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "243" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "400e5d98-785a-4388-951f-2acff461a58f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "17faf73f-589a-46b2-8fbc-0be9bb67ae4f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T204945Z:17faf73f-589a-46b2-8fbc-0be9bb67ae4f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:49:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3e687c6b-f9a4-48b6-9a8f-19694cb532ea?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "244" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f6794eed-04fe-4f06-956d-ef1c5788132c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "5bc2a48f-5bca-4713-8f8d-06e4db422783" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T205045Z:5bc2a48f-5bca-4713-8f8d-06e4db422783" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:50:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3e687c6b-f9a4-48b6-9a8f-19694cb532ea\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:38:43.163Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "245" ], + "x-ms-client-request-id": [ "e2747c2a-7c44-4338-a09b-61a43c910309" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "29e9d195-7101-4829-89b7-22f9a8dd8925" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "3bca11fc-334f-4e85-80c5-81608e8ea4a5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T205045Z:3bca11fc-334f-4e85-80c5-81608e8ea4a5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:50:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1171" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"adoringSnipe1\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T20:50:45.8541144+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "249" ], + "x-ms-client-request-id": [ "302b85f6-8952-4590-be79-2887fadf5ac9" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "baa2fb1a-9b91-406e-b149-67f34b905061" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "df0898a5-7226-4314-9b2d-dd68bdb14522" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T205105Z:df0898a5-7226-4314-9b2d-dd68bdb14522" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:51:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T20:51:05.447Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "250" ], + "x-ms-client-request-id": [ "302b85f6-8952-4590-be79-2887fadf5ac9" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "45da0f55-0322-4144-a06a-9b4f60b7d125" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "2d523258-c4fb-43dc-af94-ba29ee9b08cc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T205120Z:2d523258-c4fb-43dc-af94-ba29ee9b08cc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:51:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"baa2fb1a-9b91-406e-b149-67f34b905061\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:51:05.447Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "251" ], + "x-ms-client-request-id": [ "302b85f6-8952-4590-be79-2887fadf5ac9" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f7fab937-942b-4dc9-9aa4-847078495f24" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "155a66b1-314a-4b27-92fc-c780ab277027" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T205135Z:155a66b1-314a-4b27-92fc-c780ab277027" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:51:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"baa2fb1a-9b91-406e-b149-67f34b905061\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:51:05.447Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "252" ], + "x-ms-client-request-id": [ "302b85f6-8952-4590-be79-2887fadf5ac9" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "12d7dd1d-fabb-4f5f-91f6-405e02428462" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "1d823053-b697-48e7-90a1-3c1cb64819ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T205150Z:1d823053-b697-48e7-90a1-3c1cb64819ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:51:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"baa2fb1a-9b91-406e-b149-67f34b905061\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:51:05.447Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/baa2fb1a-9b91-406e-b149-67f34b905061?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "253" ], + "x-ms-client-request-id": [ "302b85f6-8952-4590-be79-2887fadf5ac9" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d6eb43ec-772c-4a20-86ae-3e3a531bcc60" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "02242b43-ff53-4ae3-9364-c6edc40f5091" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T205151Z:02242b43-ff53-4ae3-9364-c6edc40f5091" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:51:50 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/nonexistingsubnetforpowershelltest\"\r\n },\r\n \"administratorLogin\": \"machoBaboon3\",\r\n \"administratorLoginPassword\": \"H9mrz?}!07hb@$]8\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "611" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2b661ab3-c9bc-4b98-8d81-56bd483db7ea" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "fa47abe8-a262-43fe-a12a-b6be05766808" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210000Z:fa47abe8-a262-43fe-a12a-b6be05766808" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:59:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "256" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4862efab-c544-43d9-8a29-4a653d674b73" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "a67cac48-818e-4e9a-832d-5386eba85d63" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210100Z:a67cac48-818e-4e9a-832d-5386eba85d63" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:00:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "257" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "038118b9-4276-4f38-82e7-bab0ed784668" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "5216619a-791a-4274-8de0-270abad1a818" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210200Z:5216619a-791a-4274-8de0-270abad1a818" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:02:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "258" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "46c171c7-9b36-4057-92c7-87330d158f27" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "3653bf12-b77d-4d06-ac26-d949ae7c6371" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210300Z:3653bf12-b77d-4d06-ac26-d949ae7c6371" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:03:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "259" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5e3dc1a7-d513-48b3-8379-9aee90e860bf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "6923ab47-0d0f-4327-944f-f3c7663abf1c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210400Z:6923ab47-0d0f-4327-944f-f3c7663abf1c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:04:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "260" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b16fc639-1b24-46a7-82ff-84596a05df58" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "5b84973a-40e3-49e4-8cd7-1ba9c9fe5bf1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210501Z:5b84973a-40e3-49e4-8cd7-1ba9c9fe5bf1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:05:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "261" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "79f2eb2a-2d8c-42c3-a789-d71509fd19d5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "25447ea8-e468-412b-82ac-38787be60c17" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210601Z:25447ea8-e468-412b-82ac-38787be60c17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:06:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "262" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "33b7283a-2e7b-42c1-86a3-ae3896812d1f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "210352fb-9965-4a11-91dc-70c8c30d3358" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210701Z:210352fb-9965-4a11-91dc-70c8c30d3358" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:07:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "263" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "34098d2c-d356-4142-ad60-71c599136557" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "c804b85b-61ea-4af6-8f03-81c9814d8d25" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210801Z:c804b85b-61ea-4af6-8f03-81c9814d8d25" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:08:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "264" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7cd61a41-6a97-4ebd-9fdf-f4d64f35702e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "118b2fab-2146-497b-a90c-5ccd561d538b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T210901Z:118b2fab-2146-497b-a90c-5ccd561d538b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:09:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1240290d-20c3-4177-a597-da4d67bfd4cd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "265" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "443aba82-3a6a-4854-94bb-edddc31d8594" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "d44e1a27-6a01-4483-92d6-7c9110ff5d01" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211002Z:d44e1a27-6a01-4483-92d6-7c9110ff5d01" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:10:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1240290d-20c3-4177-a597-da4d67bfd4cd\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:59:59.84Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "266" ], + "x-ms-client-request-id": [ "1141a932-055c-45c7-8a59-6252978dbf0f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "21a7e84d-a381-4dff-bf7f-d977b36967ab" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "0a42c493-1624-429b-b2f5-fd849768c6f1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211002Z:0a42c493-1624-429b-b2f5-fd849768c6f1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:10:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1204" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"machoBaboon3\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-3.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T21:10:02.5102491+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/nonexistingsubnetforpowershelltest\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-3\",\"name\":\"mysql-test-100-3\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "270" ], + "x-ms-client-request-id": [ "fc36b678-bb81-4a02-a14f-7fbcaa53a168" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "13aae25b-ea2e-4035-9a5b-ccc134656328" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "96e54b61-9f09-4d8e-a283-4fffb3d666ce" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211023Z:96e54b61-9f09-4d8e-a283-4fffb3d666ce" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:10:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T21:10:23.34Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "271" ], + "x-ms-client-request-id": [ "fc36b678-bb81-4a02-a14f-7fbcaa53a168" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "43f116ab-22d0-4303-a27d-b4587018e6f6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "fb984b21-2bce-4c47-ac25-5aef43ffec99" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211038Z:fb984b21-2bce-4c47-ac25-5aef43ffec99" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:10:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"13aae25b-ea2e-4035-9a5b-ccc134656328\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:10:23.34Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "272" ], + "x-ms-client-request-id": [ "fc36b678-bb81-4a02-a14f-7fbcaa53a168" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7114b4f2-a9cb-4b6a-bfe7-e625578375fc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "288016a9-51f2-4e58-90e0-8284a254a986" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211053Z:288016a9-51f2-4e58-90e0-8284a254a986" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:10:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"13aae25b-ea2e-4035-9a5b-ccc134656328\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:10:23.34Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "273" ], + "x-ms-client-request-id": [ "fc36b678-bb81-4a02-a14f-7fbcaa53a168" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b758a454-87c1-41f7-80e1-16043340400b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "64f4f619-36ff-418d-a6fe-037e266ad86a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211108Z:64f4f619-36ff-418d-a6fe-037e266ad86a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:11:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"13aae25b-ea2e-4035-9a5b-ccc134656328\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T21:10:23.34Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/13aae25b-ea2e-4035-9a5b-ccc134656328?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "274" ], + "x-ms-client-request-id": [ "fc36b678-bb81-4a02-a14f-7fbcaa53a168" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1bd971ad-2574-4bd2-a143-fa2f7bcaedff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "9d50180d-0a35-4e6d-9473-6a56b954e2c1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211109Z:9d50180d-0a35-4e6d-9473-6a56b954e2c1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:11:08 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"\r\n },\r\n \"administratorLogin\": \"playfulCheetah5\",\r\n \"administratorLoginPassword\": \"pyZ%P@emO(\\u0026v?SE#\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "585" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b154ee22-1a33-42a8-8342-8a6c2840da9a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "49e74edd-193e-4b96-a476-904ebfe16beb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T211917Z:49e74edd-193e-4b96-a476-904ebfe16beb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:19:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "278" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0a1b7228-c411-4393-a642-aea339d0e5c1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "4a8faef2-eea0-4279-b3d0-9cb4c7a8258e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212017Z:4a8faef2-eea0-4279-b3d0-9cb4c7a8258e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:20:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "279" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "629d48e6-554e-4979-a8ee-ecad207b2e24" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "b172cedc-46e2-47f7-b640-6d780f6b68c4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212118Z:b172cedc-46e2-47f7-b640-6d780f6b68c4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:21:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "280" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "df90237e-f4a3-49ac-abc1-b97f3de0ea05" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "1a7fbec0-d340-4fd2-8dcb-1f0275a1d088" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212218Z:1a7fbec0-d340-4fd2-8dcb-1f0275a1d088" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:22:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "281" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e3696758-42ca-4ffc-8a85-2347a638d739" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "b29e1cea-79b1-4524-9e0d-85ff7d9e8a5c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212318Z:b29e1cea-79b1-4524-9e0d-85ff7d9e8a5c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:23:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "282" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "23ff4bd5-b9ff-42d3-86f4-f3de9b1dc322" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "6f0202fd-63ce-479e-bda0-22bdbdf71794" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212418Z:6f0202fd-63ce-479e-bda0-22bdbdf71794" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:24:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "283" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "94d490df-0547-4fc4-b47a-e772861c3b4f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "9b351b6b-7fb9-4d9c-85a4-9c18f0724f66" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212518Z:9b351b6b-7fb9-4d9c-85a4-9c18f0724f66" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:25:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "284" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "abd7816f-e319-46e7-8826-410309b522cc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "15c7eff1-a565-4560-a267-8220ef3413e2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212618Z:15c7eff1-a565-4560-a267-8220ef3413e2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:26:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "285" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b9c698e5-2618-4cd7-b33c-3c684a845185" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "ad7b7beb-a882-48f6-938c-c783387efafe" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212719Z:ad7b7beb-a882-48f6-938c-c783387efafe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:27:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "286" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cbce4677-c728-4580-9386-9aae18894e96" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "944c40cf-3e33-4107-9ba6-ef95a5a5bad6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212819Z:944c40cf-3e33-4107-9ba6-ef95a5a5bad6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:28:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/60c7412f-d36d-4799-96af-4aa3e16efcd8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "287" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7b969ee2-d10b-4c70-9f23-5e5316b5711a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "067af70b-6f7a-4e74-aacd-cad9a49f206f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212919Z:067af70b-6f7a-4e74-aacd-cad9a49f206f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:29:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"60c7412f-d36d-4799-96af-4aa3e16efcd8\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T21:19:16.98Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "288" ], + "x-ms-client-request-id": [ "2828bce5-1f25-4d5b-aa92-33996b0a9e1b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "479fec57-0509-44c9-99df-cbe4aefb85a9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "d7e2e5ad-a952-44bc-bcdc-5fe02ac1e6bf" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212920Z:d7e2e5ad-a952-44bc-bcdc-5fe02ac1e6bf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:29:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1173" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"playfulCheetah5\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-3.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T21:29:20.1336367+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-3\",\"name\":\"mysql-test-100-3\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-3?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "292" ], + "x-ms-client-request-id": [ "d20deb02-fc08-42ba-802d-14512625ec2c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "45965e9e-1f03-4369-8e84-3f35bfcf1472" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "b9b3a4a5-5690-4de4-b9c0-777dc1770f57" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212939Z:b9b3a4a5-5690-4de4-b9c0-777dc1770f57" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:29:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T21:29:39.853Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "293" ], + "x-ms-client-request-id": [ "d20deb02-fc08-42ba-802d-14512625ec2c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "905096fc-5631-4273-a0ff-0e8e62ab7d93" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "9a99f37f-1880-4bbb-ab3c-6c63d8fdd43c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T212955Z:9a99f37f-1880-4bbb-ab3c-6c63d8fdd43c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:29:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"45965e9e-1f03-4369-8e84-3f35bfcf1472\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:29:39.853Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "294" ], + "x-ms-client-request-id": [ "d20deb02-fc08-42ba-802d-14512625ec2c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6cf6e02a-7726-447d-bc18-f9c88981efb1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "6267d422-34b1-48c8-a4b8-3af195e1fc0b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213010Z:6267d422-34b1-48c8-a4b8-3af195e1fc0b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:30:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"45965e9e-1f03-4369-8e84-3f35bfcf1472\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:29:39.853Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "295" ], + "x-ms-client-request-id": [ "d20deb02-fc08-42ba-802d-14512625ec2c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7af2ab19-40cc-4098-b8a2-ef5d67609a5e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "e66e6a14-647c-4117-b06d-fc81f51cbe1b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213027Z:e66e6a14-647c-4117-b06d-fc81f51cbe1b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:30:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"45965e9e-1f03-4369-8e84-3f35bfcf1472\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T21:29:39.853Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/45965e9e-1f03-4369-8e84-3f35bfcf1472?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "296" ], + "x-ms-client-request-id": [ "d20deb02-fc08-42ba-802d-14512625ec2c" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "df90460e-e3cc-4aef-a81d-4280c9ccd1da" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "0bb68add-bcab-4104-bac6-b83593b0c24c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213027Z:0bb68add-bcab-4104-bac6-b83593b0c24c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:30:26 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"\r\n },\r\n \"administratorLogin\": \"solemnAuk3\",\r\n \"administratorLoginPassword\": \"FnH+y{HG!Y5%a*{w\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "575" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c9bd258b-ccc1-415c-8585-170a78865882" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "d0ce33d2-1f2b-4fac-8295-71324c9681cf" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213033Z:d0ce33d2-1f2b-4fac-8295-71324c9681cf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:30:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "299" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b98ca950-2674-4060-8d33-633d04ec8260" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "fe4caa11-d2f8-4b34-945e-66f5de757586" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213133Z:fe4caa11-d2f8-4b34-945e-66f5de757586" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:31:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "300" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "50aeeef3-58ed-44df-bfe7-c606ad035c9f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "a706ad91-ef3a-4a67-a093-952503a32fcb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213233Z:a706ad91-ef3a-4a67-a093-952503a32fcb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:32:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "301" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "88737025-9135-4077-b5dc-6498b4edf709" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "85a29b3b-9d2f-48bc-85ab-3a70e17ae704" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213333Z:85a29b3b-9d2f-48bc-85ab-3a70e17ae704" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:33:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "302" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "17e0dc72-232d-47b4-9cc8-b783c4317d74" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "7ef9320b-46a2-4eee-b991-c8d72ccdac65" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213433Z:7ef9320b-46a2-4eee-b991-c8d72ccdac65" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:34:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "303" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "72d6b5dc-e571-4c09-a714-2a9fdc6b2ff6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "dbd16c37-908b-4db9-ab29-a12010de2639" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213534Z:dbd16c37-908b-4db9-ab29-a12010de2639" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:35:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "304" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3efa7369-79ff-4f2f-b434-ad6dfb3e766a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "d9ecfc9e-218c-4837-b2dc-61f430f5c8fa" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213634Z:d9ecfc9e-218c-4837-b2dc-61f430f5c8fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:36:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "305" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "69684571-f34a-4e0c-9b2d-fc1b82426553" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "29ed5c36-b229-4039-81f2-d7c2d6e4cd86" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213734Z:29ed5c36-b229-4039-81f2-d7c2d6e4cd86" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:37:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "306" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a8bda2e9-b612-4f8f-bf0b-73db35e84d24" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "74edf234-0e92-4efe-a935-3f252f635e53" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213834Z:74edf234-0e92-4efe-a935-3f252f635e53" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:38:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "307" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "42625728-2d55-486a-8de3-c9a666886474" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "edb8070b-a873-4b8c-b384-55dfbc210ab7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T213935Z:edb8070b-a873-4b8c-b384-55dfbc210ab7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:39:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "308" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f175dbf1-be9a-4060-9cef-ff2da0b1bf77" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "8b5dea1a-7b6b-4de8-9bae-1a793854765f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214035Z:8b5dea1a-7b6b-4de8-9bae-1a793854765f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:40:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "309" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cf174d0e-ac7d-441d-85a6-50378ea60812" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "aafcadc8-87ea-4358-af0c-9051ca0ee5d3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214135Z:aafcadc8-87ea-4358-af0c-9051ca0ee5d3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:41:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "310" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d875b0cc-3d8e-44c2-960a-7f266cc9896a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "b87911f6-5a3f-41bd-af83-4025acc666d7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214235Z:b87911f6-5a3f-41bd-af83-4025acc666d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:42:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "311" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c7ca4aeb-3532-4594-af60-f2233eb3ffaa" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "09e005d3-720a-482b-a8cc-63faf9a50b67" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214335Z:09e005d3-720a-482b-a8cc-63faf9a50b67" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:43:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "312" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7c2b9e56-5798-44b5-9ea6-8ea5f08651e1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "0a7edbc9-ce83-4a9d-a9b8-c01a29d4c35b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214436Z:0a7edbc9-ce83-4a9d-a9b8-c01a29d4c35b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:44:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "313" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ef43f94a-0144-417c-a6a0-52ddcd48fcf1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "fb165850-3366-45c9-b5a9-167630c77880" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214536Z:fb165850-3366-45c9-b5a9-167630c77880" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:45:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "314" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8738c3ae-2d15-417a-a432-383e9a32f893" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "c6cd1215-11f1-4906-9906-225a55a764e3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214636Z:c6cd1215-11f1-4906-9906-225a55a764e3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:46:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "315" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7d445b56-9720-435c-b3d9-30ebc7ad941f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "ce0c7443-3047-47a8-b645-fbb255da9cc2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214736Z:ce0c7443-3047-47a8-b645-fbb255da9cc2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:47:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "316" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cff4391c-f24e-41cd-9a22-1fcd31cef0f9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "14a0537a-4a52-4360-8ced-5536db312add" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214837Z:14a0537a-4a52-4360-8ced-5536db312add" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:48:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "317" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2f17385f-f252-4fe6-9739-605b4ada635e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "c7ba603d-d838-4e33-ba46-3c63c6902118" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T214937Z:c7ba603d-d838-4e33-ba46-3c63c6902118" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:49:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "318" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "be6eb234-38c2-4f2a-8a08-b26faa9f35d2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "8837a650-5677-4928-9e55-b08bfa65152e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215037Z:8837a650-5677-4928-9e55-b08bfa65152e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:50:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "319" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "14b8361f-69dd-413e-9d86-7811d0b7ca25" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "3727370a-e78d-4957-a71b-fa69f1278254" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215137Z:3727370a-e78d-4957-a71b-fa69f1278254" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:51:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "320" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "08e63ae5-9f58-41fb-9e4e-71396edc7a26" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "29a79c4d-1391-4117-9242-2429eb70f556" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215237Z:29a79c4d-1391-4117-9242-2429eb70f556" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:52:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "321" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a2a3aec2-4bd1-42ec-9577-e548de1f2735" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-correlation-request-id": [ "645468cb-88e9-4168-a4b9-25a0fc2639c3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215337Z:645468cb-88e9-4168-a4b9-25a0fc2639c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:53:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "322" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "af053352-443f-484b-ae4f-d919a2dbeccd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-correlation-request-id": [ "dcb79caf-12c3-46f2-b35e-7b5a7a182668" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215439Z:dcb79caf-12c3-46f2-b35e-7b5a7a182668" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:54:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "323" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1610125b-3b6a-40d2-ad18-b8680feaba4c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-correlation-request-id": [ "96a0cab5-4ba4-4ce5-aeae-847a3435e5e8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215539Z:96a0cab5-4ba4-4ce5-aeae-847a3435e5e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:55:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "324" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f25277ab-8f85-45c6-aae1-f4febe18dd4d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "025f345d-50b0-47f2-b0dd-ce96f48d168e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215639Z:025f345d-50b0-47f2-b0dd-ce96f48d168e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:56:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+28": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "325" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3410dd24-23e1-47c1-bd1f-0d766643aab5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "25d9919b-0140-4e9a-a725-8fceefed947d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215739Z:25d9919b-0140-4e9a-a725-8fceefed947d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:57:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+29": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "326" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "68d982ea-f6e1-4fc0-9239-f1271905e076" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "43adfbdd-25c7-4672-9c6f-8fd02255dbe8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215839Z:43adfbdd-25c7-4672-9c6f-8fd02255dbe8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:58:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+30": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "327" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ad5ae297-2808-48f4-99d6-d24d0a81e999" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-correlation-request-id": [ "1c4c7bfa-441e-4013-a24c-6fcbb9932076" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T215939Z:1c4c7bfa-441e-4013-a24c-6fcbb9932076" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 21:59:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+31": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "328" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b2368d20-f5a6-4784-a165-4e122cb9415e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-correlation-request-id": [ "9bfd940f-afa4-4531-820b-a4daf0da40c1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T220040Z:9bfd940f-afa4-4531-820b-a4daf0da40c1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 22:00:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+32": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "329" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "762c7208-889c-4700-b646-d8c393e61406" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "a3da7883-e3ec-481d-9d38-7c0ff3248e7a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T220140Z:a3da7883-e3ec-481d-9d38-7c0ff3248e7a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 22:01:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+33": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "330" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "762f1384-0f60-4e2e-ae41-d65956dcdf0a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-correlation-request-id": [ "a6eba76f-5f17-4696-932e-919a9a6d12bc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T220240Z:a6eba76f-5f17-4696-932e-919a9a6d12bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 22:02:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview+34": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ab2d83cc-9ed8-4a42-9791-0a1231703d31?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "331" ], + "x-ms-client-request-id": [ "b062474a-31ea-451b-bb45-a718c75079b7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ee78dd47-eaa9-43a5-b0cc-1d504d2b8b6c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "5847f352-5a33-42cd-b786-648e0226cdc4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T220340Z:5847f352-5a33-42cd-b786-648e0226cdc4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 22:03:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ab2d83cc-9ed8-4a42-9791-0a1231703d31\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T21:30:33.07Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2222?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2222?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"\r\n },\r\n \"administratorLogin\": \"untrueDonkey7\",\r\n \"administratorLoginPassword\": \"rvS}C/[CdGBTo[{=\",\r\n \"version\": \"5.7\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "578" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7c0ad063-a693-4276-99ab-d58f25dcd7ba" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "39c0e80c-e7df-4347-97f1-c087a10243a4" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T225903Z:39c0e80c-e7df-4347-97f1-c087a10243a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 22:59:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e8dc04f9-c4cb-4b5b-b29b-61ec2de5ef77" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "0088f14d-88ca-4850-a811-a908ec9451b6" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230004Z:0088f14d-88ca-4850-a811-a908ec9451b6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:00:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "500624b6-995c-47df-9d47-01ae65cfcd4e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "474d0a15-8142-4691-a5f6-38352e690470" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230104Z:474d0a15-8142-4691-a5f6-38352e690470" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:01:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5c1475fa-2630-4121-b05e-7adae3864246" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "3c2127fd-22cf-4813-9281-f4e888fd3509" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230204Z:3c2127fd-22cf-4813-9281-f4e888fd3509" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:02:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "176b0291-054b-4ac5-8c6c-982d394196b1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "ce23513c-d98a-44dd-aeae-cc3f88b6ba23" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230304Z:ce23513c-d98a-44dd-aeae-cc3f88b6ba23" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:03:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "78dee032-af38-42c5-9c9e-ed6130acf33a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "41e95dec-7895-4626-afb4-11c6c81b6352" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230404Z:41e95dec-7895-4626-afb4-11c6c81b6352" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:04:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3d942726-cb9e-429f-832c-92dac613709d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "4ff0fd9b-adba-4f2f-b179-08efb905c79d" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230504Z:4ff0fd9b-adba-4f2f-b179-08efb905c79d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:05:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "59c8a352-4f03-488a-a295-55643ff90319" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "972c956f-0972-4186-9006-2091eff949d8" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230605Z:972c956f-0972-4186-9006-2091eff949d8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:06:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f9543da6-ba6b-4810-897f-2591aeb47ddb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "6f8108c0-ddcb-4045-b56e-842f0ac7ff2a" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230705Z:6f8108c0-ddcb-4045-b56e-842f0ac7ff2a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:07:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0b90a2d9-d36d-4fa0-b0a9-bdfafec8674e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "c12b8a61-5917-417d-8bf9-59afc4f69579" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230805Z:c12b8a61-5917-417d-8bf9-59afc4f69579" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:08:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3d60164d-8ba4-430c-b7d5-78766e3fefbb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "97465847-8239-47fc-aab8-eb9058d32ed4" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T230905Z:97465847-8239-47fc-aab8-eb9058d32ed4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:09:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/b6f01090-de61-4d65-8212-6d6286635176?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1852d5c8-901b-457b-ad73-b1cac8df0e6c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "dfef90c9-beec-423e-80ad-4804c7d1217c" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T231025Z:dfef90c9-beec-423e-80ad-4804c7d1217c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:10:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b6f01090-de61-4d65-8212-6d6286635176\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T22:59:03.657Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2222?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2222?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "a89888ed-b9e9-45f8-8900-615d56a31705" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e5c496a1-386b-4729-b2f4-b9efe94f07a7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "7a6b5f29-9f99-4265-9780-8122bdb69421" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T231025Z:7a6b5f29-9f99-4265-9780-8122bdb69421" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:10:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1180" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"untrueDonkey7\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2222.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-12-10T23:10:25.6015349+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/mysqlvnet/subnets/mysql-test-subnet\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2222\",\"name\":\"mysql-test-100-2222\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2222?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2222?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "e288adba-4a88-4d70-8f9e-a9b265df82b7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e4ce4e47-f4ab-401d-ac72-8a94035eaad6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "cc8d96bd-7b23-4a5a-ab0c-0a4cf4205bca" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T233121Z:cc8d96bd-7b23-4a5a-ab0c-0a4cf4205bca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:31:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T23:31:21.367Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "e288adba-4a88-4d70-8f9e-a9b265df82b7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "80d4fe57-7ee8-46af-885f-dd4d0a7501f2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "414472c1-0ada-4a4e-954a-e42ac9380db7" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T233136Z:414472c1-0ada-4a4e-954a-e42ac9380db7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:31:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e4ce4e47-f4ab-401d-ac72-8a94035eaad6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T23:31:21.367Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "e288adba-4a88-4d70-8f9e-a9b265df82b7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "585827e1-3a7b-444b-b3d6-7b2a9eda5284" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "b9d3661e-9e6b-4a0a-b494-f42b301075d4" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T233151Z:b9d3661e-9e6b-4a0a-b494-f42b301075d4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:31:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e4ce4e47-f4ab-401d-ac72-8a94035eaad6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T23:31:21.367Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "e288adba-4a88-4d70-8f9e-a9b265df82b7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4647fa4d-d853-46ab-a086-f7ae80b2b892" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "7d57f533-ec31-4786-89e1-9873f85191b8" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T233206Z:7d57f533-ec31-4786-89e1-9873f85191b8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:32:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e4ce4e47-f4ab-401d-ac72-8a94035eaad6\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T23:31:21.367Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/e4ce4e47-f4ab-401d-ac72-8a94035eaad6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "e288adba-4a88-4d70-8f9e-a9b265df82b7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b6115a81-6768-40d8-be31-b1e4b7097fff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "d8050187-e1f2-430f-aac9-ad4baa1da3db" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T233206Z:d8050187-e1f2-430f-aac9-ad4baa1da3db" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:32:06 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } } } \ No newline at end of file diff --git a/src/MySql/test/New-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/New-AzMySqlFlexibleServer.Tests.ps1 index fd5d755696c9..25e5dd11b0aa 100644 --- a/src/MySql/test/New-AzMySqlFlexibleServer.Tests.ps1 +++ b/src/MySql/test/New-AzMySqlFlexibleServer.Tests.ps1 @@ -11,17 +11,330 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName +$DEFAULT_DB_NAME = 'flexibleserverdb' +$DELEGATION_SERVICE_NAME = "Microsoft.DBforMySQL/flexibleServers" +$DEFAULT_VNET_PREFIX = '10.0.0.0/16' +$DEFAULT_SUBNET_PREFIX = '10.0.0.0/24' + +If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + If (!(Get-Module -ListAvailable -Name Az.Network)) { + Write-Host "Installing the network module to resolve any dependency issue." + Install-Module -Name Az.Network + } + Import-Module -Name Az.Network +} + Describe 'New-AzMySqlFlexibleServer' { + function WaitServerDelete(){ + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + Start-Sleep -Seconds 450 + } + } + function ValidateSubnetVnet($Server, $VnetName, $SubnetName){ + $Vnet = Get-AzVirtualNetwork -Name $VNetName -ResourceGroupName $env.resourceGroup + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + $Server.DelegatedSubnetArgumentSubnetArmResourceId | Should -Be $Subnet.Id + $Delegation = Get-AzDelegation -Name Microsoft.DBforMySQL/flexibleServers -Subnet $Subnet + $Delegation.ServiceName | Should -Be $DELEGATION_SERVICE_NAME + } + + function RemoveServerVnet($ServerName, $VnetName, $SubnetName){ + $Vnet = Get-AzVirtualNetwork -Name $VNetName -ResourceGroupName $env.resourceGroup + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $ServerName + WaitServerDelete + $Subnet = Remove-AzDelegation -Name $DELEGATION_SERVICE_NAME -Subnet $Subnet + Set-AzVirtualNetwork -VirtualNetwork $Vnet + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName $env.resourceGroup -Force + } + It 'CreateExpanded' { { - #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] - $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force - $server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -AdministratorUserName mysql_test -AdministratorLoginPassword $password -Sku Standard_D2ds_v4 -SkuTier GeneralPurpose -BackupRetentionDay 12 -StorageInMb 102400 -Location eastus2 - $server.SkuName | Should -Be "Standard_D2ds_v4" - $server.SkuTier | Should -Be "GeneralPurpose" - $server.StorageProfileStorageMb | Should -Be 102400 - $server.StorageProfileBackupRetentionDay | Should -Be 12 + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force + $server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -AdministratorUserName mysql_test -AdministratorLoginPassword $password -Sku Standard_D2ds_v4 -SkuTier GeneralPurpose -BackupRetentionDay 12 -StorageInMb 102400 -Location eastus2 + $server.SkuName | Should -Be "Standard_D2ds_v4" + $server.SkuTier | Should -Be "GeneralPurpose" + $server.StorageProfileStorageMb | Should -Be 102400 + $server.StorageProfileBackupRetentionDay | Should -Be 12 + } + } | Should -Not -Throw + } + + It 'PublicAccessScenario-AllAzure' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # Public Access 0.0.0.0 + New-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -PublicAccess 0.0.0.0 + $FirewallRules = Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName2 + $FirewallRules[0].Name | Should -BeLike "AllowAllAzureServicesAndResourcesWithinAzureIps*" + $FirewallRules[0].StartIPAddress | Should -Be "0.0.0.0" + $FirewallRules[0].EndIPAddress | Should -Be "0.0.0.0" + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 + WaitServerDelete + } + } | Should -Not -Throw + } + + It 'PublicAccessScenario-FirewallRule' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # Public Access 10.10.10.10-10.10.10.12 + New-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName3 -PublicAccess 10.10.10.10-10.10.10.12 + $FirewallRules = Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName3 + $FirewallRules[0].Name | Should -BeLike "FirewallIPAddress*" + $FirewallRules[0].StartIPAddress | Should -Be "10.10.10.10" + $FirewallRules[0].EndIPAddress | Should -Be "10.10.10.12" + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName3 + WaitServerDelete + } + } | Should -Not -Throw + } + + It 'PublicAccessScenario-AllowAll' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # Public Access All + New-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -PublicAccess All + $FirewallRules = Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName2 + $FirewallRules[0].Name | Should -BeLike "AllowAll*" + $FirewallRules[0].StartIPAddress | Should -Be "0.0.0.0" + $FirewallRules[0].EndIPAddress | Should -Be "255.255.255.255" + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 + WaitServerDelete + } + } | Should -Not -Throw + } + + It 'NoArgumentsScenario' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + $Server = New-AzMySqlFlexibleServer + $Splits = $Server.Id -Split "/" + $ResourceGroupName = $Splits[4] + $SubnetName = 'Subnet' + $Server.Name + $VnetName = 'VNET' + $Server.Name + $Vnet = Get-AzVirtualNetwork -Name $VnetName -ResourceGroupName $ResourceGroupName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + $Server.SkuName | Should -Be "Standard_B1ms" + $Server.SkuTier | Should -Be "Burstable" + $Server.StorageProfileStorageMb | Should -Be 10240 + $Server.StorageProfileBackupRetentionDay | Should -Be 7 + $Server.Location | Should -Be "West US 2" + + $Vnet = Get-AzVirtualNetwork -Name $VNetName -ResourceGroupName $ResourceGroupName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + $Server.DelegatedSubnetArgumentSubnetArmResourceId | Should -Be $Subnet.Id + $Delegation = Get-AzDelegation -Name Microsoft.DBforMySQL/flexibleServers -Subnet $Subnet + $Delegation.ServiceName | Should -Be $DELEGATION_SERVICE_NAME + Remove-AzMySqlFlexibleServer -ResourceGroupName $ResourceGroupName -Name $Server.Name + WaitServerDelete + $Subnet = Remove-AzDelegation -Name $DELEGATION_SERVICE_NAME -Subnet $Subnet + Set-AzVirtualNetwork -VirtualNetwork $Vnet + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName $ResourceGroupName -Force + Remove-AzResourceGroup -Name $ResourceGroupName + } + } | Should -Not -Throw + } + + It 'VnetNameScenario-ValidVnet' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid vnet name and the vnet exists + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Force + $Server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $Vnet.Name + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server $env.VNetName $SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $SubnetName + } + } | Should -Not -Throw + } + + It 'VnetNameScenario-ValidVnetNotExist' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid vnet name but the vnet doesn't exist + $Server = New-AzMySqlFlexibleServer -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Vnet nonexistingvnetforpowershelltest + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server nonexistingvnetforpowershelltest $SubnetName + RemoveServerVnet $env.serverName3 nonexistingvnetforpowershelltest $SubnetName + } + } | Should -Not -Throw + } + + It 'VnetNameScenario-InvalidVnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # invalid vnet name + $InvalidName = "hi/df!@$@#$@" + New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $InvalidName + + } | Should -Throw + } + } + + It 'VnetIdScenario-ValidVnet' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid vnet Id but the vnet doesn't exist + $VnetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest" + $Server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $VnetId + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server nonexistingvnetforpowershelltest $SubnetName + RemoveServerVnet $env.serverName2 nonexistingvnetforpowershelltest $SubnetName + } + } | Should -Not -Throw + } + + It 'VnetIdScenario-ValidVnetNotExist' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid vnet Id and the vnet exists (subnet does not exist) + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.Location -AddressPrefix $DEFAULT_VNET_PREFIX -Force + $Server = New-AzMySqlFlexibleServer -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Vnet $Vnet.Id + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server $env.VNetName $SubnetName + RemoveServerVnet $env.serverName3 $env.VNetName $SubnetName + } + } | Should -Not -Throw + } + + It 'VnetIdScenario-InvalidVnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # invalid vnet Id + $VnetId = "/subscriptions/00000-000-000000000000/resourceGroups/providers/Microsoft.Network/virtualNetworks/Vnet/Wrong/Vnet/itis" + New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $VnetId + } | Should -Throw + } + } + + It 'SubnetIdScenario-ValidSubnet' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid subnet Id and the subnet exists without delegation + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $SubnetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/$($env.VNetName)" + "/subnets/$($env.SubnetName)" + $Server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $SubnetId + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $env.SubnetName + } + } | Should -Not -Throw + } + + It 'SubnetIdScenario-ValidSubnetDifferentRg' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid subnet Id and the subnet exists without delegation, different resource group + New-AzResourceGroup -Name MySqlTest2 -Location $env.location + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName MySqlTest2 -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + $Server = New-AzMySqlFlexibleServer -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Subnet $Subnet.Id + + $Vnet = Get-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName MySqlTest2 + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + + $Server.DelegatedSubnetArgumentSubnetArmResourceId | Should -Be $Subnet.Id + $Delegation = Get-AzDelegation -Name Microsoft.DBforMySQL/flexibleServers -Subnet $Subnet + $Delegation.ServiceName | Should -Be $DELEGATION_SERVICE_NAME + + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName3 + WaitServerDelete + $Subnet = Remove-AzDelegation -Name $DELEGATION_SERVICE_NAME -Subnet $Subnet + Set-AzVirtualNetwork -VirtualNetwork $Vnet + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName MySqlTest2 -Force + } + } | Should -Not -Throw + } + + It 'SubnetIdScenario-ValidSubnetDelegation' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid subnet Id and the subnet exists with delegation + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $Subnet = Add-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Vnet | Set-AzVirtualNetwork + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + $Server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $Subnet.Id + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $env.SubnetName + } + } | Should -Not -Throw + } + + It 'SubnetIdScenario-ValidSubnetNotExist' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # valid subnet Id but the subnet doesn't exist + $SubnetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/nonexistingsubnetforpowershelltest" + $Server = New-AzMySqlFlexibleServer -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Subnet $SubnetId + + ValidateSubnetVnet $Server nonexistingvnetforpowershelltest nonexistingsubnetforpowershelltest + RemoveServerVnet $env.serverName3 nonexistingvnetforpowershelltest nonexistingsubnetforpowershelltest + } + } | Should -Not -Throw + } + + It 'SubnetIdScenario-InvalidSubnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # invalid subnet Id + $SubnetId = "/subscriptions/00000-000-000000000000/resourceGroups/providers/Microsoft.Network/VirtualNetworks/Wrong/subnetss/wrong" + New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $SubnetId + } | Should -Throw + { + # invalid delegation on the subnet + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $Subnet = Add-AzDelegation -Name "faultydelegation" -ServiceName "Microsoft.Sql/servers" -Subnet $Subnet + Set-AzVirtualNetwork -VirtualNetwork $Vnet + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $Subnet.Id | Should -Throw + Remove-AzDelegation -Name "faultydelegation" -Subnet $Subnet + Set-AzVirtualNetwork $Vnet + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName $env.resourceGroup + } + } + } + + It 'VnetSubnetScenario-ValidVnetSubnetNotExist' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # vnet name and subnet name resource do not exist + $Server = New-AzMySqlFlexibleServer -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Vnet $env.VNetName -Subnet $env.SubnetName -VnetPrefix $DEFAULT_VNET_PREFIX -SubnetPrefix $DEFAULT_SUBNET_PREFIX + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName3 + } + } | Should -Not -Throw + } + + It 'VnetSubnetScenario-ValidVnetSubnet' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + # vnet name and subnet name, resource exist + $Server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $env.VNetName -Subnet $env.SubnetName + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $env.SubnetName + } } | Should -Not -Throw } } + + diff --git a/src/MySql/test/New-AzMySqlFlexibleServerOld.Recording.json b/src/MySql/test/New-AzMySqlFlexibleServerOld.Recording.json new file mode 100644 index 000000000000..943645f577ef --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServerOld.Recording.json @@ -0,0 +1,3495 @@ +{ + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2ds_v4\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 12,\r\n \"storageMB\": 102400\r\n },\r\n \"administratorLogin\": \"mysql_test\",\r\n \"administratorLoginPassword\": \"Pasword01!!2020\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "376" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/operationResults/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "667dafb6-209c-483f-b69f-39484b76f3c2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "9b6cf422-9f80-4be2-9549-78dc2fdcd41e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204129Z:9b6cf422-9f80-4be2-9549-78dc2fdcd41e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:41:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a2c60699-415c-47d9-bd41-93c53a0726e5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "d29ae1ab-3d5b-4752-80b6-9dc03a6923eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204230Z:d29ae1ab-3d5b-4752-80b6-9dc03a6923eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:42:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "daf365e5-4c61-41aa-964b-4e9a928949be" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "d74864f5-76d5-4ba6-a54d-02f5ad1c2c1c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204330Z:d74864f5-76d5-4ba6-a54d-02f5ad1c2c1c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:43:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "298a5a86-ef50-4d77-9e9f-83bc882726df" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "900cd2b1-93a5-45d9-8136-a84315fdcb92" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204430Z:900cd2b1-93a5-45d9-8136-a84315fdcb92" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:44:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "af39c4fb-1f6c-47c9-957d-cb3e16960ce0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "271b6a24-f082-4559-9015-4d81e1d629c1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204531Z:271b6a24-f082-4559-9015-4d81e1d629c1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:45:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b635cabe-f384-40a4-8119-30f690e402f2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "19ff368f-70ce-4ad0-abff-3b507751fc1e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204632Z:19ff368f-70ce-4ad0-abff-3b507751fc1e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:46:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c6803031-4c07-429c-bd01-c473f5072fec" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "ce62fa1d-2f5b-4331-987d-5693956176eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204732Z:ce62fa1d-2f5b-4331-987d-5693956176eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:47:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "886fdc7c-493a-4dfc-a82a-b4bc6728c7e8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "eb2dace3-c78b-4854-a75d-28547d87ad5d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204832Z:eb2dace3-c78b-4854-a75d-28547d87ad5d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:48:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "80d5c056-b086-45f0-b142-bf1f8ed98d61" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "cf74a88a-89a7-435c-88f1-ca560274e1c9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204933Z:cf74a88a-89a7-435c-88f1-ca560274e1c9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:49:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "40d55e84-8cb6-4c3a-9496-fbc94ad2ab92" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "efa7eda6-33e9-48ab-a389-6d21f220d52c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204933Z:efa7eda6-33e9-48ab-a389-6d21f220d52c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:49:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "961" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2ds_v4\",\"tier\":\"GeneralPurpose\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":102400,\"storageIops\":0,\"backupRetentionDays\":12,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T20:49:33.3741322+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + } + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"unrulyCod3\",\r\n \"administratorLoginPassword\": \"TDZR?B!24$)i)@Bv\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "367" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2b4fec3c-ecbb-4d47-8a6a-7c0a188275da" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "03d28c5c-07c4-4562-9791-a93ae6b189e0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005048Z:03d28c5c-07c4-4562-9791-a93ae6b189e0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:50:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "814d79a5-40c9-410e-8298-effb3962bdfd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "7b236b49-028c-407e-b638-9acb2243c09a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005149Z:7b236b49-028c-407e-b638-9acb2243c09a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:51:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1805b859-f820-423e-9af6-9850400a7f0a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "23e5ae15-9312-4203-b6ef-135c5b0fccbd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005249Z:23e5ae15-9312-4203-b6ef-135c5b0fccbd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:52:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ef142442-5350-424c-b5e0-fd634813d2cf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "3eff9478-01f5-4a71-a166-30ec91ceeb85" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005349Z:3eff9478-01f5-4a71-a166-30ec91ceeb85" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:53:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "59819522-a46d-4a07-b9c5-72823843c325" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "4f72e26f-58b0-4c11-a482-bae98a8d21d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005449Z:4f72e26f-58b0-4c11-a482-bae98a8d21d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:54:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5eac551f-5468-443f-9207-789abb931870" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "c74a3838-bddc-4877-9011-9e82f1f5adb9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005549Z:c74a3838-bddc-4877-9011-9e82f1f5adb9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:55:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "79a98451-be3c-49bb-a69c-b525de8aec62" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "72dbd2ff-4349-4352-863b-b933ff335219" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005649Z:72dbd2ff-4349-4352-863b-b933ff335219" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:56:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5ce410ee-662a-45a5-aa77-bb1a8b125c66" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "e6f45f2f-e101-4dee-84ad-d013f5925935" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005749Z:e6f45f2f-e101-4dee-84ad-d013f5925935" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:57:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "75884ef9-0a2f-474d-b164-2640c0ea2d0e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "38871004-dba0-4f2e-92c2-96f3679070ea" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005849Z:38871004-dba0-4f2e-92c2-96f3679070ea" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:58:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ae4a00fd-4ea3-4d78-9c70-2b6d146ee9e4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "ac5c19f9-2c5c-4826-8626-50e4bc81e1e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T005950Z:ac5c19f9-2c5c-4826-8626-50e4bc81e1e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:59:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/80090f41-57e9-4f8c-8901-9978e0771356?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9b34a29e-9a3a-4627-9b17-01c5520cc569" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "276ab4d8-8d3b-4302-bf1f-861105732a61" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T010050Z:276ab4d8-8d3b-4302-bf1f-861105732a61" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:00:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"80090f41-57e9-4f8c-8901-9978e0771356\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T00:50:48.667Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "c9854e85-286f-44aa-9c9f-704cdccd19f1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4550e9b4-f201-47c3-9641-1697ea089a23" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "ae4b854a-3562-4cd9-86ac-0f36a46f19c5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T010050Z:ae4b854a-3562-4cd9-86ac-0f36a46f19c5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:00:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "951" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"unrulyCod3\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-25T01:00:50.2289336+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "2c333290-fd64-4763-bf24-953932afd5da" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "13f7efe9-a103-47f9-8915-a80c3b016b3e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "0ab85f24-e8fc-4be1-a5c6-4c8c68611455" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013055Z:0ab85f24-e8fc-4be1-a5c6-4c8c68611455" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:30:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "195" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"10.10.10.10\",\"endIpAddress\":\"10.10.10.12\"},\"name\":\"FirewallIPAddress_2020-11-24_17-00-51\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "336fe11d-7ce7-4e87-9fad-59029e5e21e7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "12b3c158-227b-43ad-99a0-ec7a179a7e6b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "b095e9b6-f870-4aa2-b763-e3389fbb5176" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013055Z:b095e9b6-f870-4aa2-b763-e3389fbb5176" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:30:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-25T01:30:55.407Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "336fe11d-7ce7-4e87-9fad-59029e5e21e7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5960cefc-0fb2-4b90-93ec-b87c882b9f52" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "734910f9-855c-45ba-bc57-7776a857f88b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013110Z:734910f9-855c-45ba-bc57-7776a857f88b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:31:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"12b3c158-227b-43ad-99a0-ec7a179a7e6b\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:30:55.407Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "336fe11d-7ce7-4e87-9fad-59029e5e21e7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d662d610-b200-4ea3-9254-a5fcd4253d84" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "8a583102-9b95-457d-be3c-f1d9214b1d7f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013125Z:8a583102-9b95-457d-be3c-f1d9214b1d7f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:31:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"12b3c158-227b-43ad-99a0-ec7a179a7e6b\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:30:55.407Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "336fe11d-7ce7-4e87-9fad-59029e5e21e7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6764f0ad-1ce8-44e5-9183-50b762a65799" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "b46ae9ea-84ff-4a47-83e7-5f02c7bd5a2f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013140Z:b46ae9ea-84ff-4a47-83e7-5f02c7bd5a2f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:31:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"12b3c158-227b-43ad-99a0-ec7a179a7e6b\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T01:30:55.407Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/12b3c158-227b-43ad-99a0-ec7a179a7e6b?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "336fe11d-7ce7-4e87-9fad-59029e5e21e7" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "20e36bf7-be22-40e0-af93-15d23b44f115" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "49f94cc7-8a4e-457f-add2-648505937faf" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013140Z:49f94cc7-8a4e-457f-add2-648505937faf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:31:40 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+19": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"prudentFalcon2\",\r\n \"administratorLoginPassword\": \"3DX)}@=}gTPzAur[\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "371" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8f9cabae-1ab3-4af7-9213-53fd4cb48691" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "61f9b87f-aa37-46c6-8bda-9151f2cab908" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013143Z:61f9b87f-aa37-46c6-8bda-9151f2cab908" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:31:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2de708aa-20fa-43bf-89dd-3a46a749b565" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "6b617d32-8a1a-4c72-b3b2-371a1abeafee" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013243Z:6b617d32-8a1a-4c72-b3b2-371a1abeafee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:32:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7cdb0726-2534-4c43-9e78-9504def965c3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "193a0776-4a9b-402b-997f-fc2f9a0211c6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013343Z:193a0776-4a9b-402b-997f-fc2f9a0211c6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:33:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "974223b5-33e2-471c-9311-6fef161cc7e4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "acb343b5-37fe-4fbf-ae49-69fa04f20eb3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013443Z:acb343b5-37fe-4fbf-ae49-69fa04f20eb3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:34:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "041b8766-bfaa-4394-9ecb-13b4bd8b7b15" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "91fa503a-6480-4ef4-9f31-3c313b2bdc83" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013543Z:91fa503a-6480-4ef4-9f31-3c313b2bdc83" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:35:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1601a2e4-1031-49a1-a527-65757e6272b9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "41d28567-0417-48a6-948b-32fb1a354f6f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013643Z:41d28567-0417-48a6-948b-32fb1a354f6f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:36:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c37befe0-2685-45a1-9d5f-e22d2d456b77" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "8c412c77-e428-4025-910a-cbc8aef569ee" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013744Z:8c412c77-e428-4025-910a-cbc8aef569ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:37:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e4efcac0-d973-4888-8c98-eee0a5097ecd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "2b6b36fa-7559-4e94-8f3f-3d1180448795" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013844Z:2b6b36fa-7559-4e94-8f3f-3d1180448795" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:38:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "63aeea31-a2d3-48b6-8c48-d184cb1ee661" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "c5cb880d-12f7-45b2-88b6-dc9af17e28de" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T013944Z:c5cb880d-12f7-45b2-88b6-dc9af17e28de" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:39:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+28": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cff485d5-cceb-4d0e-ad0d-f4ecabc6704c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "84ae0837-e869-4c0b-8e7d-da24927c858b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T014044Z:84ae0837-e869-4c0b-8e7d-da24927c858b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:40:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview+29": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "5551fb55-ef05-4d47-afd2-2e7da44abb78" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8a44d0d4-a692-470d-8570-4d01a90c09de" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "fb8c4b18-d5c9-4edf-bb2e-14c25eaf1c14" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T014144Z:fb8c4b18-d5c9-4edf-bb2e-14c25eaf1c14" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 01:41:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f9ba9ab9-cee3-4b95-ba21-40ec7e881e6c\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T01:31:43.143Z\"}" + } + } + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"admiredIbis0\",\r\n \"administratorLoginPassword\": \"[bn#ObA#)[8%14Bk\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "369" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "84bd855e-d2bd-4fbc-a8a9-3379b32fd4c7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "dca1ba68-e4e2-428a-9e60-d88190c428f6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T021627Z:dca1ba68-e4e2-428a-9e60-d88190c428f6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:16:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ec1366d4-e0bd-4af2-a875-87f578cd5692" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "780b1456-9edd-469f-9803-e86a7f3a5677" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T021727Z:780b1456-9edd-469f-9803-e86a7f3a5677" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:17:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "21b5b430-0f99-42f1-ae69-2333cca04cfe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "4804f65e-42b4-48e6-b74e-fa3867587dc0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T021827Z:4804f65e-42b4-48e6-b74e-fa3867587dc0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:18:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fab2b885-d5ec-4cb0-9448-c7aa34b35c8f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "ed6919de-8ad7-446e-80de-c5a90a4fcb3f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T021928Z:ed6919de-8ad7-446e-80de-c5a90a4fcb3f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:19:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e773b8de-9447-47bd-8658-58ba1eeab17f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "c5152314-7aac-4956-8017-7f0daecce839" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022028Z:c5152314-7aac-4956-8017-7f0daecce839" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:20:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bc5f084d-f621-42fb-8be1-ea8da5b481f6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "193c8fa6-d683-4880-a76e-6a2f1481a842" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022128Z:193c8fa6-d683-4880-a76e-6a2f1481a842" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:21:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "06a5bbff-0e32-4fba-a64b-be6ea97d32b3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "0cb1b205-4112-43c4-9c88-7c3e2d151efe" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022228Z:0cb1b205-4112-43c4-9c88-7c3e2d151efe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:22:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f20e33d7-6b27-4994-8b7b-e95e8eb81ecd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "16270d62-1967-4d95-8de1-c595f6225e30" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022328Z:16270d62-1967-4d95-8de1-c595f6225e30" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:23:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b63c3ed9-8f0a-4743-8e4d-bbfb1aaf4fd7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "490f59b7-f83f-4b5a-9cec-02b60accb347" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022428Z:490f59b7-f83f-4b5a-9cec-02b60accb347" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:24:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a021104f-f07e-45a2-b0c8-1f992c78aa9c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "81578b28-40fb-487b-a2c5-dca17bcf6db8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022530Z:81578b28-40fb-487b-a2c5-dca17bcf6db8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:25:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5fa9d139-8955-44b5-873a-7b748449200f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4a678963-cc5e-45cb-b398-4abdfce71b46" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "332d359a-9d82-4acd-bc90-3b8cd84b9119" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022630Z:332d359a-9d82-4acd-bc90-3b8cd84b9119" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:26:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5fa9d139-8955-44b5-873a-7b748449200f\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T02:16:27.353Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "fa7cc640-50ae-44ab-baeb-8929e4040e27" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fe33c218-c5f1-489c-93c0-744c42eb3d52" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "93cdf376-badc-4b4a-81de-b67f119065d7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022630Z:93cdf376-badc-4b4a-81de-b67f119065d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:26:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "953" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"admiredIbis0\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-25T02:26:30.6722645+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "f6288685-8af7-4e96-932a-e97faba6483a" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8a800232-8852-4172-bc35-fb1b6ea65ccc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "c24497dc-706c-46a4-88e4-8ae496b83577" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022732Z:c24497dc-706c-46a4-88e4-8ae496b83577" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:27:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "186" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"name\":\"AllowAll_2020-11-24_18-26-31\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "c9e48e1e-6a2a-4082-9d81-bdda3343281e" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "57019682-6b84-4873-b6bb-683d8efd6fa2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "48c00c84-1fd6-4ab3-b221-cd495af887e6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022732Z:48c00c84-1fd6-4ab3-b221-cd495af887e6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:27:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-25T02:27:32.333Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "c9e48e1e-6a2a-4082-9d81-bdda3343281e" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "97d3ca20-3efa-4f77-b87f-4bcabb15c4ba" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "41dacfd7-14e5-4bb6-9a3e-9326eac3c9df" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022747Z:41dacfd7-14e5-4bb6-9a3e-9326eac3c9df" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:27:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"57019682-6b84-4873-b6bb-683d8efd6fa2\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:27:32.333Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "c9e48e1e-6a2a-4082-9d81-bdda3343281e" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e89bb0ca-a96f-4387-9617-055e1cd1c026" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "6c9f1c83-c949-4de9-b701-b9c29f744007" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022802Z:6c9f1c83-c949-4de9-b701-b9c29f744007" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:28:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"57019682-6b84-4873-b6bb-683d8efd6fa2\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T02:27:32.333Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "c9e48e1e-6a2a-4082-9d81-bdda3343281e" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4bc8b95b-4f55-40f0-8046-587ea1fc9e55" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "facd44c4-bdda-45dc-b7e3-72e01bddc7b3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022817Z:facd44c4-bdda-45dc-b7e3-72e01bddc7b3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:28:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"57019682-6b84-4873-b6bb-683d8efd6fa2\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T02:27:32.333Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/57019682-6b84-4873-b6bb-683d8efd6fa2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "c9e48e1e-6a2a-4082-9d81-bdda3343281e" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "53c435bd-6720-489d-a0d3-951333ae44e2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "da3e1e84-5b6d-44c4-b21a-85f60e450fe5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T022817Z:da3e1e84-5b6d-44c4-b21a-85f60e450fe5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 02:28:17 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"levelMarten3\",\r\n \"administratorLoginPassword\": \"O%R?zF8)bup#+#yK\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "369" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4a717546-4e37-4284-94d7-fc1b625fcc2d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "52382742-d442-4131-8481-d740538b6cef" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T001820Z:52382742-d442-4131-8481-d740538b6cef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:18:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "17428779-4dc0-407a-9d29-40c6fbf82e22" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "9dbc8a5c-6f91-4d71-a3d8-b84d3034a3f0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T001920Z:9dbc8a5c-6f91-4d71-a3d8-b84d3034a3f0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:19:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a649aa51-6930-42c7-8297-064ee8ed9560" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "d0ddf21f-d498-45b3-88a8-3460cf3cab91" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002020Z:d0ddf21f-d498-45b3-88a8-3460cf3cab91" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:20:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "751f95ef-e090-46de-aee8-6224e5896afe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "6c128953-0fd1-46ce-8628-92374c1e46e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002120Z:6c128953-0fd1-46ce-8628-92374c1e46e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:21:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f9d10bfc-01c5-40fb-84ed-4ab3e612d191" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "7434055f-49e0-436b-9e97-da005e39940e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002220Z:7434055f-49e0-436b-9e97-da005e39940e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:22:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8335d5e1-bf53-4c68-a3db-3740ddb5228e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "354520f7-ea8c-4865-a042-bed488514301" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002320Z:354520f7-ea8c-4865-a042-bed488514301" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:23:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "20bee8a1-4842-42b5-ba0f-8cc05a20ab6b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "fc6dc0aa-e0d1-4a7b-a17d-8082718335b5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002421Z:fc6dc0aa-e0d1-4a7b-a17d-8082718335b5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:24:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "50a235d5-ad21-4ae8-b48b-0a1305930633" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "fceed390-46d5-455c-84a5-ea92e79ef680" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002521Z:fceed390-46d5-455c-84a5-ea92e79ef680" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:25:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "df4934e9-1891-4f32-8988-975d974952a0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "11528e4d-cf19-4728-bb3e-032caef18077" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002621Z:11528e4d-cf19-4728-bb3e-032caef18077" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:26:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7111695e-1926-46ca-afb2-3dcce9c9b703" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "27c22eb3-ece7-4ea3-bd71-e579064fefd0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002721Z:27c22eb3-ece7-4ea3-bd71-e579064fefd0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:27:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "672baea4-2315-44f1-92dc-3ecbba3bb4c6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "4a70bf88-dceb-4599-8c39-ae89df5ad38c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002821Z:4a70bf88-dceb-4599-8c39-ae89df5ad38c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:28:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3c1c9f7a-7cee-4d66-9a98-07450acb8175?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "968c6c7c-500c-49f6-83c6-7f7e8458e8dc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "c7e5795b-d607-45e8-bd7a-17f6ff516f4b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002921Z:c7e5795b-d607-45e8-bd7a-17f6ff516f4b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:29:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3c1c9f7a-7cee-4d66-9a98-07450acb8175\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T00:18:20.003Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "3aad3961-261e-4bcd-aa4d-25c6f424f9d9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "18e0ad9d-9232-42a4-8c5a-6b94426d6774" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "b19f9791-0655-4d9c-a762-b9b3f230f19c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T002922Z:b19f9791-0655-4d9c-a762-b9b3f230f19c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:29:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "953" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"levelMarten3\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-25T00:29:21.9353883+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2/firewallRules?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "2193e74f-13a9-4e9f-83be-ed6437790970" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cf599c66-ace0-4fc0-a8cc-bacc751884eb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "d90d1423-d7ec-411a-9176-fbbfa5fc6a9f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003023Z:d90d1423-d7ec-411a-9176-fbbfa5fc6a9f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:30:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.0\"},\"name\":\"AllowAllAzureServicesAndResourcesWithinAzureIps_2020-11-24_16-29-23\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "58316329-7ed6-4d49-bbbe-6afbcc2675aa" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8514fc11-8267-4e25-9a99-50fb7f112344" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "f5aa2b80-f1f1-42ef-8e21-e638aa4fe004" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003023Z:f5aa2b80-f1f1-42ef-8e21-e638aa4fe004" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:30:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-25T00:30:23.623Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "58316329-7ed6-4d49-bbbe-6afbcc2675aa" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "be89ef93-43ce-4a9d-a862-fadcd96cef6f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "220ca925-b82b-46a9-bf27-82f5fb0e69f5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003038Z:220ca925-b82b-46a9-bf27-82f5fb0e69f5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:30:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8514fc11-8267-4e25-9a99-50fb7f112344\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:30:23.623Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "58316329-7ed6-4d49-bbbe-6afbcc2675aa" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0c818c97-8d28-46ab-9344-2a7d78d1902c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "d386394d-4afb-49d4-b157-2d52654d2427" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003053Z:d386394d-4afb-49d4-b157-2d52654d2427" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:30:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8514fc11-8267-4e25-9a99-50fb7f112344\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:30:23.623Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "58316329-7ed6-4d49-bbbe-6afbcc2675aa" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d5c9c7dd-13e1-46bb-bb7f-d4357f2963fb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "40729346-f604-47f8-aa9f-8a7f62e87846" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003109Z:40729346-f604-47f8-aa9f-8a7f62e87846" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:31:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8514fc11-8267-4e25-9a99-50fb7f112344\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T00:30:23.623Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/8514fc11-8267-4e25-9a99-50fb7f112344?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "58316329-7ed6-4d49-bbbe-6afbcc2675aa" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d3ac6848-5813-42f0-b841-575d85a733c4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "3b87613c-bfb5-4b2c-a68d-966d27d6573f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003109Z:3b87613c-bfb5-4b2c-a68d-966d27d6573f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:31:08 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+20": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"shoddyAvocet4\",\r\n \"administratorLoginPassword\": \"f+Z}gp#F64?R)b!R\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "370" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9a394050-3eaa-42ea-a1cd-dbe4453aef00" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "4c9a3145-e671-4bca-847c-f02203b944b4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003111Z:4c9a3145-e671-4bca-847c-f02203b944b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:31:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3f4d1430-ce8a-4a03-8f88-95c0e1ba7166" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "6cb898f3-e80b-4353-9eb9-cc1e03a9a31f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003211Z:6cb898f3-e80b-4353-9eb9-cc1e03a9a31f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:32:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6886b31e-3090-43f2-9a1b-3536fc1fb301" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "c974a299-7b8e-4352-82c6-fd10e8fe196b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003311Z:c974a299-7b8e-4352-82c6-fd10e8fe196b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:33:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b865a5c4-cef6-4b1f-99a1-9a8f5b4bc92f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "6181c137-43ab-4a98-9d24-c226294352ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003411Z:6181c137-43ab-4a98-9d24-c226294352ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:34:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f4a4f1d3-4176-4235-a200-16b2e6bf3d5f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "29c38dbd-d654-46e9-b3a4-aceb4dcf32c6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003511Z:29c38dbd-d654-46e9-b3a4-aceb4dcf32c6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:35:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5e50a1ee-e84b-4bb6-9497-6dd3685a41bf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "5c18a365-6b72-4c53-9940-67eb49e1ea9b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003612Z:5c18a365-6b72-4c53-9940-67eb49e1ea9b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:36:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8d9a0d05-dda5-4631-9d2d-a74fe80827fa" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "53bba97a-1a5e-4e64-9f16-89fa3eb137ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003712Z:53bba97a-1a5e-4e64-9f16-89fa3eb137ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:37:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "112defe1-c3a7-4875-82dd-d461d0ab1a55" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "55a25d9d-e693-4c3e-b5b3-fa5fbae33780" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003812Z:55a25d9d-e693-4c3e-b5b3-fa5fbae33780" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:38:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+28": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3564f5d8-6223-480c-bde3-4d5c74958482" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "27a7879b-8c46-49d1-86d6-38b18092fc65" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T003912Z:27a7879b-8c46-49d1-86d6-38b18092fc65" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:39:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+29": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5b699d02-7c0f-4e4c-a5f4-6fdb2b0dd503" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "81b36634-5fff-47b2-9d92-ed0798275399" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T004012Z:81b36634-5fff-47b2-9d92-ed0798275399" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:40:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"InProgress\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview+30": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7fb0a393-8d53-4afa-9ac4-e8d598d153bd?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "115fd52e-d7ea-496f-aa36-e520a7a76888" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "d77e7379-a97c-4307-a8a9-cbbf23569810" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T004112Z:d77e7379-a97c-4307-a8a9-cbbf23569810" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 25 Nov 2020 00:41:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7fb0a393-8d53-4afa-9ac4-e8d598d153bd\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-25T00:31:11.233Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+PublicAccessScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+31": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "2edd9fab-6145-4042-932f-5b88b02ca379" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "3a2353de-34a8-4368-896e-ea1a664f41bf" ], + "x-ms-correlation-request-id": [ "3a2353de-34a8-4368-896e-ea1a664f41bf" ], + "x-ms-routing-request-id": [ "WESTUS2:20201125T004112Z:3a2353de-34a8-4368-896e-ea1a664f41bf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 25 Nov 2020 00:41:12 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ], + "Content-Length": [ "234" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.DBForMySql/flexibleServers/mysql-test-100-2\u0027 under resource group \u0027MySqlTest\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Remove-AzMySqlFlexibleServer.Recording.json index 0adb7870accd..6d8237f6b673 100644 --- a/src/MySql/test/Remove-AzMySqlFlexibleServer.Recording.json +++ b/src/MySql/test/Remove-AzMySqlFlexibleServer.Recording.json @@ -115,7 +115,7 @@ "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" } }, - "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+4": { + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { "Request": { "Method": "DELETE", "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", @@ -157,6 +157,166 @@ "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" } }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "16e8a091-be1f-465c-b0aa-93a0ba012d00" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065312Z:3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d556b7e-3b98-42e7-a094-37b3014fc819\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "16e8a091-be1f-465c-b0aa-93a0ba012d00" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065312Z:3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d556b7e-3b98-42e7-a094-37b3014fc819\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "16e8a091-be1f-465c-b0aa-93a0ba012d00" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065312Z:3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d556b7e-3b98-42e7-a094-37b3014fc819\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "16e8a091-be1f-465c-b0aa-93a0ba012d00" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065312Z:3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d556b7e-3b98-42e7-a094-37b3014fc819\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+5": { "Request": { "Method": "GET", diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Remove-AzMySqlFlexibleServer.Tests.ps1 index 82768ba68e0a..6d92832f4fe2 100644 --- a/src/MySql/test/Remove-AzMySqlFlexibleServer.Tests.ps1 +++ b/src/MySql/test/Remove-AzMySqlFlexibleServer.Tests.ps1 @@ -14,9 +14,11 @@ while(-not $mockingPath) { Describe 'Remove-AzMySqlFlexibleServer' { It 'Delete' { { - #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] - $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force - New-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName -AdministratorUserName mysql_test -AdministratorLoginPassword $password + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force + New-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -AdministratorUserName mysql_test -AdministratorLoginPassword $password + } Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 } | Should -Not -Throw } diff --git a/src/MySql/test/env.json b/src/MySql/test/env.json index 25af8d96732e..c1e9fc13eabd 100644 --- a/src/MySql/test/env.json +++ b/src/MySql/test/env.json @@ -1,17 +1,19 @@ { - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "firewallRuleName": "mysqlrule01", + "SubnetName": "mysql-test-subnet", + "FlexibleSku": "Standard_B1ms", + "serverName": "mysql-test-100", "resourceGroup": "MySqlTest", - "Sku": "GP_Gen5_4", - "firewallRuleName2": "mysqlrule02", "location": "westus2", + "firewallRuleName": "mysqlrule01", + "serverName3": "mysql-test-100-3", + "replicaName": "mysql-test-100-replica", + "serverName2": "mysql-test-100-2", + "restoreName2": "mysql-test-100-restore-2", "databaseName": "mysqldb", - "serverName": "mysql-test-100", - "FlexibleSku": "Standard_B1ms", "restoreName": "mysql-test-100-restore", - "replicaName": "mysql-test-100-replica", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "firewallRuleName2": "mysqlrule02", "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", - "restoreName2": "mysql-test-100-restore-2", - "serverName2": "mysql-test-100-2", + "Sku": "GP_Gen5_4", "VNetName": "mysqlvnet" } diff --git a/src/MySql/test/localEnv.json b/src/MySql/test/localEnv.json index 25af8d96732e..94edd10d3180 100644 --- a/src/MySql/test/localEnv.json +++ b/src/MySql/test/localEnv.json @@ -1,17 +1,17 @@ { - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "firewallRuleName": "mysqlrule01", - "resourceGroup": "MySqlTest", - "Sku": "GP_Gen5_4", - "firewallRuleName2": "mysqlrule02", - "location": "westus2", - "databaseName": "mysqldb", - "serverName": "mysql-test-100", "FlexibleSku": "Standard_B1ms", - "restoreName": "mysql-test-100-restore", + "firewallRuleName2": "mysqlrule02", + "restoreName2": "mysql-test-100-restore-2", "replicaName": "mysql-test-100-replica", + "serverName": "mysql-test-100", + "databaseName": "mysqldb", "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", - "restoreName2": "mysql-test-100-restore-2", + "restoreName": "mysql-test-100-restore", + "firewallRuleName": "mysqlrule01", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", "serverName2": "mysql-test-100-2", - "VNetName": "mysqlvnet" + "VNetName": "mysqlvnet", + "resourceGroup": "MySqlTest", + "location": "westus2", + "Sku": "GP_Gen5_4" } diff --git a/src/MySql/test/utils.ps1 b/src/MySql/test/utils.ps1 index ae4880390541..429202ecd567 100644 --- a/src/MySql/test/utils.ps1 +++ b/src/MySql/test/utils.ps1 @@ -14,6 +14,7 @@ function setupEnv() { $env.Tenant = (Get-AzContext).Tenant.Id # For any resources you created for test, you should add it to $env here. $env.Add("serverName2", "mysql-test-100-2") + $env.Add("serverName3", "mysql-test-100-3") $env.Add("restoreName", "mysql-test-100-restore") $env.Add("restoreName2", "mysql-test-100-restore-2") $env.Add("replicaName", "mysql-test-100-replica") @@ -21,6 +22,7 @@ function setupEnv() { $env.Add("firewallRuleName2", "mysqlrule02") $env.Add("databaseName", "mysqldb") $env.Add("VNetName", "mysqlvnet") + $env.Add("SubnetName", "mysql-test-subnet") # Create the test group write-host "start to create test group." @@ -41,6 +43,10 @@ function setupEnv() { $FlexibleSku = "Standard_B1ms" $env.Add("Sku", $Sku) $env.Add("FlexibleSku", $FlexibleSku) + # Create the test Vnet + write-host "Deploy Vnet template" + New-AzDeployment -Mode Incremental -TemplateFile .\test\deployment-templates\virtual-network\template.json -TemplateParameterFile .\test\deployment-templates\virtual-network\parameters.json -Name vn -ResourceGroupName $resourceGroup + write-host (Get-AzContext | Out-String) diff --git a/src/MySql/utils/adjectives.txt b/src/MySql/utils/adjectives.txt new file mode 100644 index 000000000000..cea08ef79731 --- /dev/null +++ b/src/MySql/utils/adjectives.txt @@ -0,0 +1,166 @@ +aboard +acidic +admired +adoring +ajar +alert +amazed +amused +angry +annoyed +anxious +aquatic +ardent +ashamed +awed +best +bored +bossy +bouncy +bright +broken +bubbly +calm +cocky +cold +common +content +cranky +crass +cruel +crushed +curious +curly +cynical +dim +direful +dopey +dreary +eager +earthy +eatable +elastic +elderly +empty +enraged +entire +envious +excited +exotic +famous +fearful +fixed +fluid +formal +free +giddy +gleeful +gloomy +goofy +gross +grouchy +guilty +harsh +hateful +hopeful +hostile +hurt +impish +insane +irate +jealous +joyful +junior +kind +last +lazy +lethal +level +liquid +longing +loving +lowly +loyal +macho +mad +male +measly +medical +mellow +merry +mild +misty +moral +morbid +muddled +near +needful +needy +next +noted +obvious +overt +panicky +pensive +picky +pitiful +playful +pleased +private +prize +proud +prudent +puffy +puzzled +rabid +remote +rigid +rowdy +rundown +sad +sane +scared +seemly +selfish +serene +shocked +shoddy +shy +sincere +sinful +smug +solemn +somber +sorry +sour +speedy +starchy +stark +stingy +supreme +swanky +tenuous +third +trusty +typical +uneven +unhappy +unlined +unruly +untrue +upset +valid +venal +verdant +vibrant +violent +vulgar +wacky +weary +weekly +wistful +wornout +worried +yawning +zesty +zippy diff --git a/src/MySql/utils/nouns.txt b/src/MySql/utils/nouns.txt new file mode 100644 index 000000000000..8ea70f70f7a5 --- /dev/null +++ b/src/MySql/utils/nouns.txt @@ -0,0 +1,138 @@ +abalone +apple +auk +avocet +baboon +badger +bagels +basmati +beaver +bittern +boars +bobcat +bongo +buffalo +bustard +cake +camel +caribou +cattle +caviar +cheese +cheetah +chile +chowder +clam +cobra +coconut +cod +colt +coot +cordial +coyote +dingo +donkey +dunbird +dunnock +eagle +eggs +eland +elk +falcon +ferret +fish +garlic +gelding +gerbil +giraffe +gnat +goose +goshawk +granola +grouse +gull +hamster +hare +hawk +hinds +hoopoe +hornet +hound +hyena +ibexe +ibis +iguana +jay +jerky +kapi +kitten +lapwing +lard +linnet +lion +lizard +llama +lollies +macaw +magpie +mare +marten +mole +moth +muesli +oatmeal +oil +opossum +orange +ostrich +owl +ox +oxbird +paella +parrot +peacock +pear +penguin +pepper +pie +plover +polenta +poultry +pudding +quiche +raccoon +raisins +redwing +relish +rice +robin +roedeer +ruffs +salami +salt +sausage +seafowl +shads +shrimp +smelt +snail +snipe +sparrow +stoat +stork +syrup +tacos +tamarin +termite +thrushe +tomatoe +toucan +truffle +turtle +venison +vulture +walrus +wasp +widgeon +wigeon +wildcat \ No newline at end of file