Skip to content

Commit 9c7818d

Browse files
committed
fix Acrolinx issues
1 parent c238a4b commit 9c7818d

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

articles/app-service/tutorial-java-tomcat-connect-managed-identity-postgresql-database.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom: passwordless-java, service-connector, devx-track-azurecli, devx-track
1111

1212
# Tutorial: Connect to a PostgreSQL Database from Java Tomcat App Service without secrets using a managed identity
1313

14-
[Azure App Service](overview.md) provides a highly scalable, self-patching web hosting service in Azure. It also provides a [managed identity](overview-managed-identity.md) for your app, which is a turn-key solution for securing access to [Azure Database for PostgreSQL](../postgresql/index.yml) and other Azure services. Managed identities in App Service make your app more secure by eliminating secrets from your app, such as credentials in the environment variables. In this tutorial, you will learn how to:
14+
[Azure App Service](overview.md) provides a highly scalable, self-patching web hosting service in Azure. It also provides a [managed identity](overview-managed-identity.md) for your app, which is a turn-key solution for securing access to [Azure Database for PostgreSQL](../postgresql/index.yml) and other Azure services. Managed identities in App Service make your app more secure by eliminating secrets from your app, such as credentials in the environment variables. In this tutorial, you learn how to:
1515

1616
> [!div class="checklist"]
1717
> * Create a PostgreSQL database.
@@ -39,7 +39,7 @@ cd Passwordless-Connections-for-Java-Apps/Tomcat/
3939

4040
## Create an Azure Database for PostgreSQL
4141

42-
Follow these steps to create an Azure Database for Postgres in your subscription. The Spring Boot app will connect to this database and store its data when running, persisting the application state no matter where you run the application.
42+
Follow these steps to create an Azure Database for Postgres in your subscription. The Spring Boot app connects to this database and store its data when running, persisting the application state no matter where you run the application.
4343

4444
1. Sign into the Azure CLI, and optionally set your subscription if you have more than one connected to your login credentials.
4545

@@ -57,7 +57,7 @@ Follow these steps to create an Azure Database for Postgres in your subscription
5757
az group create --name $RESOURCE_GROUP --location $LOCATION
5858
```
5959

60-
1. Create an Azure Database for PostgreSQL server. The server is created with an administrator account, but it won't be used because we'll use the Azure Active Directory (Azure AD) admin account to perform administrative tasks.
60+
1. Create an Azure Database for PostgreSQL server. The server is created with an administrator account, but it isn't used because we're going to use the Azure Active Directory (Azure AD) admin account to perform administrative tasks.
6161

6262
### [Flexible Server](#tab/flexible)
6363

@@ -176,7 +176,7 @@ Then, connect your app to a Postgres database with a system-assigned managed ide
176176

177177
### [Flexible Server](#tab/flexible)
178178

179-
To do this, run the [az webapp connection create](/cli/azure/webapp/connection/create#az-webapp-connection-create-postgres-flexible) command.
179+
To make this connection, run the [az webapp connection create](/cli/azure/webapp/connection/create#az-webapp-connection-create-postgres-flexible) command.
180180

181181
```azurecli-interactive
182182
az webapp connection create postgres-flexible \
@@ -191,7 +191,7 @@ az webapp connection create postgres-flexible \
191191

192192
### [Single Server](#tab/single)
193193

