Skip to content

Commit 709c5ce

Browse files
Merge pull request #241795 from anthonychu/20230616-add-notes
[Container Apps] Address Twitter feedback on GitHub and Azure Pipelines agents
2 parents 5a4d2b4 + 174239f commit 709c5ce

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

articles/container-apps/tutorial-ci-cd-runners-jobs.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ Refer to [jobs preview limitations](jobs.md#jobs-preview-restrictions) for a lis
179179

180180
The Azure Container Apps environment acts as a secure boundary around container apps and jobs so they can share the same network and communicate with each other.
181181

182+
> [!NOTE]
183+
> To create a Container Apps environment that's integrated with an existing virtual network, see [Provide a virtual network to an internal Azure Container Apps environment](vnet-custom-internal.md?tabs=bash).
184+
182185
1. Create a resource group using the following command.
183186
184187
# [Bash](#tab/bash)
@@ -680,7 +683,9 @@ To create a self-hosted agent, you need to build a container image that runs the
680683
681684
## Create a placeholder self-hosted agent
682685
683-
Before you can run a self-hosted agent in your new agent pool, you need to create a placeholder agent. Pipelines that use the agent pool fail when there's no placeholder agent. You can create a placeholder agent by running a job that registers an offline placeholder agent.
686+
Before you can run a self-hosted agent in your new agent pool, you need to create a placeholder agent. The placeholder agent ensures the agent pool is available. Pipelines that use the agent pool fail when there's no placeholder agent.
687+
688+
You can run a manual job to register an offline placeholder agent. The job runs once and can be deleted. The placeholder agent doesn't consume any resources in Azure Container Apps or Azure DevOps.
684689
685690
1. Create a manual job in the Container Apps environment that creates the placeholder agent.
686691
@@ -772,7 +777,21 @@ Before you can run a self-hosted agent in your new agent pool, you need to creat
772777
773778
1. In Azure DevOps, navigate to your project.
774779
1. Select **Project settings** > **Agent pools** > **container-apps** > **Agents**.
775-
1. Confirm that a placeholder agent named `placeholder-agent` is listed.
780+
1. Confirm that a placeholder agent named `placeholder-agent` is listed and its status is offline.
781+
782+
1. The job isn't needed again. You can delete it.
783+
784+
# [Bash](#tab/bash)
785+
```bash
786+
az containerapp job delete -n "$PLACEHOLDER_JOB_NAME" -g "$RESOURCE_GROUP"
787+
```
788+
789+
# [PowerShell](#tab/powershell)
790+
```powershell
791+
az containerapp job delete -n "$PLACEHOLDER_JOB_NAME" -g "$RESOURCE_GROUP"
792+
```
793+
794+
---
776795
777796
## Create a self-hosted agent as an event-driven job
778797

0 commit comments

Comments
 (0)