Skip to content

Commit 31235e7

Browse files
committed
final edits
1 parent aaa0b2f commit 31235e7

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ What you will learn:
3939

4040
Create a resource group with the [az group create](/cli/azure/group#az-group-create) command. An Azure resource group is a logical container into which Azure resources are deployed and managed.
4141

42-
The following example creates a resource group named *myResourceGroup* in the East US Azure region.
42+
The following example creates a resource group named `myResourceGroup` in the East US Azure region.
4343

4444
```azurecli
4545
az group create --name myResourceGroup --location eastus
4646
```
4747

48-
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, and contain 5-50 alphanumeric characters. In the following example, *myContainerRegistry007* is used. Update this to a unique value.
48+
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, and contain 5-50 alphanumeric characters. In the following example, `myContainerRegistry007` is used. Update this to a unique value.
4949

5050
```azurecli
5151
az acr create \
@@ -79,7 +79,7 @@ cd quarkus-quickstarts/hibernate-orm-panache-quickstart
7979

8080
1. Configure the Quarkus app properties.
8181

82-
The Quarkus configuration is located in the `src/main/resources/application.properties` file. Open this file in your editor, and observe several default properties. The properties prefixed with `%prod` are only used when the application is built and deployed, for example when deployed to Azure App Service. When the application runs locally, `%prod` properties are ignored. Similarly, `%dev` properties are used in Quarkus' Live Coding / Dev mode, and `%test` properties are used during continuous testing.
82+
The Quarkus configuration is located in the *src/main/resources/application.properties* file. Open this file in your editor, and observe several default properties. The properties prefixed with `%prod` are only used when the application is built and deployed, for example when deployed to Azure App Service. When the application runs locally, `%prod` properties are ignored. Similarly, `%dev` properties are used in Quarkus' Live Coding / Dev mode, and `%test` properties are used during continuous testing.
8383

8484
Delete the existing content in *application.properties* and replace with the following to configure the database for dev, test, and production modes:
8585

articles/spring-apps/how-to-bind-postgres.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,27 @@ With Azure Spring Apps, you can bind select Azure services to your applications
4646

4747
## Bind your app to the Azure Database for PostgreSQL instance
4848

49-
#### [Using admin credentials](#tab/Secrets)
49+
### [Using admin credentials](#tab/Secrets)
5050

5151
1. Note the admin username and password of your Azure Database for PostgreSQL account.
5252

5353
1. Connect to the server, create a database named **testdb** from a PostgreSQL client, and then create a new non-admin account.
5454

5555
1. Run the following command to connect to the database with admin username and password.
5656

57-
```azurecli
58-
az spring connection create postgres \
59-
--resource-group $AZURE_SPRING_APPS_RESOURCE_GROUP \
60-
--service $AZURE_SPRING_APPS_SERVICE_INSTANCE_NAME \
61-
--app $APP_NAME \
62-
--deployment $DEPLOYMENT_NAME \
63-
--target-resource-group $POSTGRES_RESOURCE_GROUP \
64-
--server $POSTGRES_SERVER_NAME \
65-
--database testdb \
66-
--secret name=$USERNAME secret=$PASSWORD
67-
```
57+
```azurecli
58+
az spring connection create postgres \
59+
--resource-group $AZURE_SPRING_APPS_RESOURCE_GROUP \
60+
--service $AZURE_SPRING_APPS_SERVICE_INSTANCE_NAME \
61+
--app $APP_NAME \
62+
--deployment $DEPLOYMENT_NAME \
63+
--target-resource-group $POSTGRES_RESOURCE_GROUP \
64+
--server $POSTGRES_SERVER_NAME \
65+
--database testdb \
66+
--secret name=$USERNAME secret=$PASSWORD
67+
```
6868

69-
#### [Using a passwordless connection with a managed identity](#tab/Passwordless)
69+
### [Using a passwordless connection with a managed identity](#tab/Passwordless)
7070

7171
Configure Azure Spring Apps to connect to the PostgreSQL Database Single Server with a system-assigned managed identity using the `az spring connection create` command.
7272

0 commit comments

Comments
 (0)