Skip to content

Commit 65df0f9

Browse files
Merge pull request #211489 from inward-eye/patch-87
Update access-policies-prerequisites-azure-sql-db.md
2 parents 60af6ec + e9a27a8 commit 65df0f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/purview/includes/access-policies-prerequisites-azure-sql-db.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ms.custom:
2121
Each Azure SQL Database server needs a Managed Identity assigned to it. In Azure portal navigate to the Azure SQL Server that hosts the Azure SQL DB and then navigate to Identity on the side menu. Under System assigned managed identity check status to *On* and save. See screenshot:
2222
![Screenshot shows how to assign system managed identity to Azure SQL Server.](../media/how-to-policies-data-owner-sql/assign-identity-azure-sql-db.png)
2323

24-
You'll also need to enable external policy based authorization on the server. You can do this in PowerShell:
24+
You'll also need to enable (and verify) external policy based authorization on the Azure SQL server. You can do this in PowerShell:
2525

2626
```powershell
2727
Connect-AzAccount -TenantId xxxx-xxxx-xxxx-xxxx-xxxx -SubscriptionId xxxx-xxxx-xxxx-xxxx
@@ -31,6 +31,7 @@ $server = Get-AzSqlServer -ResourceGroupName "RESOURCEGROUPNAME" -ServerName "SE
3131
#Initiate the call to the REST API to set externalPolicyBasedAuthorization to true
3232
Invoke-AzRestMethod -Method PUT -Path "$($server.ResourceId)/externalPolicyBasedAuthorizations/MicrosoftPurview?api-version=2021-11-01-preview" -Payload '{"properties":{"externalPolicyBasedAuthorization":true}}'
3333
34-
#Verify that the propery has been set
34+
# Now, verify that the property "externalPolicyBasedAuthorization" has been set to true
3535
Invoke-AzRestMethod -Method GET -Path "$($server.ResourceId)/externalPolicyBasedAuthorizations/MicrosoftPurview?api-version=2021-11-01-preview"
3636
```
37+
After issuing the GET, you should see in the response, under Content, "properties":{"externalPolicyBasedAuthorization":true}

0 commit comments

Comments
 (0)