@@ -48,45 +48,45 @@ Azure Purview supports basic authentication (username and password) for scanning
48
48
49
49
1 . Set up a ` purview_reader ` role. You will need _ ACCOUNTADMIN_ rights to do this.
50
50
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
+ ```
60
60
61
61
2 . Create a warehouse for Purview to use and grant rights.
62
62
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
+ ```
77
77
78
78
3 . Create a USER ` purview ` for Purview scan.
79
79
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
+ ```
90
90
91
91
4 . Grant reader rights to the database objects.
92
92
0 commit comments