Skip to content

Commit 16af13c

Browse files
authored
Update Azure Pipelines task instructions
1 parent 2e392ad commit 16af13c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/container-apps/azure-pipelines.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 attempts to authenticate with the registry using the service connection. If the service connection's identity is assigned the `AcrPush` role for the registry, supply the credentials using `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)'

0 commit comments

Comments
 (0)