Hey guys! I have a problem with provisioning ACR, ...
# general
Hey guys! I have a problem with provisioning ACR, with azure.native package from pulumi. with the classic package there were two output properties for the username and password of the container registry, in the new version it seems that it is moved to
https://www.pulumi.com/docs/reference/pkg/azure-native/containerregistry/getregistrycredentials/, but the problem is that it provides only strings and not outputs, and when I try to make them as an output of the stack I get an error indicating the value was not an output, any workarounds? ``````
Hi, I'm doing something like that
Copy code
const registryCreds = pulumi.all([registry.name, resourceGroup.name]).apply(([registryName, rgName]) => {
    return getRegistryCredentials({
        resourceGroupName: rgName,
        registryName: registryName,

export const username = registryCreds.username;
export const password = registryCreds.password;
It's a bit ugly, but works
🙌 1
Thanks, I'll try it 👍
This worked for me https://github.com/pulumi/examples/blob/master/azure-ts-appservice-docker/index.ts
Copy code
const credentials = containerregistry.listRegistryCredentialsOutput({
    resourceGroupName: resourceGroup.name,
    registryName: registry.name,

const adminUsername = credentials.apply(credentials => credentials.username!);
const adminPassword = credentials.apply(credentials => credentials.passwords![0].value!);