This message was deleted.
# azure
s
This message was deleted.
c
@tall-librarian-49374 maybe you’ll have an idea, maybe something in the api translation is wrong
t
I have no idea but the error suggests you shouldn’t specify passwords and they will be auto-generated?
c
they are not generated, even if I generate them externally they are deleted if I run the stack again
the az cli generates them properly when a new token is created
Even if it did work, how pulumi will preserve the initial password value, will it be saved in the stack permanently?
t
If it’s returned, it will be saved in the resource outputs
Do you know what exactly the CLI does?
c
The CLI is doing two requests, one to create the token object and another one to generate the credentials
t
So, you likely need to do the same (one resource and one extra request)
c
The thing is the go SDK doesn’t have an api for that (probably because it’s in preview), I can do the HTTP request myself but I was hoping pulumi would be able to simplify things for me
t
It’s not about preview… generateCredentials is a POST request, we don’t map POSTs to resources (because there’s no get/update/delete for them): https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerr[…]ainerRegistry/preview/2020-11-01-preview/containerregistry.json