ancient-solstice-53934
09/26/2022, 7:42 PMvar containerApp= new ContainerApp(appName, new ContainerAppArgs
{
Configuration = new ConfigurationArgs
{
Dapr = new DaprArgs
{
AppPort = 80,
AppProtocol = "http",
Enabled = true,
},
Ingress = new IngressArgs
{
External = false,
TargetPort = 80
},
Secrets = new InputList<SecretArgs>
{
new SecretArgs { Name = "registry-password", Value = "testpassword"}
},
Registries = new InputList<RegistryCredentialsArgs> // From other subscription
{
new RegistryCredentialsArgs
{
Server ="<http://testacr.azurecr.io|testacr.azurecr.io>",
Username = "testacr",
PasswordSecretRef = "registry-password"
}
}
}
}
but get ERROR: The resource with name 'testacr' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'sub2'.
In workaround I have tried following CLI command to add registry from other subscription to container app and it works
az containerapp registry set -n MyContainerapp -g MyResourceGroup
--server MyExistingContainerappRegistry.azurecr.io --username MyRegistryUsername --password MyRegistryPassword
Do we have any similar workaround in Pulumi?echoing-dinner-19531
09/26/2022, 7:45 PMbored-airplane-19518
09/27/2022, 1:43 PM