rough-helicopter-14190
05/25/2022, 3:39 PMpulumi up
. See code snippet below. Any help is greatly appreciated! 🎉
from pulumi_azure_native import web
container_app = web.ContainerApp("containerApp",
configuration=web.ConfigurationArgs(
ingress=web.IngressArgs(
external=True,
target_port=3000,
),
),
kind="containerApp",
kube_environment_id=managed_environment.id,
location="East US",
name="supacoda",
resource_group_name=resource_group.name,
template=web.TemplateArgs(
containers=[web.ContainerArgs(
image=f"{os.getenv('DOCKERHUB_USERNAME')}/image:latest",
name="supacoda",
)],
scale=web.ScaleArgs(
max_replicas=5,
min_replicas=1,
rules=[web.ScaleRuleArgs(
custom=web.CustomScaleRuleArgs(
metadata={
"concurrentRequests": "50",
},
type="http",
),
name="httpscalingrule",
)],
),
))
I get the following error even after following azure instructions here to enable the extension and register resources.
• I have looked everywhere and cannot find how to enable this api for the pulumi process.
• Running via the AZ CLI works
• By the way container apps is in preview but this feels more like an issue downstream with pulumi since I can set up container apps just fine via the CLI.
Diagnostics:
azure-native:web:ContainerApp (containerApp):
error: Code="NotFound" Message="ContainerApps APIs are not enabled." Details=[{"Message":"ContainerApps APIs are not enabled."},{"Code":"NotFound"},{"ErrorEntity":{"Code":"NotFound","ExtendedCode":"67003","Message":"ContainerApps APIs are not enabled.","MessageTemplate":"ContainerApps APIs are not enabled.","Parameters":[]}}]
tall-librarian-49374
05/25/2022, 3:58 PMweb.ContainerApp
is deprecated in favor of app.ContainerApp
https://www.pulumi.com/registry/packages/azure-native/api-docs/app/containerapp/rough-helicopter-14190
05/25/2022, 4:13 PMhappy-parrot-60128
05/25/2022, 4:16 PMrough-helicopter-14190
05/25/2022, 6:23 PM