Skip to content

Commit 23e856f

Browse files
authored
Merge pull request #121308 from wy193777/patch-4
Update manage-sql-server-in-automation.md
2 parents fe5b7e6 + 00b9d51 commit 23e856f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/automation/manage-sql-server-in-automation.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ To allow access from the Automation system managed identity to the Azure SQL dat
5151
1. Go to [Azure portal](https://portal.azure.com) home page and select **SQL servers**.
5252
1. In the **SQL server** page, under **Settings**, select **SQL Databases**.
5353
1. Select your database to go to the SQL database page and select **Query editor (preview)** and execute the following two queries:
54-
- CREATE USER "AutomationAccount" FROM EXTERNAL PROVIDER WITH OBJECT_ID= `ObjectID`
55-
- EXEC sp_addrolemember `db_owner`, "AutomationAccount"
56-
- Automation account - replace with your Automation account's name
57-
- Object ID - replace with object (principal) ID for your system managed identity principal from step 1.
54+
```sql
55+
# AutomationAccount - replace with your Automation account's name
56+
# ObjectID - replace with object (principal) ID for your system managed identity principal from step 1.
57+
CREATE USER "AutomationAccount" FROM EXTERNAL PROVIDER WITH OBJECT_ID = `ObjectID`
58+
EXEC sp_addrolemember `db_owner`, "AutomationAccount"
59+
```
5860

5961
## Sample code
6062

0 commit comments

Comments
 (0)