-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{RDBMS} az postgres flexible-server update
: Fix bug not able to enable password authentication during update
#30200
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
️✔️AzureCLI-FullTest
|
azure-client-tools-bot-prd
bot
added this to the November 2024 (2024-11-19)❗ Breaking change release ❗ milestone
Oct 28, 2024
Hi @nasc17, |
️✔️AzureCLI-BreakingChangeTest
|
nasc17
modified the milestones:
November 2024 (2024-11-19)❗ Breaking change release ❗,
October 2024 (2024-11-11)
Oct 28, 2024
Thank you for your contribution! We will review the pull request and get back to you soon. |
microsoft-github-policy-service
bot
requested review from
yonzhan,
wangzelin007 and
jiasli
October 28, 2024 00:47
/azp run |
mattboentoro
approved these changes
Oct 28, 2024
evelyn-ys
previously approved these changes
Oct 29, 2024
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Pls fix these style issues:
|
evelyn-ys
previously approved these changes
Oct 29, 2024
evelyn-ys
approved these changes
Oct 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related command
az postgres flexible-server update
Description
If you create a server with password authentication disabled and AAD enabled:
az postgres flexible-server create --resource-group rg-test --name testpostgresqlserver --password-auth Disabled --active-directory-auth Enabled --location eastus --version 16 --high-availability Disabled --tier GeneralPurpose --public-access Enabled
And then try to enable it using the update command:
_az postgres flexible-server update --resource-group rg-test --name testpostgresqlserver --password-auth Enabled
It fails with this error:
(EngineCredentialsNotProvided) The admin credentials are required for creating admin role while enabling Password Authentication and must be provided.
Code: EngineCredentialsNotProvided
Message: The admin credentials are required for creating admin role while enabling Password Authentication and must be provided.
Fix:
Allow "--password-auth Enabled" to work during update. Generate password for user if "--admin-login-password" parameter was not passed in. Also generate username.
Testing Guide
az postgres flexible-server update --resource-group rg --name test-1027-721 --password-auth Enabled
Make a note of password "LSssssssssssssssseeee". You can reset your password with "az postgres flexible-server update -n test-1027-721 -g rg -p ".
{
"administratorLogin": "gleefuloil1",
"administratorLoginPassword": null,
"authConfig": {
"activeDirectoryAuth": "Enabled",
"passwordAuth": "Enabled",
"tenantId": "xxxxxxxxxxxxxxxxxxxxxxxx"
}
History Notes
{RDBMS}
az postgres flexible-server update
: Fix bug not able to enable password authentication during update