194-
To do this, run the [az webapp connection create](/cli/azure/webapp/connection/create#az-webapp-connection-create-postgres) command.
194+
To make this connection, run the [az webapp connection create](/cli/azure/webapp/connection/create#az-webapp-connection-create-postgres) command.
195195

196196
```azurecli-interactive
197197
az webapp connection create postgres \

articles/service-connector/tutorial-java-jboss-connect-managed-identity-mysql-database.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.custom: passwordless-java, service-connector
1212

1313
# Tutorial: Connect to a MySQL Database from Java JBoss EAP App Service with passwordless connection
1414

15-
[Azure App Service](../app-service/overview.md) provides a highly scalable, self-patching web hosting service in Azure. It also provides a [managed identity](../app-service/overview-managed-identity.md) for your app, which is a turn-key solution for securing access to [Azure Database for MySQL](../mysql/index.yml) and other Azure services. Managed identities in App Service make your app more secure by eliminating secrets from your app, such as credentials in the environment variables. In this tutorial, you will learn how to:
15+
[Azure App Service](../app-service/overview.md) provides a highly scalable, self-patching web hosting service in Azure. It also provides a [managed identity](../app-service/overview-managed-identity.md) for your app, which is a turn-key solution for securing access to [Azure Database for MySQL](../mysql/index.yml) and other Azure services. Managed identities in App Service make your app more secure by eliminating secrets from your app, such as credentials in the environment variables. In this tutorial, you learn how to:
1616

1717
> [!div class="checklist"]
1818
> * Create a MySQL database.
@@ -42,7 +42,7 @@ cd Passwordless-Connections-for-Java-Apps/JakartaEE/jboss-eap/
4242

4343
## Create an Azure Database for MySQL
4444

45-
Follow these steps to create an Azure Database for MySQL in your subscription. The Spring Boot app will connect to this database and store its data when running, persisting the application state no matter where you run the application.
45+
Follow these steps to create an Azure Database for MySQL in your subscription. The Spring Boot app connects to this database and store its data when running, persisting the application state no matter where you run the application.
4646

4747
1. Sign into the Azure CLI, and optionally set your subscription if you have more than one connected to your login credentials.
4848

@@ -60,7 +60,7 @@ Follow these steps to create an Azure Database for MySQL in your subscription. T
6060
az group create --name $RESOURCE_GROUP --location $LOCATION
6161
```
6262

63-
1. Create an Azure Database for MySQL server. The server is created with an administrator account, but it won't be used because we'll use the Azure Azure AD admin account to perform administrative tasks.
63+
1. Create an Azure Database for MySQL server. The server is created with an administrator account, but it isn't used because we're going to use the Azure AD admin account to perform administrative tasks.
6464

6565
```azurecli-interactive
6666
export MYSQL_ADMIN_USER=azureuser
@@ -139,9 +139,7 @@ export IDENTITY_RESOURCE_ID=$(az identity create \
139139
> [!IMPORTANT]
140140
> After creating the user-assigned identity, ask your *Global Administrator* or *Privileged Role Administrator* to grant the following permissions for this identity: `User.Read.All`, `GroupMember.Read.All`, and `Application.Read.ALL`. For more information, see the [Permissions](/azure/mysql/flexible-server/concepts-azure-ad-authentication#permissions) section of [Active Directory authentication](/azure/mysql/flexible-server/concepts-azure-ad-authentication).
141141
142-
Then, connect your app to a MySQL database with a system-assigned managed identity using Service Connector.
143-
144-
To do this, run the [az webapp connection create](/cli/azure/webapp/connection/create#az-webapp-connection-create-mysql-flexible) command.
142+
Then, connect your app to a MySQL database with a system-assigned managed identity using Service Connector. To make this connection, run the [az webapp connection create](/cli/azure/webapp/connection/create#az-webapp-connection-create-mysql-flexible) command.
145143

146144
```azurecli-interactive
147145
az webapp connection create mysql-flexible \
@@ -154,12 +152,12 @@ az webapp connection create mysql-flexible \
154152
--client-type java
155153
```
156154

157-
This Service Connector command will do the following tasks in the background:
155+
This Service Connector command does the following tasks in the background:
158156

159157
* Enable system-assigned managed identity for the app `$APPSERVICE_NAME` hosted by Azure App Service.
160158
* Set the Azure Active Directory admin to the current signed-in user.
161-
* Add a database user for the system-assigned managed identity in step 1 and grant all privileges of the database `$DATABASE_NAME` to this user. The user name can be get from the connection string in above command output
162-
* Add a connection string to App Settings in the app named `AZURE_MYSQL_CONNECTIONSTRING`
159+
* Add a database user for the system-assigned managed identity in step 1 and grant all privileges of the database `$DATABASE_NAME` to this user. You can get the user name from the connection string in the output from the previous command.
160+
* Add a connection string to App Settings in the app named `AZURE_MYSQL_CONNECTIONSTRING`.
163161

164162
> [!NOTE]
165163
> If you see the error message `The subscription is not registered to use Microsoft.ServiceLinker`, run the command `az provider register --namespace Microsoft.ServiceLinker` to register the Service Connector resource provider, then run the connection command again.
@@ -208,7 +206,7 @@ Follow these steps to prepare data in a database and deploy the application.
208206

209207
1. Update the connection string in App Settings.
210208

211-
Get the connection string generated by Service Connector and add passwordless authentication plugin. This connection string will be referenced in the startup script.
209+
Get the connection string generated by Service Connector and add passwordless authentication plugin. This connection string is referenced in the startup script.
212210

213211
```azurecli-interactive
214212
export PASSWORDLESS_URL=$(\

0 commit comments

Comments
 (0)