Container app environment "couldn't be found" when running "func azurecontainerapps deploy"

QA testing team 50 Reputation points
2023-12-02T08:41:19.9466667+00:00

Hi,

I'm trying to create an Azure function that runs in a docker image

I've created an Azure function app, pushed my image to my own container registry, created a local project using Azure core tools and I'm trying to run the command

func azurecontainerapps deploy --name “<name of container app>” --environment “<name of container app environment>” --storage-account “<storage account connection string>” --resource-group <my resource group> --image-name <my image name>

I followed all the steps here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=macos%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps&pivots=programming-language-python

And when I run the above command, after selecting Python in the interactive prompt I get the output": The environment "<name of my container app env>" couldn't be found.

Select a number for worker runtime:
1. dotnet
2. dotnet (isolated process)
3. node
4. python
5. powershell
6. custom
Choose option: 4
The environment "<name of container app environment>" couldn't be found.

I checked and all the resources from my command exist and the names are correct.

What am I missing ?

Thanks

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,625 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
338 questions
{count} vote