File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -68,18 +68,6 @@ The easiest way to setup the two apps is to use the `azd` CLI. We've written scr
6868 azd env set AZURE_USE_AUTHENTICATION true
6969 ```
7070
71- 1 . ** Enable access control on your search index**
72-
73- - ** If the index does not exist yet:**
74- Run the ` prepdocs ` script.
75-
76- - ** If the index already exists:**
77- Execute this command to enable ACLs:
78-
79- ``` shell
80- python ./scripts/manageacl.py --acl-action enable_acls
81- ```
82-
83711 . (Optional) ** Enforce access control**
8472 To ensure that the app restricts search results to only documents that the user has access to, run the following command:
8573
@@ -117,6 +105,16 @@ The easiest way to setup the two apps is to use the `azd` CLI. We've written scr
117105 azd auth login --tenant-id <YOUR-TENANT-ID>
118106 ```
119107
108+ 1 . ** Enable access control on your search index (if it already exists)**
109+
110+ If your search index already exists, you need to enable access control on it:
111+
112+ ``` shell
113+ python ./scripts/manageacl.py --acl-action enable_acls
114+ ```
115+
116+ If your index does not exist yet, access control will be automatically enabled when the index is created during deployment.
117+
1201181. ** Deploy the app**
121119 Finally, run the following command to provision and deploy the app:
122120
You can’t perform that action at this time.
0 commit comments