-
Notifications
You must be signed in to change notification settings - Fork 37
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
Postgresql flexible database username/password and AD auth #3869
Comments
Hi @ruben-janssens, according to the docs none of the two properties is required. Are you seeing an error that they are required when you remove them, or only the problem that Pulumi wants to replace the server? If the latter, you have two options:
|
Hi @thomas11, the docs state that the username and password are required for creation (Not with an |
Hi @ruben-janssens, I'm not sure it's possible to create a Server without username and password, even when AD is enabled. The official example in the Azure API spec still specifies username and password. |
I have attempted to create a server in the Azure portal, giving in all the parameters (excluding an username and password and setting an Entra administrator) and then letting it generate a template. In the template they use |
It could be that the docs saying that password is required are wrong. We take them directly from the Azure spec, so the problem would be upstream. You could try leaving out the password to create a server. |
What happened?
We started our databases with username/password because the application did not yet support AD auth. Now the applications are ready to use and are already using AD auth. We would like to disable username/password auth but cannot do this because the fields
administrator_login
andadministrator_login_password
are required and force a replace of the resource.Should the admin username and password not only be required when
password_auth
is enabled and changing these values whenpassword_auth
is disabled should not trigger a replacement.I don't mind multiple steps like first disabling username/password and then removing the username and password but it should be possible.
Example
Change to vvvv
Output of
pulumi about
CLI
Version 3.139.0
Go Version go1.23.3
Go Compiler gc
Host
OS ubuntu
Version 24.04
Arch x86_64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: