Skip to content

Commit 9b9a660

Browse files
Merge pull request #236741 from msaenzbosupport/patch-25
[Doc-A-thon] Updating code block
2 parents 0b51cd9 + 909de1b commit 9b9a660

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/container-apps/tutorial-java-quarkus-connect-managed-identity-postgresql-database.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ Create a resource group with the [az group create](/cli/azure/group#az-group-cre
4242

4343
The following example creates a resource group named `myResourceGroup` in the East US Azure region.
4444

45-
```azurecli
45+
```azurecli-interactive
4646
az group create --name myResourceGroup --location eastus
4747
```
4848

4949
Create an Azure container registry instance using the [az acr create](/cli/azure/acr#az-acr-create) command. The registry name must be unique within Azure, contain 5-50 alphanumeric characters. All letters must be specified in lower case. In the following example, `mycontainerregistry007` is used. Update this to a unique value.
5050

51-
```azurecli
51+
```azurecli-interactive
5252
az acr create \
5353
--resource-group myResourceGroup \
5454
--name mycontainerregistry007 \
@@ -61,7 +61,7 @@ This tutorial uses a sample Fruits list app with a web UI that calls a Quarkus R
6161

6262
Run the following commands in your terminal to clone the sample repo and set up the sample app environment.
6363

64-
```bash
64+
```git
6565
git clone https://github.com/quarkusio/quarkus-quickstarts
6666
cd quarkus-quickstarts/hibernate-orm-panache-quickstart
6767
```
@@ -221,7 +221,7 @@ cd quarkus-quickstarts/hibernate-orm-panache-quickstart
221221

222222
Before pushing container images, you must log in to the registry. To do so, use the [az acr login][az-acr-login] command. Specify only the registry resource name when signing in with the Azure CLI. Don't use the fully qualified login server name.
223223

224-
```azurecli
224+
```azurecli-interactive
225225
az acr login --name <registry-name>
226226
```
227227

@@ -239,7 +239,7 @@ cd quarkus-quickstarts/hibernate-orm-panache-quickstart
239239

240240
1. Create a Container Apps instance by running the following command. Make sure you replace the value of the environment variables with the actual name and location you want to use.
241241

242-
```azurecli
242+
```azurecli-interactive
243243
RESOURCE_GROUP="myResourceGroup"
244244
LOCATION="eastus"
245245
CONTAINERAPPS_ENVIRONMENT="my-environment"
@@ -252,7 +252,7 @@ cd quarkus-quickstarts/hibernate-orm-panache-quickstart
252252

253253
1. Create a container app with your app image by running the following command. Replace the placeholders with your values. To find the container registry admin account details, see [Authenticate with an Azure container registry](../container-registry/container-registry-authentication.md)
254254

255-
```azurecli
255+
```azurecli-interactive
256256
CONTAINER_IMAGE_NAME=quarkus-postgres-passwordless-app:v1
257257
REGISTRY_SERVER=mycontainerregistry007
258258
REGISTRY_USERNAME=<REGISTRY_USERNAME>
@@ -276,7 +276,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
276276

277277
### [Flexible Server](#tab/flexible)
278278

279-
```azurecli
279+
```azurecli-interactive
280280
DB_SERVER_NAME='msdocs-quarkus-postgres-webapp-db'
281281
ADMIN_USERNAME='demoadmin'
282282
ADMIN_PASSWORD='<admin-password>'
@@ -292,7 +292,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
292292

293293
### [Single Server](#tab/single)
294294

295-
```azurecli
295+
```azurecli-interactive
296296
DB_SERVER_NAME='msdocs-quarkus-postgres-webapp-db'
297297
ADMIN_USERNAME='demoadmin'
298298
ADMIN_PASSWORD='<admin-password>'
@@ -326,7 +326,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
326326

327327
### [Flexible Server](#tab/flexible)
328328

329-
```azurecli
329+
```azurecli-interactive
330330
az postgres flexible-server db create \
331331
--resource-group $RESOURCE_GROUP \
332332
--server-name $DB_SERVER_NAME \
@@ -335,7 +335,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
335335

336336
### [Single Server](#tab/single)
337337

338-
```azurecli
338+
```azurecli-interactive
339339
az postgres db create \
340340
--resource-group $RESOURCE_GROUP \
341341
--server-name $DB_SERVER_NAME \
@@ -344,15 +344,15 @@ Next, create a PostgreSQL Database and configure your container app to connect t
344344

345345
1. Install the [Service Connector](../service-connector/overview.md) passwordless extension for the Azure CLI:
346346

347-
```azurecli
347+
```azurecli-interactive
348348
az extension add --name serviceconnector-passwordless --upgrade
349349
```
350350

351351
1. Connect the database to the container app with a system-assigned managed identity, using the connection command.
352352

353353
### [Flexible Server](#tab/flexible)
354354

355-
```azurecli
355+
```azurecli-interactive
356356
az containerapp connection create postgres-flexible \
357357
--resource-group $RESOURCE_GROUP \
358358
--name my-container-app \
@@ -364,7 +364,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
364364

365365
### [Single Server](#tab/single)
366366

367-
```azurecli
367+
```azurecli-interactive
368368
az containerapp connection create postgres \
369369
--resource-group $RESOURCE_GROUP \
370370
--name my-container-app \
@@ -378,7 +378,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
378378

379379
You can find the application URL(FQDN) by using the following command:
380380

381-
```azurecli
381+
```azurecli-interactive
382382
az containerapp list --resource-group $RESOURCE_GROUP
383383
```
384384

0 commit comments

Comments
 (0)