Skip to content

Commit ec466f8

Browse files
authored
Pencil edit: indented code blocks in list
1 parent 6049639 commit ec466f8

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

articles/purview/register-scan-snowflake.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -48,45 +48,45 @@ Azure Purview supports basic authentication (username and password) for scanning
4848

4949
1. Set up a `purview_reader` role. You will need _ACCOUNTADMIN_ rights to do this.
5050

51-
```sql
52-
USE ROLE ACCOUNTADMIN;
53-
54-
--create role to allow read only access - this will later be assigned to the purview USER
55-
CREATE OR REPLACE ROLE purview_reader;
56-
57-
--make sysadmin the parent role
58-
GRANT ROLE purview_reader TO ROLE sysadmin;
59-
```
51+
```sql
52+
USE ROLE ACCOUNTADMIN;
53+
54+
--create role to allow read only access - this will later be assigned to the purview USER
55+
CREATE OR REPLACE ROLE purview_reader;
56+
57+
--make sysadmin the parent role
58+
GRANT ROLE purview_reader TO ROLE sysadmin;
59+
```
6060

6161
2. Create a warehouse for Purview to use and grant rights.
6262

63-
```sql
64-
--create warehouse - account admin required
65-
CREATE OR REPLACE WAREHOUSE purview_wh WITH
66-
WAREHOUSE_SIZE = 'XSMALL'
67-
WAREHOUSE_TYPE = 'STANDARD'
68-
AUTO_SUSPEND = 300
69-
AUTO_RESUME = TRUE
70-
MIN_CLUSTER_COUNT = 1
71-
MAX_CLUSTER_COUNT = 2
72-
SCALING_POLICY = 'STANDARD';
73-
74-
--grant rights to the warehouse
75-
GRANT USAGE ON WAREHOUSE purview_wh TO ROLE purview_reader;
76-
```
63+
```sql
64+
--create warehouse - account admin required
65+
CREATE OR REPLACE WAREHOUSE purview_wh WITH
66+
WAREHOUSE_SIZE = 'XSMALL'
67+
WAREHOUSE_TYPE = 'STANDARD'
68+
AUTO_SUSPEND = 300
69+
AUTO_RESUME = TRUE
70+
MIN_CLUSTER_COUNT = 1
71+
MAX_CLUSTER_COUNT = 2
72+
SCALING_POLICY = 'STANDARD';
73+
74+
--grant rights to the warehouse
75+
GRANT USAGE ON WAREHOUSE purview_wh TO ROLE purview_reader;
76+
```
7777

7878
3. Create a USER `purview` for Purview scan.
7979

80-
```sql
81-
CREATE OR REPLACE USER purview
82-
PASSWORD = '<password>';
83-
84-
--note the default role will be used during scan
85-
ALTER USER purview SET DEFAULT_ROLE = purview_reader;
86-
87-
--add user to purview_reader role
88-
GRANT ROLE purview_reader TO USER purview;
89-
```
80+
```sql
81+
CREATE OR REPLACE USER purview
82+
PASSWORD = '<password>';
83+
84+
--note the default role will be used during scan
85+
ALTER USER purview SET DEFAULT_ROLE = purview_reader;
86+
87+
--add user to purview_reader role
88+
GRANT ROLE purview_reader TO USER purview;
89+
```
9090

9191
4. Grant reader rights to the database objects.
9292

0 commit comments

Comments
 (0)