bland-minister-14373
08/30/2021, 9:53 AMGetRegistryCredentials
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?
``````gentle-restaurant-16139
08/30/2021, 3:59 PMconst 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 worksbland-minister-14373
09/07/2021, 6:43 AMgreen-intern-53931
12/23/2021, 2:43 PMconst 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!);