Skip to content

[MySQL] Quick Fix for MySQL flexible server provisioning failure and doc fix #15538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/MySql/Az.MySql.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 2/26/2021
# Generated on: 7/26/2021
#

@{
Expand Down Expand Up @@ -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 = ''
Expand Down Expand Up @@ -133,8 +133,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Added maintenance windows parameter to Update-AzMySqlFlexibleServer cmdlet
* Added zone parameter to server New-AzMySqlFlexibleServer cmdlet.'
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''
Expand Down
4 changes: 2 additions & 2 deletions src/MySql/Az.MySql.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
}

if(-not $accountsModule) {
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
} elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Write-Information "Loaded Module '$($accountsModule.Name)'"

Expand Down
2 changes: 2 additions & 0 deletions src/MySql/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Resolved Cx provisiong failure incident caused by backend server minimum storage change (10gb to 20gb)
* Fixed doc of `Update-AzMySqlFlexibleServerConfiguration` [#15516]

## Version 0.6.0
* Added maintenance windows parameter to Update-AzMySqlFlexibleServer cmdlet
Expand Down
102 changes: 72 additions & 30 deletions src/MySql/MySql.sln
Original file line number Diff line number Diff line change
@@ -1,48 +1,90 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{3942F83A-473B-47F8-BBE8-3558EA2136F2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.MySql", "Az.MySql.csproj", "{E9A81285-0025-487E-AAC7-15860C7F9E8B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MySql", "Az.MySql.csproj", "{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU
{E9A81285-0025-487E-AAC7-15860C7F9E8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E9A81285-0025-487E-AAC7-15860C7F9E8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E9A81285-0025-487E-AAC7-15860C7F9E8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E9A81285-0025-487E-AAC7-15860C7F9E8B}.Release|Any CPU.Build.0 = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030}
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Debug|x64.ActiveCfg = Debug|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Debug|x64.Build.0 = Debug|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Debug|x86.ActiveCfg = Debug|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Debug|x86.Build.0 = Debug|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Release|Any CPU.Build.0 = Release|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Release|x64.ActiveCfg = Release|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Release|x64.Build.0 = Release|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Release|x86.ActiveCfg = Release|Any CPU
{3942F83A-473B-47F8-BBE8-3558EA2136F2}.Release|x86.Build.0 = Release|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Debug|x64.ActiveCfg = Debug|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Debug|x64.Build.0 = Debug|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Debug|x86.ActiveCfg = Debug|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Debug|x86.Build.0 = Debug|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Release|Any CPU.Build.0 = Release|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Release|x64.ActiveCfg = Release|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Release|x64.Build.0 = Release|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Release|x86.ActiveCfg = Release|Any CPU
{C4BB8588-4061-482D-BE2F-5DF6CEE93D95}.Release|x86.Build.0 = Release|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Debug|x64.ActiveCfg = Debug|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Debug|x64.Build.0 = Debug|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Debug|x86.ActiveCfg = Debug|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Debug|x86.Build.0 = Debug|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Release|Any CPU.Build.0 = Release|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Release|x64.ActiveCfg = Release|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Release|x64.Build.0 = Release|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Release|x86.ActiveCfg = Release|Any CPU
{78EC7CDC-8585-481D-8C29-B2F0EC7C1BB8}.Release|x86.Build.0 = Release|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Debug|x64.ActiveCfg = Debug|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Debug|x64.Build.0 = Debug|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Debug|x86.ActiveCfg = Debug|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Debug|x86.Build.0 = Debug|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Release|Any CPU.Build.0 = Release|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Release|x64.ActiveCfg = Release|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Release|x64.Build.0 = Release|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Release|x86.ActiveCfg = Release|Any CPU
{5FA0698E-A451-4A24-8BD6-9EC8A77393AF}.Release|x86.Build.0 = Release|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Debug|x64.ActiveCfg = Debug|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Debug|x64.Build.0 = Debug|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Debug|x86.ActiveCfg = Debug|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Debug|x86.Build.0 = Debug|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Release|Any CPU.Build.0 = Release|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Release|x64.ActiveCfg = Release|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Release|x64.Build.0 = Release|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Release|x86.ActiveCfg = Release|Any CPU
{7FEA44F4-B7B1-49C1-8751-0995C1973BE2}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
7 changes: 7 additions & 0 deletions src/MySql/build-module.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ $moduleName = 'Az.MySql'
$examplesFolder = Join-Path $PSScriptRoot 'examples'
$null = New-Item -ItemType Directory -Force -Path $examplesFolder

Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
$modelCmdlets = @()
if ($modelCmdlets.Count -gt 0) {
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
CreateModelCmdlet($modelCmdlets)
}

if($NoDocs) {
Write-Host -ForegroundColor Green 'Creating exports...'
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
Expand Down
2 changes: 1 addition & 1 deletion src/MySql/check-dependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $tools = Join-Path $PSScriptRoot 'tools'
$resourceDir = Join-Path $tools 'Resources'
$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'

if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) {
if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
Write-Host -ForegroundColor Green "Building local Resource module used for test..."
Set-Location $resourceDir
$null = autorest .\readme.md --use:@autorest/[email protected] --output-folder=$HOME/.PSSharedModules/Resources
Expand Down
Loading