Skip to content

Commit 2e32a31

Browse files
committed
Acrolinx fixes
1 parent 9a58966 commit 2e32a31

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/spring-apps/connect-managed-identity-to-azure-sql.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ This article shows you how to create a managed identity for an app deployed to A
2626

2727
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2828
* [Azure CLI](/cli/azure/install-azure-cli) version 2.45.0 or higher.
29-
* Follow the [Spring Data JPA tutorial](/azure/developer/java/spring-framework/configure-spring-data-jpa-with-azure-sql-server) to provision an Azure SQL Database and get it work with a Java app locally
30-
* Follow the [Azure Spring Apps system-assigned managed identity tutorial](./how-to-enable-system-assigned-managed-identity.md) to provision an an in Azure Spring Apps with MI enabled
29+
* Follow the [Spring Data JPA tutorial](/azure/developer/java/spring-framework/configure-spring-data-jpa-with-azure-sql-server) to provision an Azure SQL Database and get it work with a Java app locally.
30+
* Follow the [Azure Spring Apps system-assigned managed identity tutorial](./how-to-enable-system-assigned-managed-identity.md) to provision an app in Azure Spring Apps with managed identity enabled.
3131

3232
## Connect to Azure SQL Database with a managed identity
3333

34-
You can connect your application deployed to Azure Spring Apps to an Azure SQL Database with a managed identity by following manual steps or using [Service Connector](../service-connector/overview.md).
34+
You can connect your application to an Azure SQL Database with a managed identity by following manual steps or using [Service Connector](../service-connector/overview.md).
3535

3636
### [Manual configuration](#tab/manual)
3737

@@ -40,14 +40,14 @@ You can connect your application deployed to Azure Spring Apps to an Azure SQL D
4040
Connect to your SQL server and run the following SQL query:
4141

4242
```sql
43-
CREATE USER [<MIName>] FROM EXTERNAL PROVIDER;
44-
ALTER ROLE db_datareader ADD MEMBER [<MIName>];
45-
ALTER ROLE db_datawriter ADD MEMBER [<MIName>];
46-
ALTER ROLE db_ddladmin ADD MEMBER [<MIName>];
43+
CREATE USER [<managed-identity-name>] FROM EXTERNAL PROVIDER;
44+
ALTER ROLE db_datareader ADD MEMBER [<managed-identity-name>];
45+
ALTER ROLE db_datawriter ADD MEMBER [<managed-identity-name>];
46+
ALTER ROLE db_ddladmin ADD MEMBER [<managed-identity-name>];
4747
GO
4848
```
4949

50-
The value of the `<MIName>` placeholder follows the rule `<service-instance-name>/apps/<app-name>`; for example: `myspringcloud/apps/sqldemo`. You can also query the MIName with Azure CLI:
50+
The value of the `<managed-identity-name>` placeholder follows the rule `<service-instance-name>/apps/<app-name>`; for example: `myspringcloud/apps/sqldemo`. You can also use the following command to query the managed identity name with Azure CLI:
5151

5252
```azurecli
5353
az ad sp show --id <identity-object-ID> --query displayName
@@ -106,7 +106,7 @@ Configure your app deployed to Azure Spring Apps to connect to an Azure SQL Data
106106

107107
## Build and deploy the app to Azure Spring Apps
108108

109-
Rebuild the app and deploy it to the Azure Spring Apps provisioned in the second bullet point under Prerequisites. Now you have a Spring Boot application, authenticated by a managed identity, that uses JPA to store and retrieve data from an Azure SQL Database in Azure Spring Apps.
109+
Rebuild the app and deploy it to the Azure Spring Apps provisioned in the second bullet point under Prerequisites. You now have a Spring Boot application, authenticated by a managed identity, that uses JPA to store and retrieve data from an Azure SQL Database in Azure Spring Apps.
110110

111111
## Next steps
112112

0 commit comments

Comments
 (0)