Skip to content

Commit 147bf70

Browse files
anthonychucebundy
andauthored
Apply suggestions from code review
Co-authored-by: Catherine Bundy <[email protected]>
1 parent 56c1fa8 commit 147bf70

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

articles/container-apps/azure-pipelines.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ You take the following steps to configure an Azure DevOps pipeline to deploy to
8787
| Azure Devops project | Go to [Azure DevOps](https://azure.microsoft.com/services/devops/) and select *Start free*. Then create a new project. |
8888
| Azure CLI | Install the [Azure CLI](/cli/azure/install-azure-cli).|
8989

90-
### Create Azure resources and configure managed identity
90+
### Create an Azure DevOps repository and clone the source code
9191

92-
Before creating a pipeline, the source code for your app must be in a repository. You also need to create a container app with managed identity enabled and ensure the identity has permissions to pull images from your Azure Container Registry.
92+
Before creating a pipeline, the source code for your app must be in a repository.
9393

9494
1. Log in to [Azure DevOps](https://dev.azure.com/) and navigate to your project.
9595

@@ -114,6 +114,13 @@ Before creating a pipeline, the source code for your app must be in a repository
114114
```
115115

116116
Replace `<REPOSITORY_URL>` with the URL you copied.
117+
118+
### Create a container app and configure managed identity
119+
120+
Create your container app using the `az containerapp up` command in the following steps. This command will build the container image, create an Azure Container Registry, and store the image in the registry.
121+
122+
After your app is created, you can add a managed identity to your app and assign the identity the `AcrPull` role to allow the identity to pull images from the registry.
123+
117124
[!INCLUDE [container-apps-github-devops-setup.md](../../includes/container-apps-github-devops-setup.md)]
118125

119126
### Install the Azure Container Apps task

articles/container-apps/github-actions.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ You take the following steps to configure a GitHub Actions workflow to deploy to
102102
| GitHub Account | Sign up for [free](https://github.com/join). |
103103
| Azure CLI | Install the [Azure CLI](/cli/azure/install-azure-cli).|
104104

105-
### Create Azure resources and configure managed identity
105+
### Create a GitHub repository and clone source code
106106

107-
Before creating a workflow, the source code for your app must be in a GitHub repository. You also need to create a container app with managed identity enabled and ensure the identity has permissions to pull images from your Azure Container Registry.
107+
Before creating a workflow, the source code for your app must be in a GitHub repository.
108108

109109
1. Log in to Azure with the Azure CLI.
110110

@@ -128,6 +128,13 @@ Before creating a workflow, the source code for your app must be in a GitHub rep
128128
```bash
129129
git clone https://github.com/<YOUR_GITHUB_ACCOUNT_NAME>/my-container-app.git
130130
```
131+
132+
### Create a container app with managed identity enabled
133+
134+
Create your container app using the `az containerapp up` command in the following steps. This command will build the container image, create an Azure Container Registry, and store the image in the registry.
135+
136+
After you create your app, you can add a managed identity to the app and assign the identity the `AcrPull` role to allow the identity to pull images from the registry.
137+
131138
[!INCLUDE [container-apps-github-devops-setup.md](../../includes/container-apps-github-devops-setup.md)]
132139

133140
### Configure secrets in your GitHub repository

0 commit comments

Comments
 (0)