Skip to content

Commit 6a91289

Browse files
committed
more string templates
1 parent 35e79c1 commit 6a91289

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

articles/container-apps/javascript-overview.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The following example shows you how to create variables for your application.
2828
# .env
2929
NODE_ENV=production
3030
PORT=3000
31-
AZURE_COSMOS_DB_ENDPOINT=https://your-cosmos-db.documents.azure.com:443/
31+
AZURE_COSMOS_DB_ENDPOINT=https://<YOUR_COSMOSDB_RESOURCE_NAME>.documents.azure.com:443/
3232
```
3333

3434
### Containers
@@ -165,7 +165,12 @@ The entrypoint script allows you to connect to your container app for [remote de
165165
To run a container from the built production image with custom environment variables, run:
166166

167167
```bash
168-
docker run -e PORT=4000 -e ENABLE_DEBUG=true -p 4000:4000 -p 9229:9229 my-production-image:latest
168+
docker run \
169+
--env PORT=4000 \
170+
--env ENABLE_DEBUG=true \
171+
--publish 4000:4000 \
172+
--publish 9229:9229
173+
<IMAGE_NAME>:latest
169174
```
170175

171176
For production builds, make sure you use the correct version tag, which may not be `latest`. Container image tagging conventions such as the use of `latest` are a convention. Learn more about [recommendations for tagging and versioning container images](/azure/container-registry/container-registry-image-tag-version).
@@ -222,10 +227,12 @@ When using Docker Registry, sign into your registry then push your Docker images
222227
223228
```bash
224229
# Tag the image
225-
docker tag my-app:latest myregistry.azurecr.io/my-app:latest
230+
docker tag \
231+
<IMAGE>:<TAG> \
232+
<AZURE_REGISTRY>.azurecr.io/<IMAGE>:<TAG>
226233

227234
# Push the image
228-
docker push myregistry.azurecr.io/my-app:latest
235+
docker push <AZURE_REGISTRY>.azurecr.io/<IMAGE>:<TAG>
229236
```
230237

231238
## Cold starts
@@ -249,8 +256,8 @@ Before running this command, make sure to replace the placeholders surrounded by
249256
```azurecli
250257
az keyvault secret set \
251258
--vault-name <KEY_VAULT_APP> \
252-
--name "CosmosDBConnectionString" \
253-
--value "<YOUR_CONNECTION_STRING>"
259+
--name "<SECRET_NAME>" \
260+
--value "<CONNECTION_STRING>"
254261
```
255262

256263
### HTTPS and certificates
@@ -464,7 +471,7 @@ Before running this command, make sure to replace the placeholders surrounded by
464471
```azurecli
465472
az monitor metrics alert create \
466473
--name "HighCPUUsage" \
467-
--resource-group my-resource-group \
474+
--resource-group <RESOURCE_GROUP> \
468475
--scopes /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.ContainerInstance/containerGroups/<CONTAINER_GROUP> \
469476
--condition "avg Percentage CPU > 80" \
470477
--description "Alert when CPU usage is above 80%"

0 commit comments

Comments
 (0)