Azure / Azure/container-apps-deploy-pipelines-task

Azure Container app deploy container to existing app not working

Open
#32 1 comment 0 reactions 1 assignee Claimed by @cormacpayne View on GitHub
Dominant language
TypeScript
Stars
6
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hi

I am trying to use AzureContainerApps task as mentioned on https://learn.microsoft.com/en-us/azure/container-apps/azure-pipelines to deploy a new container image in the existing container app. But got the error "Error: Unable to create Container App Environment."

We are using a self-hosted Linux agent. Below is YAML

```
steps:
- task: AzureContainerApps@0
displayName: 'Azure Container Apps Deploy'
inputs:
azureSubscription: 'OUR_SUBSCRIPTION'
imageToDeploy: 'XXX.azurecr.io/rlb-pulse-api/:$(Build.BuildId)'
containerAppName: 'conatainer_app_name'
resourceGroup: 'resource_group_name'
disableTelemetry: false

```

We are not creating a new environment, not sure why this task tries to create an environment. However, as per the logs it seems that it it getting wrong location of the resource group. Our current resource group is in Australiaeast instead of westus.

```
2023-05-26T06:52:28.7898458Z [command]/usr/bin/az provider show -n Microsoft.App --query resourceTypes[?resourceType=='containerApps'].locations[] | [0]
2023-05-26T06:52:29.3898822Z "West US 2"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.