Skip to content

Commit 6c9fca7

Browse files
Merge pull request #249715 from anthonychu/patch-21
[Container Apps] Update Azure Pipelines task instructions
2 parents 1b1748d + 549f2c3 commit 6c9fca7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

articles/container-apps/azure-pipelines.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The task supports the following scenarios:
2424
* Build from source code without a Dockerfile and deploy to Container Apps. Supported languages include .NET, Node.js, PHP, Python, and Ruby
2525
* Deploy an existing container image to Container Apps
2626

27-
With the production release this task comes with Azure DevOps and no longer requires explicit installation. For the complete documentation please see [AzureContainerApps@1 - Azure Container Apps Deploy v1 task](https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/azure-container-apps-v1).
27+
With the production release this task comes with Azure DevOps and no longer requires explicit installation. For the complete documentation please see [AzureContainerApps@1 - Azure Container Apps Deploy v1 task](/azure/devops/pipelines/tasks/reference/azure-container-apps-v1).
2828

2929
### Usage examples
3030

@@ -49,14 +49,13 @@ The task uses the Dockerfile in `appSourcePath` to build the container image. If
4949

5050
#### Deploy an existing container image to Container Apps
5151

52-
The following snippet shows how to deploy an existing container image to Container Apps. Note, that we're deploying a publicly available image and won't need any registry authentication as a result.
52+
The following snippet shows how to deploy an existing container image to Container Apps. The task authenticates with the registry using the service connection. If the service connection's identity isn't assigned the `AcrPush` role for the registry, supply the registry's admin credentials using the `acrUsername` and `acrPassword` input parameters.
5353

5454
```yaml
5555
steps:
5656
- task: AzureContainerApps@1
5757
inputs:
5858
azureSubscription: 'my-subscription-service-connection'
59-
imageToDeploy : 'mcr.microsoft.com/azuredocs/containerapps-helloworld:latest'
6059
containerAppName: 'my-container-app'
6160
resourceGroup: 'my-container-app-rg'
6261
imageToDeploy: 'myregistry.azurecr.io/my-container-app:$(Build.BuildId)'
@@ -69,7 +68,7 @@ steps:
6968

7069
The Azure Container Apps task needs to authenticate with your Azure Container Registry to push the container image. The container app also needs to authenticate with your Azure Container Registry to pull the container image.
7170

72-
To push images, the task automatically authenticates with the container registry specified in `acrName` using the service connection provided in `azureSubscription`.
71+
To push images, the task automatically authenticates with the container registry specified in `acrName` using the service connection provided in `azureSubscription`. If the service connection's identity isn't assigned the `AcrPush` role for the registry, supply the registry's admin credentials using `acrUsername` and `acrPassword`.
7372

7473
To pull images, Azure Container Apps uses either managed identity (recommended) or admin credentials to authenticate with the Azure Container Registry. To use managed identity, the target container app for the task must be [configured to use managed identity](managed-identity-image-pull.md). To authenticate with the registry's admin credentials, set the task's `acrUsername` and `acrPassword` inputs.
7574

0 commit comments

Comments
 (0)