File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,12 @@ To allow access from the Automation system managed identity to the Azure SQL dat
51
51
1 . Go to [ Azure portal] ( https://portal.azure.com ) home page and select ** SQL servers** .
52
52
1 . In the ** SQL server** page, under ** Settings** , select ** SQL Databases** .
53
53
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
+ ```
58
60
59
61
# # Sample code
60
62
You can’t perform that action at this time.
0 commit comments