Skip to content

Commit d10f77d

Browse files
committed
removed PowerShell steps to configure Azure SQL Database for Purview policies
1 parent fa61096 commit d10f77d

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.author: vlrodrig
44
ms.service: purview
55
ms.subservice: purview-data-policies
66
ms.topic: include
7-
ms.date: 02/07/2023
7+
ms.date: 04/03/2023
88
ms.custom: references_regions
99
---
1010

@@ -40,19 +40,3 @@ For the logical server associated with Azure SQL Database to honor policies from
4040
Then, on the side menu, select **Identity**. Under **System assigned managed identity**, turn the status to **On**, and then select **Save**.
4141

4242
![Screenshot that shows the assignment of a system-assigned managed identity to a logical server associated with Azure SQL Database.](../media/how-to-policies-data-owner-sql/assign-identity-azure-sql-db.png)
43-
44-
You also need to enable (and verify) external policy-based authorization on the logical server associated with Azure SQL Database. You can do this in PowerShell:
45-
46-
```powershell
47-
Connect-AzAccount -UseDeviceAuthentication -TenantId xxxx-xxxx-xxxx-xxxx-xxxx -SubscriptionId xxxx-xxxx-xxxx-xxxx
48-
49-
$server = Get-AzSqlServer -ResourceGroupName "RESOURCEGROUPNAME" -ServerName "SERVERNAME"
50-
51-
#Initiate the call to the REST API to set the externalPolicyBasedAuthorization property to true
52-
Invoke-AzRestMethod -Method PUT -Path "$($server.ResourceId)/externalPolicyBasedAuthorizations/MicrosoftPurview?api-version=2021-11-01-preview" -Payload '{"properties":{"externalPolicyBasedAuthorization":true}}'
53-
54-
# Verify that externalPolicyBasedAuthorization is set to true
55-
Invoke-AzRestMethod -Method GET -Path "$($server.ResourceId)/externalPolicyBasedAuthorizations/MicrosoftPurview?api-version=2021-11-01-preview"
56-
```
57-
58-
In the response, `"properties":{"externalPolicyBasedAuthorization":true}` should appear under `Content`.

0 commit comments

Comments
 (0)