This message was deleted.
# general
s
This message was deleted.
g
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
b
Thanks, I'll try it 👍
g
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!);