I didn't create the password that way, I created it using the Random provider and then pass that in
l
limited-mouse-98047
07/16/2021, 4:30 PM
As in passed that into the ServicePrincipalPassword provider? I saw that method being deprecated:
Copy code
* @deprecated In version 2.0 of the AzureAD provider, this attribute will become read-only as it will no longer be possible to specify a password value. It will be generated by Azure Active Directory and persisted to state for reuse in your Terraform configuration.
r
rough-helicopter-14190
10/02/2021, 1:31 AM
@limited-mouse-98047 did you ever track this down? I’m running into the same issue. I’m not sure what the alternative to the password is.
l
limited-mouse-98047
10/05/2021, 5:13 PM
@rough-helicopter-14190 Last I checked the ServicePrincipalPassword provider was the only way to generate passwords. As of some time ago, I didn't come across any password errors, but that could be just luck and us spinning up fewer azure clusters atm.
One trick that might work, as I think about it, is to wrap the generation of that password in a loop that checks for characters that will make ManagedCluster choke.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.