Skip to content
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

Azure Database for PostgreSQL Flexible Server - Allow enabling PostgreSQL authentication for existing servers #29346

Open
danvalero opened this issue Jul 9, 2024 · 3 comments
Assignees
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. PostgreSQL Service Attention This issue is responsible by Azure service team.

Comments

@danvalero
Copy link

Related command

az postgres flexible-server update

Is your feature request related to a problem? Please describe.
It is not possible to enable PostgreSQL Authentication using az postgres flexible-server update
PostgreSQL Authentication can only be enabled using CLI on creation time.

If "az postgres flexible-server update --password-auth Enabled" is used, no option to set the username and password, and get 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.

I need to use the portal to make then change (not programmatically) or "az rest" which adds complexity

Describe the solution you'd like

I want to be able to enable PostgreSQL authentication suing CLi in a simple way using "az postgres flexible-server update" by adding parameter [--admin-user] and use in conjunction with [--admin-password]

Describe alternatives you've considered
N/A

Additional context

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Service Attention This issue is responsible by Azure service team. labels Jul 9, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 9, 2024

Thank you for opening this issue, we will look into it.

@danvalero
Copy link
Author

danvalero commented Jul 9, 2024

Hi @yonzhan
FYI. I am a MSFT. Technical Advisor for the Microsoft CSS Azure Database for PostgreSQL support team. I am opening this request on behalf of a customer that had issued to do it himself.

@nachoalonsoportillo
Copy link
Contributor

@danvalero Thanks for creating this issue. I've triaged it already and created a backlog item to support that scenario in a future version of Azure CLI. While we fix this, users will have to continue using the az rest alternative as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. PostgreSQL Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants